/* =====================================================================
   FlowForge — AI website builder (fictional demo by Greenshields Studio)
   Design language: dark-first SaaS, electric violet → cyan, glass nav.
   Deliberately distinct from greenshields.studio (forest-green editorial)
   and the Calder Valley demo (warm cream + serif).
   Theming is driven by [data-theme="dark"|"light"] on <html>.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand accents — shared across themes */
  --violet: #7C6BF5;
  --violet-deep: #5B47E0;
  --cyan: #21D4D8;
  --accent: var(--violet);
  --accent-grad: linear-gradient(135deg, #8B7BFF 0%, #6D5EF7 45%, #21D4D8 100%);
  --accent-grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--cyan) 18%, transparent));

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-hero:  clamp(2.75rem, 7vw, 5.5rem);
  --fs-h1:    clamp(2.25rem, 5.5vw, 3.75rem);
  --fs-h2:    clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3:    clamp(1.2rem, 2.2vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Spacing scale */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg:       #08080E;
  --bg-2:     #0D0D16;
  --surface:  #12121C;
  --surface-2:#181826;
  --surface-3:#20202F;
  --border:   #262636;
  --border-2: #34344A;
  --text:     #F4F4F9;
  --text-2:   #A6A6C0;
  --text-3:   #6E6E88;
  --accent:   #8B7BFF;
  --accent-ink: #ffffff;
  --glass:    rgba(14, 14, 22, 0.72);
  --glow:     0 0 0 1px rgba(124,107,245,0.25), 0 12px 40px -12px rgba(124,107,245,0.55);
  --shadow:   0 24px 60px -20px rgba(0,0,0,0.7);
  --shadow-sm:0 6px 24px -10px rgba(0,0,0,0.6);
  --grid-line: rgba(255,255,255,0.04);
  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --bg:       #FBFBFE;
  --bg-2:     #F3F3FB;
  --surface:  #FFFFFF;
  --surface-2:#F7F7FC;
  --surface-3:#EFEFF8;
  --border:   #E6E6F1;
  --border-2: #D7D7E6;
  --text:     #0E0E1A;
  --text-2:   #54546C;
  --text-3:   #8A8AA2;
  --accent:   #6D5EF7;
  --accent-ink: #ffffff;
  --glass:    rgba(255, 255, 255, 0.74);
  --glow:     0 0 0 1px rgba(109,94,247,0.18), 0 12px 40px -14px rgba(109,94,247,0.4);
  --shadow:   0 24px 60px -24px rgba(40,30,90,0.22);
  --shadow-sm:0 8px 26px -14px rgba(40,30,90,0.18);
  --grid-line: rgba(20,20,40,0.045);
  color-scheme: light;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   3. Typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }

.mono { font-family: var(--font-mono); }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------------------------------------------------------------
   4. Layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
section { position: relative; }
.section { padding-block: clamp(var(--space-8), 9vw, var(--space-10)); }
.section--tight { padding-block: var(--space-8); }
.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--space-3); }
.section-head p { margin-top: var(--space-4); }

.divider { height: 1px; background: var(--border); border: 0; }

/* ---------------------------------------------------------------------
   5. Buttons & pills
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.72em 1.3em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124,107,245,0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(124,107,245,0.75);
}
.btn--primary .arrow { transition: transform 0.25s var(--ease); }
.btn--primary:hover .arrow { transform: translateX(3px); }
.btn--ghost {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.btn--lg { padding: 0.95em 1.7em; font-size: var(--fs-body); }
.btn--block { width: 100%; justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-2);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 22%, transparent);
}
.pill--ai {
  background: color-mix(in srgb, var(--violet) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--violet) 35%, transparent);
  color: var(--text);
}

/* "✨ Demo AI" honesty badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--violet) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 32%, transparent);
  color: var(--accent);
}

/* ---------------------------------------------------------------------
   6. Header / nav / mega-menu
   --------------------------------------------------------------------- */
.demo-banner {
  background: var(--accent-grad);
  color: #fff;
  text-align: center;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px var(--space-4);
}
.demo-banner a { text-decoration: underline; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand__mark {
  width: 28px; height: 28px;
  flex: none;
}

.nav-primary { display: flex; align-items: center; gap: var(--space-1); margin-inline-start: var(--space-3); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover, .nav-item.open .nav-link { color: var(--text); background: var(--surface-2); }
.nav-link .chev { width: 14px; height: 14px; transition: transform 0.25s var(--ease); opacity: 0.7; }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* search trigger */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  font-size: var(--fs-small);
  transition: border-color 0.2s, color 0.2s;
  min-width: 190px;
}
.search-trigger:hover { border-color: var(--border-2); color: var(--text-2); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger .kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-3);
}

