:root {
  --bg: #FAF8F4;
  --bg2: #F3F0E8;
  --bg3: #EDE9DE;
  --acc: #c96442;          /* Terracotta Brand */
  --acc2: #a84e31;         /* Terracotta deep */
  --acc3: #d97757;         /* Coral accent */
  --ink: #1C1917;
  --muted: #78716C;
  --border: rgba(28,25,23,0.08);
  --border-h: rgba(201,100,66,0.35);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Geist', sans-serif;
  --section-y: clamp(64px, 10vw, 120px);
  --section-x: clamp(20px, 4vw, 48px);
  --hero-pad-top: clamp(104px, 14vw, 160px);
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--acc); color: #fff; }

/* FOCUS */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 2px;
}

/* CUSTOM CURSOR — fine-pointer only */
#cursor, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  #cursor {
    display: block;
    width: 12px; height: 12px;
    background: var(--acc2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.08s, width 0.2s, height 0.2s, opacity 0.2s;
  }
  #cursor-ring {
    display: block;
    width: 36px; height: 36px;
    border: 1px solid rgba(201,100,66,0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.18s ease, width 0.3s, height 0.3s;
  }
  .nav-cta, .btn-primary, .btn-ghost, .stripe-btn,
  .bento-card, .tool-card { cursor: none; }
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--section-x);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--acc); }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--acc);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--acc);
  color: var(--acc);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  touch-action: manipulation;
}
.nav-cta:hover { background: var(--acc); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta-login { background: transparent; color: var(--acc); border-color: rgba(28,25,23,0.15); }

/* HERO */
#hero {
  min-height: 100vh;
  padding: var(--hero-pad-top) var(--section-x) var(--section-y);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,100,66,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--acc2);
  display: block;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-headline .accent { color: var(--acc); }
.hero-headline .dim { color: rgba(28,25,23,0.2); }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  min-height: 44px;
  background: var(--acc2);
  color: #fff;
  border: 1px solid var(--acc);
  text-decoration: none;
  transition: background 0.2s var(--ease-out-quart), transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,100,66,0.25); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(201,100,66,0.2); }
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  min-height: 44px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart), transform 0.25s var(--ease-out-quart);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(28,25,23,0.3); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* TERMINAL */
.terminal {
  background: #1C1917;
  box-shadow: 0 24px 80px rgba(28,25,23,0.10), 0 8px 24px rgba(28,25,23,0.07);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.terminal-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}
.t-dim { color: #57534E; }
.t-acc { color: #d97757; }
.t-green { color: #4ADE80; }
.t-white { color: #E7E5E4; }
.t-yellow { color: #FCD34D; }
.t-orange { color: #FB923C; }
.cursor-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--acc2);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* MARQUEE */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 32px;
}
.marquee-track span b { color: var(--acc); font-weight: 400; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* SECTION BASE */
section {
  padding: var(--section-y) var(--section-x);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--acc);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

/* SUB-HERO (for inner pages) */
.sub-hero {
  padding: calc(var(--hero-pad-top) - 16px) var(--section-x) var(--section-y);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.sub-hero::after {
  content: '';
  position: absolute;
  top: -220px; right: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201,100,66,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.sub-hero .section-title { font-size: clamp(40px, 6vw, 72px); }
.sub-hero .section-sub { max-width: 620px; font-size: 16px; }

/* BENTO (Services tiers) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.bento-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}
.bento-card:hover { background: var(--bg2); box-shadow: 0 8px 32px rgba(201,100,66,0.08); }
.bento-card:hover::before { border-color: var(--border-h); }
.bento-card:hover .bento-glow { opacity: 1; }
.bento-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,100,66,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.bento-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--acc);
  margin-bottom: 28px;
  display: block;
}

/* ORIGINAL BENTO ICONS — geometric glyphs unique to each tier */
.tier-glyph {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  display: block;
  overflow: visible;
}
.tier-glyph .g-stroke { stroke: var(--acc); fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.tier-glyph .g-fill { fill: var(--acc); }
.tier-glyph .g-dim { stroke: var(--acc); fill: none; stroke-width: 1.25; opacity: 0.35; }
.tier-glyph .g-ink { stroke: var(--ink); fill: none; stroke-width: 1.25; opacity: 0.5; }
.bento-card:hover .tier-glyph .g-spin { animation: glyph-rotate 12s linear infinite; transform-origin: center; }
@keyframes glyph-rotate { to { transform: rotate(360deg); } }

.bento-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.bento-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.bento-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--acc);
  letter-spacing: 0.05em;
}
.bento-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-feat {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bento-feat::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--acc2);
  flex-shrink: 0;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.stat-block { background: var(--bg); padding: 40px 32px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--acc); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.process-step {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.process-step-bg {
  position: absolute;
  top: -20px; left: -10px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: rgba(201,100,66,0.03);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: block;
}
.process-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.process-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.pricing-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-out-quart);
}
.pricing-card.featured {
  background:
    linear-gradient(180deg, rgba(201,100,66,0.04), transparent 50%),
    var(--bg);
  box-shadow: inset 0 0 0 1px rgba(201,100,66,0.2);
  z-index: 1;
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--acc);
  padding: 4px 8px;
  pointer-events: none;
}
.pricing-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
  display: block;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.pricing-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pricing-feat {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}
.pricing-feat::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--acc2);
  flex-shrink: 0;
  margin-top: 8px;
}
.pricing-feat.bold { color: var(--ink); font-weight: 400; }
.stripe-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  min-height: 44px;
  background: transparent;
  color: var(--acc);
  border: 1px solid rgba(201,100,66,0.35);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stripe-btn:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.pricing-card.featured .stripe-btn {
  background: var(--acc2);
  color: #fff;
  border-color: var(--acc);
}
.pricing-card.featured .stripe-btn:hover { background: var(--acc2); }
.stripe-notice {
  background: #1C1917;
  box-shadow: 0 24px 80px rgba(28,25,23,0.10), 0 8px 24px rgba(28,25,23,0.07);
  border: 1px solid var(--border);
  padding: 16px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stripe-notice svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--acc); }
.stripe-notice p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.5;
}
.stripe-notice p span { color: var(--ink); }

