/* ==========================================================================
   TaskFlow Feature Showcase — design system
   ========================================================================== */

:root {
  --bg:         #070B14;
  --bg-2:       #0B1120;
  --surface:    rgba(255, 255, 255, 0.035);
  --surface-2:  rgba(255, 255, 255, 0.06);
  --border:     rgba(148, 163, 184, 0.14);
  --border-2:   rgba(148, 163, 184, 0.24);
  --text:       #E2E8F0;
  --text-strong:#F8FAFC;
  --muted:      #94A3B8;
  --primary:    #3B82F6;
  --primary-2:  #6366F1;
  --violet:     #A855F7;
  --cyan:       #22D3EE;
  --success:    #10B981;

  --grad: linear-gradient(135deg, #60A5FA 0%, #818CF8 45%, #C084FC 100%);
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(99, 102, 241, 0.12);
  color: #C7D2FE;
  padding: 0.12em 0.45em;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Aurora background ─────────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(148,163,184,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora__blob--1 { width: 620px; height: 620px; background: #2563EB; top: -220px; left: -120px; }
.aurora__blob--2 { width: 520px; height: 520px; background: #7C3AED; top: -120px; right: -160px; animation-delay: -7s; }
.aurora__blob--3 { width: 460px; height: 460px; background: #0891B2; top: 55%; left: 40%; opacity: 0.18; animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.12); }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn i { transition: transform 0.25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.85); }
.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--text-strong); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(148,163,184,0.4); transform: translateY(-2px); }
.btn--light { background: #fff; color: #1E1B4B; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5); }
.btn--sm { padding: 0.55em 1em; font-size: 0.85rem; border-radius: 10px; }
.btn--block { width: 100%; justify-content: center; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--text-strong); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3B82F6, #A855F7); color: #fff; font-size: 0.95rem;
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.8);
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav__link {
  position: relative; padding: 0.5rem 0.9rem; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s, background 0.2s;
}
.site-nav__link:hover { color: var(--text-strong); background: var(--surface); }
.site-nav__link.is-active { color: var(--text-strong); }
.site-nav__link.is-active::after {
  content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.site-nav__cta { margin-left: 0.6rem; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Shared bits ───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(96, 165, 250, 0.3);
  color: #BFDBFE; font-size: 0.82rem; font-weight: 600;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.8rem;
}

.tag {
  --c: var(--primary);
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: #93C5FD; }
.link-arrow i { transition: transform 0.25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); }
.checklist i {
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 0.7rem; margin-top: 2px;
  color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 16%, transparent);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.02em; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 0.9rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 70px 0 60px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.035em; margin: 1.3rem 0 1.2rem; font-weight: 800; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 2.6rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.stat { padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stat dt { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.stat dd { margin: 0.15rem 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--text-strong); }

.hero__visual { position: relative; }
.browser {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0E1525; border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px -30px rgba(37, 99, 235, 0.55), 0 0 0 1px rgba(255,255,255,0.03);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.hero__visual:hover .browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.browser__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.browser__bar > span:nth-child(1) { background: #F87171; }
.browser__bar > span:nth-child(2) { background: #FBBF24; }
.browser__bar > span:nth-child(3) { background: #34D399; }
.browser__url { margin-left: 12px; flex: 1; font-size: 0.75rem; color: var(--muted); background: rgba(255,255,255,0.04); border-radius: 7px; padding: 4px 10px; }
.browser__url i { font-size: 0.65rem; margin-right: 4px; color: var(--success); }
.browser img { cursor: zoom-in; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.95rem; border-radius: 12px; font-size: 0.82rem; white-space: nowrap;
  background: rgba(15, 23, 42, 0.82); border: 1px solid var(--border-2); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); color: var(--text);
  animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--text-strong); }
.float-chip i { color: #60A5FA; }
.float-chip--a { top: 12%; left: -34px; }
.float-chip--b { bottom: 18%; right: -22px; animation-delay: -2s; }
.float-chip--c { bottom: -18px; left: 14%; animation-delay: -4s; }
.float-chip--c i { color: var(--success); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Category cards ────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; }
.cat-card {
  --c: var(--primary);
  position: relative; display: flex; flex-direction: column; padding: 1.6rem;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.cat-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; }
.cat-card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); margin-bottom: 1.2rem;
}
.cat-card__title { font-size: 1.12rem; margin-bottom: 0.5rem; }
.cat-card__text { color: var(--muted); font-size: 0.92rem; flex: 1; }
.cat-card__meta { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.86rem; color: var(--c); margin-top: 0.4rem; }
.cat-card__meta i { transition: transform 0.25s var(--ease); }
.cat-card:hover .cat-card__meta i { transform: translateX(4px); }

/* ── Spotlights ────────────────────────────────────────────────────────── */
.spotlight {
  --c: var(--primary);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 110px;
}
.spotlight:last-child { margin-bottom: 0; }
.spotlight--flip .spotlight__media { order: 2; }
.spotlight__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1rem 0 0.5rem; letter-spacing: -0.02em; }
.spotlight__tagline { font-size: 1.12rem; color: var(--text); font-weight: 500; }
.spotlight .checklist i { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }

.shot {
  --c: var(--primary);
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-2); background: #0E1525;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 60%, transparent);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%);
}
.shot img { cursor: zoom-in; transition: transform 0.8s var(--ease); }
.shot:hover { transform: translateY(-6px); box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c) 75%, transparent); }
.shot:hover img { transform: scale(1.025); }
.shot--large { margin-bottom: 2.6rem; }

/* ── Workflow ──────────────────────────────────────────────────────────── */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.flow::before {
  content: ''; position: absolute; top: 46px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, #94A3B8, #F59E0B, #A855F7, #10B981, #3B82F6); opacity: 0.45;
}
.flow__step { --c: var(--primary); position: relative; text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s; }
.flow__step:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.flow__num { position: absolute; top: 10px; right: 14px; font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; color: var(--muted); opacity: 0.6; }
.flow__icon {
  width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  color: var(--c); background: var(--bg-2); border: 2px solid var(--c);
  box-shadow: 0 0 24px -4px var(--c); position: relative;
}
.flow__name { font-size: 1.02rem; margin-bottom: 0.35rem; }
.flow__desc { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ── Gallery ───────────────────────────────────────────────────────────── */
.gallery { columns: 3 300px; column-gap: 1.1rem; }
.gallery__item {
  break-inside: avoid; margin: 0 0 1.1rem; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--border); background: #0E1525; cursor: zoom-in;
}
.gallery__item img { transition: transform 0.7s var(--ease), filter 0.4s; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.9rem;
  font-weight: 600; font-size: 0.9rem; color: #fff;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover figcaption { transform: translateY(0); }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 3.2rem; border-radius: 28px;
  background: linear-gradient(135deg, #1D4ED8 0%, #4F46E5 50%, #7C3AED 100%);
  box-shadow: 0 30px 80px -30px rgba(79, 70, 229, 0.8);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at 85% 20%, rgba(255,255,255,0.22), transparent 60%),
              radial-gradient(300px circle at 10% 100%, rgba(34,211,238,0.3), transparent 60%);
}
.cta > * { position: relative; }
.cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 0.4rem; }
.cta__text { color: rgba(255,255,255,0.8); margin: 0; }

/* ── Page hero ─────────────────────────────────────────────────────────── */
.page-hero { padding: 70px 0 30px; }
.page-hero__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; font-weight: 800; margin: 0.4rem 0 0.8rem; }
.page-hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* ── Features toolbar ──────────────────────────────────────────────────── */
.toolbar { margin-top: 2rem; display: grid; gap: 1rem; }
.search {
  display: flex; align-items: center; gap: 0.8rem; max-width: 620px;
  padding: 0.25rem 0.6rem 0.25rem 1.1rem; border-radius: 14px;
  background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: #60A5FA; box-shadow: 0 0 0 4px rgba(59,130,246,0.18); }
.search i { color: var(--muted); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text-strong); font: inherit; padding: 0.75rem 0; }
.search input::placeholder { color: #64748B; }
.search kbd { font-family: inherit; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border-2); border-radius: 6px; padding: 0.1rem 0.45rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  --c: #94A3B8;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.85rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.2s;
}
.chip i { color: var(--c); }
.chip:hover { color: var(--text-strong); border-color: var(--border-2); }
.chip.is-active { color: #fff; background: color-mix(in srgb, var(--c) 22%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.chip[data-filter="all"].is-active { background: rgba(59,130,246,0.2); border-color: rgba(96,165,250,0.6); }

/* ── Category sections & feature cards ─────────────────────────────────── */
.cat-section { margin-bottom: 70px; }
.cat-section__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.cat-section__head p { margin: 0.2rem 0 0; }
.cat-section__icon {
  flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.cat-section__title { font-size: 1.6rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.feature-card {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 60%, transparent);
}
.feature-card__thumb { display: block; margin: -1.4rem -1.4rem 1.2rem; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--border); }
.feature-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.7s var(--ease); }
.feature-card:hover .feature-card__thumb img { transform: scale(1.06); }
.feature-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.feature-card__thumb + .feature-card__icon { margin-top: -2.6rem; position: relative; background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.feature-card__title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feature-card__text { color: var(--muted); font-size: 0.92rem; }
.feature-card__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; flex: 1; }
.feature-card__list li { position: relative; padding-left: 1.1rem; font-size: 0.86rem; color: var(--text); }
.feature-card__list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.feature-card__more { font-weight: 600; font-size: 0.86rem; color: var(--c); display: inline-flex; align-items: center; gap: 0.4rem; }
.feature-card__more i { transition: transform 0.25s var(--ease); }
.feature-card:hover .feature-card__more i { transform: translateX(4px); }

.empty { text-align: center; padding: 70px 20px; }
.empty > i { font-size: 3rem; color: var(--muted); margin-bottom: 1rem; }
.empty h1, .empty h2 { margin-bottom: 0.5rem; }
.empty .btn { margin-top: 1rem; }

/* ── Feature detail ────────────────────────────────────────────────────── */
.page-hero--feature { position: relative; }
.page-hero--feature::before {
  content: ''; position: absolute; top: -80px; left: 50%; width: 900px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent);
  z-index: -1; pointer-events: none;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.86rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--text-strong); }