/* theme toggle icon swap */
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* Mega-menu panel */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 90;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mega--wide { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-4); width: 620px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background 0.18s var(--ease);
}
.mega-link:hover { background: var(--surface-2); }
.mega-link__icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-grad-soft);
  color: var(--accent);
}
.mega-link__icon svg { width: 18px; height: 18px; }
.mega-link__title { font-size: var(--fs-small); font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.mega-link__desc { font-size: var(--fs-micro); color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.mega-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
}
.mega-feature {
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.mega-feature__eyebrow { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.mega-feature h4 { font-size: 1.05rem; margin: var(--space-2) 0; }
.mega-feature p { font-size: var(--fs-micro); flex: 1; }
.mega-feature a { font-size: var(--fs-small); font-weight: 600; color: var(--accent); margin-top: var(--space-3); display: inline-flex; gap: 6px; }

/* mobile nav */
.nav-toggle { display: none; }
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: var(--space-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.mobile-group { border-bottom: 1px solid var(--border); }
.mobile-group__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-group__btn svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease); color: var(--text-3); }
.mobile-group.open .mobile-group__btn svg { transform: rotate(45deg); color: var(--accent); }
.mobile-group__body { display: none; padding-bottom: var(--space-4); }
.mobile-group.open .mobile-group__body { display: block; }
.mobile-group__body a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-4); color: var(--text-2); font-size: var(--fs-small); }
.mobile-nav__cta { margin-top: var(--space-6); display: grid; gap: var(--space-3); }