/* TOOLS GRID (AI agents) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.tool-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.tool-card:hover { background: var(--bg2); }
.tool-card:hover .tool-line { width: 100%; }
.tool-line {
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--acc2);
  transition: width 0.4s ease;
}
.tool-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 20px;
  display: block;
}
.tool-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.tool-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.tool-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tool-spec {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
}
.tool-pricing {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.tool-pricing span { color: var(--acc); }

/* ICONS */
.icon-svg {
  width: 32px; height: 32px;
  stroke: var(--acc);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 24px;
  display: block;
}

/* INTEGRATIONS MARQUEE-GRID */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.integration-chip {
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s;
}
.integration-chip:hover { background: var(--bg2); }
.integration-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.integration-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* MANIFESTO */
.manifesto {
  padding: var(--section-y) var(--section-x);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 800px; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.manifesto-text .dim { color: rgba(28,25,23,0.18); }
.manifesto-text .acc { color: var(--acc); }

/* PROOF */
.proof-bar {
  padding: clamp(32px, 5vw, 48px) var(--section-x);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.proof-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.proof-logos { display: flex; gap: 48px; align-items: center; flex: 1; justify-content: flex-end; }
.proof-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,25,23,0.45);
  border: 1px solid rgba(28,25,23,0.1);
  padding: 8px 16px;
  transition: color 0.3s, border-color 0.3s;
}
.proof-logo:hover { color: var(--ink); border-color: rgba(28,25,23,0.3); }

/* CTA BANNER */
.cta-banner {
  padding: var(--section-y) var(--section-x);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cta-headline span { color: var(--acc); }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 48px 0 0; }
.faq-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 40px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.faq-cat:first-child { margin-top: 0; }
.faq-cat::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--acc);
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.35;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--acc);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-quart);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out-quart);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}
.faq-a-inner a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* FOOTER */
footer {
  padding: clamp(32px, 4vw, 48px) var(--section-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.footer-logo span { color: var(--acc); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(120,113,108,0.5);
  text-transform: uppercase;
}

/* PORTAL CTA */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.portal-card { background: var(--bg); padding: 48px 40px; transition: background 0.3s; }
.portal-card:hover { background: var(--bg2); }
.portal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.portal-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); will-change: auto; }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* MOBILE NAV */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(250,248,244,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 32px 24px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:active, .mobile-menu a.active { color: var(--acc); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-login { display: none; }
  .nav-cta-primary { padding: 8px 14px; font-size: 11px; }
  .nav-toggle { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-headline { font-size: clamp(40px, 11vw, 64px); margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { text-align: center; padding: 16px 20px; }

  .terminal { max-width: 100%; }
  .terminal-body { padding: 18px; font-size: 11px; line-height: 1.7; overflow-x: auto; }

  .bento-grid, .pricing-grid, .stats-grid, .process-grid { grid-template-columns: 1fr; }
  .tools-grid, .portal-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .pricing-card, .tool-card, .portal-card { padding: 32px 24px; }
  .stat-block, .process-step { padding: 32px 24px; }
  .stat-num { font-size: 40px; }
  .pricing-price { font-size: 44px; }

  .cta-banner { grid-template-columns: 1fr; }
  .proof-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proof-logos { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .proof-text { white-space: normal; }

  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px 20px; }

  .marquee-track { animation-duration: 30s; }
  body::before { opacity: 0.08; }
}

@media (max-width: 420px) {
  .nav-logo { font-size: 16px; }
  .nav-cta-primary { padding: 7px 10px; font-size: 10px; letter-spacing: 0.06em; }
  .hero-headline { font-size: clamp(36px, 12vw, 52px); }
  .bento-name { font-size: 20px; }
  .tool-name { font-size: 22px; }
  .mobile-menu a { font-size: 24px; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

@supports (content-visibility: auto) {
  section, .manifesto, .cta-banner, .proof-bar {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
  }
}
