@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.72);
  --surface-hover: rgba(39, 39, 42, 0.9);
  --primary: #6366f1;
  --accent: #ec4899;
  --cyan: #06b6d4;
  --text: #fafafa;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --glow: 0 0 28px rgba(99, 102, 241, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.18), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.14), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.12), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Navbar */
.navbar {
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand span {
  background: linear-gradient(135deg, #818cf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #c7d2fe, #fbcfe8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  padding: 14px 20px;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input::placeholder {
  color: #71717a;
}

.search-box input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Bento / Glass Tool Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  padding: 16px 0 56px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: var(--surface-hover);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: var(--glow);
}

.tool-card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  margin-bottom: 12px;
}

.badge.new {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

/* Tool Pages Dark Glass Compatibility */
.tool-box, .seo-content, .features {
  background: var(--surface) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  color: var(--text) !important;
  padding: 32px;
  margin-bottom: 48px;
}

.drop-area {
  background: rgba(99, 102, 241, 0.08) !important;
  border: 2px dashed rgba(129, 140, 248, 0.5) !important;
  border-radius: 14px !important;
  color: #e0e7ff !important;
  transition: all 0.2s ease;