.crumbs i { font-size: 0.6rem; opacity: 0.6; }
.crumbs span { color: var(--text-strong); }

.feature-head { display: flex; gap: 1.4rem; align-items: flex-start; }
.feature-head__icon {
  flex: none; width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 1.9rem;
  color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #7C3AED));
  box-shadow: 0 18px 40px -14px var(--c);
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.detail__h2 { font-size: 1.35rem; margin: 2.6rem 0 1.1rem; }
.prose h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.prose p { color: #CBD5E1; font-size: 1.04rem; }

.illustration {
  position: relative; aspect-ratio: 16 / 7; border-radius: 22px; margin-bottom: 2.6rem; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%),
    linear-gradient(135deg, #0E1525, #111A2E);
  border: 1px solid var(--border-2);
}
.illustration::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 20%, transparent 75%);
}
.illustration__main {
  position: relative; font-size: 4.4rem; color: #fff;
  width: 140px; height: 140px; display: grid; place-items: center; border-radius: 38px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #7C3AED));
  box-shadow: 0 30px 70px -20px var(--c), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: float 6s ease-in-out infinite;
}
.illustration__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; border-radius: 12px; font-size: 0.82rem; max-width: 44%;
  background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border-2); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.illustration__chip i { color: var(--c); }
.illustration__chip--0 { top: 14%; left: 6%; }
.illustration__chip--1 { top: 22%; right: 6%; animation-delay: -2.3s; }
.illustration__chip--2 { bottom: 13%; left: 18%; animation-delay: -4.6s; }