/* ---------------------------------------------------------------------
   7. Command palette (⌘K search)
   --------------------------------------------------------------------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(4,4,10,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cmdk.open { display: flex; animation: cmdk-fade 0.2s var(--ease); }
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
.cmdk__panel {
  width: min(620px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: cmdk-pop 0.24s var(--ease);
}
@keyframes cmdk-pop { from { transform: translateY(-12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.cmdk__search { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.cmdk__search svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.cmdk__input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 1.1rem; font-family: var(--font-body); }
.cmdk__input::placeholder { color: var(--text-3); }
.cmdk__hint { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.cmdk__results { max-height: 52vh; overflow-y: auto; padding: var(--space-2); }
.cmdk__group-label { font-family: var(--font-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: var(--space-3) var(--space-3) var(--space-2); }
.cmdk__item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  cursor: pointer;
}
.cmdk__item[aria-selected="true"] { background: var(--accent-grad-soft); }
.cmdk__item-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent); }
.cmdk__item-icon svg { width: 17px; height: 17px; }
.cmdk__item-body { flex: 1; min-width: 0; }
.cmdk__item-title { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.cmdk__item-title mark { background: color-mix(in srgb, var(--violet) 30%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; }
.cmdk__item-desc { font-size: var(--fs-micro); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__item-kind { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 8px; }
.cmdk__empty { padding: var(--space-7); text-align: center; color: var(--text-3); }
.cmdk__empty .ai-suggest { margin-top: var(--space-4); }
.cmdk__footer { display: flex; gap: var(--space-5); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-micro); color: var(--text-3); }
.cmdk__footer span { display: inline-flex; align-items: center; gap: 6px; }
.cmdk__footer kbd { font-family: var(--font-mono); font-size: 0.6rem; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* ---------------------------------------------------------------------
   8. Backgrounds — aurora mesh + grid
   --------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora::before {
  width: 620px; height: 620px;
  top: -180px; left: 8%;
  background: radial-gradient(circle, rgba(124,107,245,0.9), transparent 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.aurora::after {
  width: 520px; height: 520px;
  top: -120px; right: 6%;
  background: radial-gradient(circle, rgba(33,212,216,0.7), transparent 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}
[data-theme="light"] .aurora::before { opacity: 0.32; }
[data-theme="light"] .aurora::after { opacity: 0.3; }
@keyframes drift1 { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-50px, 30px) scale(1.05); } }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------------------------------------------------------------------
   9. Hero + AI builder
   --------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(var(--space-8), 9vw, 110px); padding-bottom: var(--space-9); overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: var(--fs-hero); margin: var(--space-5) 0 var(--space-4); }
.hero .lead { max-width: 580px; margin-inline: auto; }
.hero__cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-6); }
.hero__meta { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; margin-top: var(--space-5); font-size: var(--fs-small); color: var(--text-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--cyan); }

/* AI builder widget */
.builder {
  margin: var(--space-8) auto 0;
  max-width: 940px;
  position: relative;
  z-index: 2;
}
.builder__shell {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.builder__bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.builder__dots { display: flex; gap: 6px; }
.builder__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); display: block; }
.builder__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  text-align: center;
}
.builder__prompt { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.builder__prompt-label { display: flex; align-items: center; justify-content: space-between; }
.builder__prompt-label span { font-size: var(--fs-small); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.builder__field { display: flex; gap: var(--space-3); }
.builder__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  resize: none;
  min-height: 54px;
  transition: border-color 0.2s;
}
.builder__input:focus { outline: none; border-color: var(--accent); }
.builder__chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.builder__chip {
  font-size: var(--fs-micro);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.builder__chip:hover { border-color: var(--accent); color: var(--text); }

/* generated preview canvas */
.builder__canvas {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  min-height: 200px;
  padding: var(--space-5);
  display: none;
}
.builder__canvas.active { display: block; animation: cmdk-fade 0.3s var(--ease); }
.builder__steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-5); }
.builder__step { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-3); font-family: var(--font-mono); }
.builder__step .tick { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border-2); }
.builder__step.done { color: var(--text-2); }
.builder__step.done .tick { background: var(--accent-grad); border-color: transparent; color: #fff; }
.builder__step.done .tick svg { width: 11px; height: 11px; }
.builder__step .spin { width: 14px; height: 14px; border: 2px solid var(--border-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the fake generated mini-site */
.gensite { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); opacity: 0; transform: translateY(10px); }
.gensite.in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.gensite__nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.gensite__logo { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.gensite__links { display: flex; gap: 14px; font-size: 0.7rem; color: var(--text-3); }
.gensite__hero { padding: var(--space-6) var(--space-5); text-align: center; background: var(--accent-grad-soft); }
.gensite__hero h4 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 8px; }
.gensite__hero p { font-size: var(--fs-small); max-width: 380px; margin: 0 auto 14px; }
.gensite__btn { display: inline-block; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--accent-grad); color: #fff; font-size: var(--fs-small); font-weight: 600; }
.gensite__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: var(--space-5); }
.gensite__card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.gensite__card .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-grad-soft); margin-bottom: 10px; }
.gensite__card b { font-size: var(--fs-small); display: block; margin-bottom: 4px; }
.gensite__card span { font-size: var(--fs-micro); color: var(--text-3); }
.typed-caret::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------------
   10. Logo marquee
   --------------------------------------------------------------------- */
.marquee-wrap { padding-block: var(--space-7); border-block: 1px solid var(--border); overflow: hidden; }
.marquee-label { text-align: center; font-size: var(--fs-small); color: var(--text-3); margin-bottom: var(--space-5); }
.marquee { display: flex; gap: var(--space-8); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text-3); letter-spacing: -0.02em; opacity: 0.75; white-space: nowrap; }

/* ---------------------------------------------------------------------
   11. Bento features
   --------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); grid-auto-rows: 1fr; }
.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.bento-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--violet) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-grad-soft); color: var(--accent); margin-bottom: var(--space-4); }
.bento-card__icon svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.bento-card p { font-size: var(--fs-small); }
.bento-card .mono-mini { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--accent); margin-top: var(--space-4); display: inline-flex; align-items: center; gap: 6px; }

/* code-ish demo block inside a wide bento card */
.code-peek { margin-top: var(--space-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); font-family: var(--font-mono); font-size: var(--fs-micro); line-height: 1.7; color: var(--text-2); overflow-x: auto; }
.code-peek .k { color: var(--violet); }
.code-peek .s { color: var(--cyan); }
.code-peek .c { color: var(--text-3); }

