:root {
  --bg: #0b0b14;
  --bg-2: #11111d;
  --card: #181826;
  --line: #232336;
  --text: #f5f5fa;
  --muted: #9ca3af;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --ok: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(124, 58, 237, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 20, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); }

/* HERO */
.hero {
  position: relative; padding: 100px 0 80px; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.2), transparent 60%);
}
.eyebrow {
  display: inline-block; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
h1.hero-h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05;
  font-weight: 800; letter-spacing: -0.03em; max-width: 900px;
}
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* SECTION TITLES */
section { padding: 80px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 600px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 40px;
}
.section-head .section-title, .section-head .section-sub { margin-bottom: 0; }

/* GRID + CARD */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.card-cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-weight: 600; font-size: 14px;
  transition: gap .15s; margin-top: auto;
}
.card-cta:hover { gap: 8px; }
.badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; z-index: 2;
}

/* PILL FILTERS */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.pill:hover { color: var(--text); }
.pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}

/* CATEGORY CARDS (homepage) */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c, var(--accent));
  box-shadow: 0 20px 40px -20px var(--c, var(--accent));
}
.cat-icon { font-size: 40px; margin-bottom: 12px; }
.cat-name { font-weight: 700; font-size: 18px; }
.cat-desc { font-size: 13px; color: var(--muted); }

/* CODE BLOCK */
.code {
  background: #0a0a14; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px; overflow-x: auto;
  font-family: 'SF Mono', Consolas, monospace; font-size: 13px;
  color: #c4b5fd;
}

/* TABS */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px; flex-wrap: wrap;
}
.tab {
  padding: 12px 20px; color: var(--muted); cursor: pointer;
  font-size: 14px; font-weight: 500; background: transparent;
  border: none; border-bottom: 2px solid transparent; font-family: inherit;
}
.tab.active { color: var(--text); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* TOOL CARDS (AI Tools) */
.tool-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tool-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: var(--shadow);
}
.tool-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.tool-card h3 { font-size: 18px; font-weight: 700; }
.tool-card p { color: var(--muted); font-size: 14px; flex: 1; }
.tool-card .btn-primary { align-self: flex-start; }

/* COMING-SOON BANNER */
.banner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
  font-size: 14px; color: var(--muted); margin-bottom: 32px;
}
.banner strong { color: var(--text); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.foot-grid h5 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 16px;
}
.foot-grid a {
  display: block; color: var(--muted); font-size: 14px;
  padding: 6px 0; transition: color .15s;
}
.foot-grid a:hover { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; margin-top: 8px; }
.disclosure {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px;
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.disclosure strong { color: var(--text); }
.copy {
  text-align: center; color: var(--muted); font-size: 13px;
  padding-top: 24px; border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  section { padding: 60px 0; }
}