.highlight-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.highlight-grid li {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.1rem;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.highlight-grid li:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-2px); }
.highlight-grid i { color: var(--c); margin-top: 4px; }

.source-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.source-list li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.source-list i { color: var(--muted); }
.source-list code { background: none; padding: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.4rem; }
.pager__link { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.25s, transform 0.25s var(--ease); }
.pager__link:hover { border-color: var(--border-2); transform: translateY(-3px); }
.pager__link span { font-size: 0.82rem; }
.pager__link strong { color: var(--text-strong); font-family: var(--font-head); }
.pager__link--next { text-align: right; grid-column: 2; }

.detail__aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.side-card { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-card__title { font-size: 0.95rem; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.side-card__title i { color: var(--c); }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.side-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border-radius: 10px; font-size: 0.9rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.side-nav a i { width: 18px; text-align: center; font-size: 0.85rem; }
.side-nav a:hover { color: var(--text-strong); background: var(--surface-2); }
.side-nav a.is-active { color: #fff; background: color-mix(in srgb, var(--c) 20%, transparent); }
.side-nav a.is-active i { color: var(--c); }

/* ── Architecture ──────────────────────────────────────────────────────── */
.arch { display: flex; align-items: stretch; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.arch--secondary { margin-top: 1.4rem; }
.arch__node {
  flex: 1 1 170px; max-width: 220px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.arch__node > i { font-size: 1.5rem; color: #93C5FD; margin-bottom: 0.3rem; }
.arch__node strong { color: var(--text-strong); font-family: var(--font-head); }
.arch__node span { font-size: 0.82rem; color: var(--muted); }
.arch__node--hl { border-color: rgba(96,165,250,0.45); background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(59,130,246,0.03)); box-shadow: 0 20px 50px -25px rgba(59,130,246,0.8); }
.arch__arrow { display: grid; place-items: center; color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.stack-card { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s; }
.stack-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.stack-card > i { font-size: 1.6rem; margin-bottom: 0.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.stack-card p { font-size: 0.9rem; margin: 0; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.model-card { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.model-card h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.model-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.model-card li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; }
.model-card li i { color: var(--muted); font-size: 0.75rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col .detail__h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(255,255,255,0.02); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(2,6,23,0.6)); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer__brand p { max-width: 360px; margin-top: 1rem; font-size: 0.92rem; }
.site-footer__title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; font-family: var(--font); font-weight: 600; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.site-footer__list a { color: #CBD5E1; transition: color 0.2s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: #CBD5E1; }

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(2, 6, 23, 0.88); backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.lightbox__figure { margin: 0; max-width: 1400px; width: 100%; animation: zoomIn 0.35s var(--ease); }
.lightbox__figure img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 120px -20px rgba(0,0,0,0.9); }
.lightbox__figure figcaption { text-align: center; color: #CBD5E1; margin-top: 1rem; font-weight: 500; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-2); color: #fff; font-size: 1.2rem; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.14); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: 0.15s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Focus ─────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid #60A5FA; outline-offset: 3px; border-radius: 6px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 760px; margin: 20px auto 0; }
  .browser { transform: none; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .spotlight--flip .spotlight__media { order: 0; }
  .flow { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .flow::before { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .arch__arrow { transform: rotate(90deg); flex-basis: 100%; }
  .arch__node { max-width: 420px; flex-basis: 100%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1rem 20px 1.4rem;
    background: rgba(7, 11, 20, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: rgba(7, 11, 20, 0.97); }
  .site-nav__link { padding: 0.8rem 1rem; }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link.is-active { background: var(--surface-2); }
  .site-nav__cta { margin: 0.5rem 0 0; justify-content: center; }

  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .float-chip--a { left: 8px; top: -18px; }
  .float-chip--b { right: 8px; }
  .float-chip--c { display: none; }
  .cta { padding: 2.2rem 1.6rem; }
  .feature-head { flex-direction: column; }
  .illustration { aspect-ratio: 4 / 3; }
  .illustration__chip { max-width: 70%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