/* ---------------------------------------------------------------------
   12. How it works (steps)
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--accent);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: var(--space-4);
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { font-size: var(--fs-small); }

/* ---------------------------------------------------------------------
   13. Split / solutions
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.feature-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.feature-list li { display: flex; gap: var(--space-3); }
.feature-list .fl-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent-grad-soft); color: var(--accent); display: grid; place-items: center; }
.feature-list .fl-ic svg { width: 16px; height: 16px; }
.feature-list b { display: block; font-size: var(--fs-small); color: var(--text); }
.feature-list span { font-size: var(--fs-small); color: var(--text-3); }

.panel-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* chat-style AI mockup used in solutions visual */
.chat-mock { display: flex; flex-direction: column; gap: var(--space-3); }
.chat-row { display: flex; gap: var(--space-3); }
.chat-row.me { flex-direction: row-reverse; }
.chat-av { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: var(--fs-micro); font-weight: 700; }
.chat-av.ai { background: var(--accent-grad); color: #fff; }
.chat-av.you { background: var(--surface-3); color: var(--text-2); }
.chat-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: var(--fs-small); max-width: 80%; }
.chat-row.me .chat-bubble { background: var(--accent-grad-soft); }

/* ---------------------------------------------------------------------
   14. Testimonials
   --------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.quote__stars { display: flex; gap: 2px; color: var(--cyan); }
.quote__stars svg { width: 15px; height: 15px; }
.quote p { font-size: var(--fs-small); color: var(--text); line-height: 1.6; flex: 1; }
.quote__by { display: flex; align-items: center; gap: var(--space-3); }
.quote__av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-small); }
.quote__by b { font-size: var(--fs-small); display: block; }
.quote__by span { font-size: var(--fs-micro); color: var(--text-3); }

/* ---------------------------------------------------------------------
   15. Pricing
   --------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: start; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--glow);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff;
  font-size: var(--fs-micro); font-weight: 600;
  padding: 3px 12px; border-radius: var(--radius-pill);
}
.price-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.price-card__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; }
.price-card__price small { font-size: var(--fs-small); color: var(--text-3); font-weight: 400; font-family: var(--font-body); }
.price-card__desc { font-size: var(--fs-small); color: var(--text-3); }
.price-card ul { display: grid; gap: var(--space-3); }
.price-card li { display: flex; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }
.price-card li svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 2px; }

.billing-toggle { display: inline-flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px; }
.billing-toggle button { padding: 7px 16px; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: 500; color: var(--text-3); }
.billing-toggle button.active { background: var(--accent-grad); color: #fff; }
.billing-save { font-size: var(--fs-micro); color: var(--cyan); }

/* ---------------------------------------------------------------------
   16. CTA band
   --------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(var(--space-7), 8vw, var(--space-9)); text-align: center; border: 1px solid var(--border-2); background: var(--surface); }
.cta-band .aurora { height: 100%; inset: 0; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { max-width: 600px; margin: var(--space-3) auto var(--space-4); }
.cta-band p { max-width: 480px; margin-inline: auto; }
.cta-band .hero__cta { margin-top: var(--space-6); }

/* ---------------------------------------------------------------------
   17. AI chat dock (floating assistant)
   --------------------------------------------------------------------- */
.ai-dock-btn {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-small);
  box-shadow: 0 12px 30px -8px rgba(124,107,245,0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ai-dock-btn:hover { transform: translateY(-2px) scale(1.02); }
.ai-dock-btn svg { width: 20px; height: 20px; }
.ai-dock-btn .pulse { position: absolute; top: 9px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(33,212,216,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33,212,216,0.6);} 70% { box-shadow: 0 0 0 10px rgba(33,212,216,0);} 100% { box-shadow: 0 0 0 0 rgba(33,212,216,0);} }

.ai-dock {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 160;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px));
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}
.ai-dock.open { display: flex; animation: dock-in 0.3s var(--ease); }
@keyframes dock-in { from { transform: translateY(16px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-dock__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ai-dock__avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; color: #fff; }
.ai-dock__avatar svg { width: 18px; height: 18px; }
.ai-dock__title { flex: 1; }
.ai-dock__title b { font-size: var(--fs-small); display: flex; align-items: center; gap: 7px; }
.ai-dock__title span { font-size: var(--fs-micro); color: var(--cyan); display: inline-flex; align-items: center; gap: 5px; }
.ai-dock__title span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.ai-dock__close { color: var(--text-3); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.ai-dock__close:hover { background: var(--surface-3); color: var(--text); }
.ai-dock__body { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.ai-msg { display: flex; gap: var(--space-2); max-width: 88%; }
.ai-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg__bubble { padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-size: var(--fs-small); line-height: 1.55; }
.ai-msg.ai .ai-msg__bubble { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.ai-msg.me .ai-msg__bubble { background: var(--accent-grad); color: #fff; border-top-right-radius: 4px; }
.ai-typing { display: inline-flex; gap: 4px; padding: var(--space-3) var(--space-4); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); width: fit-content; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-dock__suggest { display: flex; gap: var(--space-2); flex-wrap: wrap; padding: 0 var(--space-4) var(--space-3); }
.ai-dock__suggest button { font-size: var(--fs-micro); padding: 6px 11px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.ai-dock__suggest button:hover { border-color: var(--accent); color: var(--text); }
.ai-dock__input { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--border); }
.ai-dock__input input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 10px 14px; color: var(--text); font-size: var(--fs-small); outline: none; }
.ai-dock__input input:focus { border-color: var(--accent); }
.ai-dock__input button { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--accent-grad); color: #fff; display: grid; place-items: center; }
.ai-dock__input button svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------
   18. Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-6); margin-top: var(--space-9); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-6); }
.footer-brand p { font-size: var(--fs-small); margin-top: var(--space-4); max-width: 280px; }
.footer-col h4 { font-size: var(--fs-micro); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--fs-small); color: var(--text-2); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-micro); color: var(--text-3); }
.footer-bottom a { color: var(--text-2); }

/* ---------------------------------------------------------------------
   19. Inner-page hero / generic blocks
   --------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-8), 9vw, var(--space-9)) var(--space-7); text-align: center; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 760px; margin: var(--space-4) auto var(--space-4); }
.page-hero .lead { max-width: 560px; margin-inline: auto; }

.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-7); align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.docs-side h4 { font-size: var(--fs-micro); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin: var(--space-5) 0 var(--space-3); }
.docs-side a { display: block; font-size: var(--fs-small); color: var(--text-2); padding: 6px 12px; border-radius: var(--radius-sm); transition: background 0.2s, color 0.2s; }
.docs-side a:hover, .docs-side a.active { background: var(--surface-2); color: var(--text); }
.docs-article h2 { margin: var(--space-7) 0 var(--space-4); }
.docs-article h3 { margin: var(--space-5) 0 var(--space-3); }
.docs-article p { margin-bottom: var(--space-4); }
.docs-article ul.bul { list-style: disc; padding-left: var(--space-5); display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.docs-article ul.bul li { color: var(--text-2); font-size: var(--fs-body); }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.3s, transform 0.3s; display: flex; flex-direction: column; }
.resource-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.resource-card__top { height: 130px; background: var(--accent-grad-soft); display: grid; place-items: center; color: var(--accent); }
.resource-card__top svg { width: 40px; height: 40px; }
.resource-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.resource-card__kind { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.resource-card h3 { font-size: 1.05rem; margin: var(--space-2) 0; }
.resource-card p { font-size: var(--fs-small); flex: 1; }
.resource-card__meta { font-size: var(--fs-micro); color: var(--text-3); margin-top: var(--space-4); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; text-align: left; color: var(--text); }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform 0.25s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding-bottom: var(--space-5); font-size: var(--fs-small); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--fs-small); font-weight: 500; margin-bottom: var(--space-2); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat { text-align: center; padding: var(--space-5); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }
.stat__label { font-size: var(--fs-small); color: var(--text-3); margin-top: 4px; }

/* ---------------------------------------------------------------------
   20. Scroll reveal
   --------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   21. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .search-trigger { min-width: 150px; }
}
@media (max-width: 940px) {
  .nav-primary, .search-trigger .kbd { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-desktop-cta { display: none; }
  .split, .contact-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .bento, .steps, .quotes, .pricing-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .search-trigger { min-width: 0; padding: 0 10px; }
  .search-trigger .label { display: none; }
  .bento, .steps, .quotes, .pricing-grid, .resource-grid, .gensite__cards { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .builder__field { flex-direction: column; }
  .hero__meta { gap: var(--space-3); }
  .ai-dock { bottom: 0; right: 0; width: 100vw; height: 100vh; border-radius: 0; }
  .ai-dock-btn span.label { display: none; }
}
