/* ============================================================
   Cinematic Agents — cinematicagents.com
   Single stylesheet. Dark-first, mobile-first.
   Visual language reused from the CinematicShaper design system:
   warm near-black, orange as the sole accent, glass surfaces, grain.
   ============================================================ */

/* ── Webfonts: self-hosted (offline-safe).
   In the Next.js source these load via next/font (see README). ── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  /* Backgrounds — warm near-black */
  --bg-0: #080810;
  --bg-1: #0c0d18;
  --bg-2: #10121f;

  /* Glass surfaces */
  --surface:        rgba(255,255,255,0.045);
  --surface-strong: rgba(255,255,255,0.075);
  --surface-hover:  rgba(255,255,255,0.065);

  /* Borders */
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* Text — warm whites */
  --text-1: #f4f1ec;
  --text-2: rgba(244,241,236,0.74);
  --text-3: rgba(244,241,236,0.5);

  /* Primary — orange, the SOLE accent */
  --primary-300: #fdba74;
  --primary-400: #ffb347;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;

  /* Secondary warm tone (per spec) */
  --secondary-warm: #e0a36b;

  --success-500: #22c55e;
  --focus-ring: rgba(249,115,22,0.55);

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadow / glow */
  --shadow-soft:     0 12px 40px rgba(0,0,0,0.55);
  --shadow-elevated: 0 18px 50px rgba(0,0,0,0.6);
  --cta-shadow:      0 0 0 1px rgba(249,115,22,.4), 0 8px 28px rgba(249,115,22,.30);

  /* Motion */
  --ease-standard: cubic-bezier(0.2,0.8,0.2,1);
  --dur-fast: 150ms;

  /* Type */
  --font-sans:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --nav-h: 64px;
  --max:   1200px;
}

/* ── Reset (minimal; does not fight a Tailwind preflight) ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 420;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* ── Shared primitives ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--primary-300); margin: 0;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-500); box-shadow: 0 0 10px rgba(249,115,22,.8);
}
.eyebrow.no-dot::before { display: none; }

.grad-orange {
  background: linear-gradient(135deg,#fdba74 0%,#f97316 45%,#ea580c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-full);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 15px 22px; font-size: 15px; }

.btn-primary {
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg,#f97316 0%,#ea580c 100%);
  box-shadow: var(--cta-shadow);
}
.btn-primary:hover { transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(249,115,22,.55), 0 12px 36px rgba(249,115,22,.4); }

.btn-ghost {
  color: var(--text-1); background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.22); }

.btn .g-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Google sign-in button (white, branded) ── */
.btn-google {
  background: #fff; color: #1f1f1f; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 28px rgba(0,0,0,.35);
}
.btn-google:hover { transform: translateY(-1px); background: #f7f7f7;
  box-shadow: 0 0 0 1px rgba(249,115,22,.45), 0 12px 34px rgba(249,115,22,.18); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,16,0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast), backdrop-filter var(--dur-fast);
}
.nav[data-scrolled="true"] {
  background: rgba(8,8,16,0.72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg,#f97316,#ea580c);
  box-shadow: 0 0 18px rgba(234,88,12,.32);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.brand-name b { color: var(--primary-500); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  background: transparent; border: 0; padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover { color: #fff; background: var(--surface-hover); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .log-in {
  background: transparent; border: 0; color: var(--text-2);
  font-size: 14px; font-weight: 600; padding: 8px 12px;
  transition: color var(--dur-fast);
}
.nav-actions .log-in:hover { color: #fff; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 56px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow-a {
  position: absolute; top: -12%; left: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(249,115,22,.20) 0%, transparent 62%);
  filter: blur(30px);
}
.hero-bg .glow-b {
  position: absolute; bottom: -20%; right: -6%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(224,163,107,.12) 0%, transparent 62%);
  filter: blur(36px);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url('assets/grain.svg'); background-size: 256px;
}
.hero-inner { position: relative; z-index: 2; padding: 26px 0 56px; }
.hero-copy { max-width: 760px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 0.95;
  letter-spacing: -0.046em; color: #fff; margin: 16px 0 0;
}
.hero-sub {
  margin: 22px 0 0; max-width: 590px;
  color: var(--text-2); font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.62;
  font-weight: 400; letter-spacing: -0.006em;
}
.hero-ctas { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-reassure {
  margin-top: 18px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.hero-reassure .dot { color: var(--secondary-warm); }

/* chips row */
.hero-chips { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); background: var(--surface);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip svg { width: 14px; height: 14px; color: var(--primary-400); }

/* ── The canvas mockup (hero centerpiece) ── */
.canvas-wrap { margin-top: 36px; position: relative; }
.canvas {
  position: relative; width: 100%; height: clamp(340px, 42vw, 520px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 400px at 70% -10%, rgba(249,115,22,.10), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
/* dotted pan grid */
.canvas-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.2px);
  background-size: 26px 26px; background-position: -2px -2px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
}
.canvas-toolbar {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
}
.canvas-dots { display: flex; gap: 6px; }
.canvas-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.canvas-dots i:first-child { background: rgba(249,115,22,.7); }
.canvas-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  padding: 4px 9px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
}
.canvas-zoom {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  padding: 5px 10px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
}

/* SVG wire layer fills the canvas coordinate space */
.canvas-wires { position: absolute; inset: 0; z-index: 2; }

/* nodes positioned by % within the canvas */
.node {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  width: clamp(116px, 15.5%, 200px);
  background: rgba(16,18,31,0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
}
.node-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; border-bottom: 1px solid var(--border);
}
.node-ic {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--primary-400);
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.22);
}
.node-ic svg { width: 13px; height: 13px; }
.node-kind {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
.node-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.node-body { padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; }
.node-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
}
.node-pill {
  font-family: var(--font-mono); font-size: 9.5px; padding: 2px 7px;
  border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-1);
}
.node-pill.ok { color: var(--success-500); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.node-pill.accent { color: var(--primary-300); border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.08); }
/* node port dots */
.port { position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-1); border: 1.5px solid var(--primary-500); top: 50%; transform: translateY(-50%); z-index: 4; }
.port.in { left: -5px; }
.port.out { right: -5px; }

.node.selected { border-color: rgba(249,115,22,.5);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(249,115,22,.4), 0 0 26px rgba(249,115,22,.16); }

/* AI chat dock inside canvas */
.canvas-chat {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  width: min(64%, 560px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 16px; border-radius: var(--radius-full);
  background: rgba(12,13,24,0.86); border: 1px solid var(--border-strong);
  box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 24px rgba(249,115,22,.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.canvas-chat .spark { width: 16px; height: 16px; color: var(--primary-400); flex-shrink: 0; }
.canvas-chat .ph {
  flex: 1; min-width: 0; font-size: 13px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.canvas-chat .ph .caret { color: var(--primary-400); font-weight: 700; }
.canvas-chat .send {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; border: 0;
  background: linear-gradient(135deg,#f97316,#ea580c);
}
.canvas-chat .send svg { width: 15px; height: 15px; }

/* ============================================================
   NODE-TYPES BANNER
   ============================================================ */
.types {
  position: relative; padding: 44px 0;
}
.types-label {
  text-align: center; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text-3);
}
.types-rows { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.type-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 650; color: var(--text-1); letter-spacing: -0.01em;
  transition: transform 200ms var(--ease-standard), border-color 200ms, background 200ms, color 200ms;
}
.type-pill svg { width: 15px; height: 15px; color: var(--primary-400); }
.type-pill:hover { transform: translateY(-2px); border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.05); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; padding: clamp(72px, 11vw, 132px) 0; }
.section-head { max-width: 680px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.02;
  letter-spacing: -0.038em; color: #fff; margin: 16px 0 0;
}
.section-head p { margin: 18px 0 0; color: var(--text-2); font-size: 1.1rem; line-height: 1.62; font-weight: 400; letter-spacing: -0.006em; max-width: 560px; }

/* ── Features ── */
.features { background: transparent; overflow: hidden; }
.features .glow-a {
  position: absolute; top: -8%; left: -10%; width: 640px; height: 640px; pointer-events: none;
  background: radial-gradient(circle, rgba(249,115,22,.16) 0%, transparent 60%); filter: blur(40px);
}
.features .glow-b {
  position: absolute; bottom: -12%; right: -10%; width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(circle, rgba(224,163,107,.10) 0%, transparent 60%); filter: blur(40px);
}
.features-inner { position: relative; }
.feature-grid {
  margin-top: 52px; display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  border-radius: var(--radius-lg); background: rgba(16,18,31,.9);
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  padding: 26px; transition: transform 200ms var(--ease-standard), border-color 200ms, box-shadow 200ms;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(249,115,22,.22);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(249,115,22,.08); }
.feature-ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--primary-400);
  background: rgba(249,115,22,.10); border: 1px solid rgba(249,115,22,.22);
  margin-bottom: 18px;
}
.feature-ic svg { width: 23px; height: 23px; }
.feature-card h3 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 10px; line-height: 1.25;
}
.feature-card p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }

/* ── How it works ── */
.how { background: transparent; overflow: hidden; }
.steps { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--primary-400); letter-spacing: .1em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 0.97rem; line-height: 1.6; }
.step-visual {
  margin-top: 18px; height: 84px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-2);
  display: flex; align-items: center; padding: 0 14px; gap: 8px; overflow: hidden;
}

/* mini node row used inside step visuals */
.mini-node {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
  padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); white-space: nowrap;
}
.mini-node b { color: var(--primary-300); font-weight: 600; }
.mini-wire { width: 16px; height: 1.5px; background: rgba(249,115,22,.5); flex-shrink: 0; border-radius: 2px; }
.mini-chat {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2);
}
.mini-chat .spark { width: 13px; height: 13px; color: var(--primary-400); }
.mini-deploy {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-1);
  padding: 6px 11px; border-radius: var(--radius-full);
  border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.08); color: var(--success-500);
  font-family: var(--font-mono);
}

/* ============================================================
   CTA + waitlist
   ============================================================ */
.cta { position: relative; text-align: center; overflow: hidden;
  background: transparent; padding: clamp(80px, 12vw, 140px) 0; }
.cta-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 380px at 50% 55%, rgba(249,115,22,.22) 0%, transparent 65%); }
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-weight: 760;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 0.98; letter-spacing: -0.046em; color: #fff; margin: 16px 0 0; }
.cta-sub { margin: 22px auto 0; max-width: 500px; color: var(--text-2); font-size: 1.12rem; line-height: 1.6; font-weight: 400; letter-spacing: -0.006em; }
.cta-ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* waitlist stub */
.waitlist { margin: 36px auto 0; max-width: 460px; }
.waitlist-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.waitlist-form { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist-input {
  flex: 1; min-width: 220px;
  padding: 13px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  color: var(--text-1); font-size: 14px; font-family: var(--font-sans);
}
.waitlist-input::placeholder { color: var(--text-3); }
.waitlist-input:focus { outline: none; border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.waitlist-msg { margin-top: 12px; font-size: 13px; min-height: 18px; color: var(--success-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-0); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { max-width: 280px; }
.footer-about p { margin-top: 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--primary-500); }
.footer-bot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--text-3); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--primary-500); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .log-in { display: none; }
  .canvas-chat { width: calc(100% - 28px); }
  .canvas-zoom { display: none; }
  .node-body { display: none; }     /* keep node headers legible at small sizes */
  .node { width: clamp(96px, 26%, 150px); }
}
@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Motion.
   IMPORTANT: never start visible content at opacity:0 behind a timeline-driven
   animation — some embedded/preview contexts freeze the animation timeline and the
   content would never appear. Content is always visible; motion is decorative only. ── */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .wire-flow { stroke-dasharray: 5 11; animation: wiremove 1.1s linear infinite; }
  @keyframes wiremove { to { stroke-dashoffset: -16; } }
}

/* ============================================================
   CONTENT & LEGAL PAGES  (about / contact / support / terms / privacy)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: clamp(60px, 9vw, 108px) 0 clamp(40px, 6vw, 64px);
}
.page-hero .glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, rgba(249,115,22,.16) 0%, transparent 60%); filter: blur(40px);
}
.page-hero .hero-grain { z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em;
  color: #fff; margin: 14px 0 0; max-width: 16ch;
}
.page-lead { margin: 20px 0 0; max-width: 620px; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; }
.page-meta { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-3); }

.page-section { padding: clamp(52px, 7vw, 84px) 0; }
.page-section + .page-section { padding-top: 0; }

/* Centered reading column — keeps content symmetric on wide screens
   (nav + footer stay full-width). */
.page-hero > .container,
.page-section > .container { max-width: 800px; }
.page-hero > .container .prose,
.page-section > .container .prose { max-width: none; }
.faq { max-width: none; }
.contact-grid { max-width: none; }
.contact-form { max-width: 640px; }

/* Reading column */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; color: #fff;
  margin-top: 44px; margin-bottom: 4px; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 650; color: var(--text-1); margin-top: 26px; }
.prose p { color: var(--text-2); line-height: 1.75; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { color: var(--text-2); line-height: 1.65; padding-left: 24px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-500); }
.prose a { color: var(--primary-400); text-decoration: none; border-bottom: 1px solid rgba(249,115,22,.3); transition: color var(--dur-fast); }
.prose a:hover { color: var(--primary-300); }
.prose strong { color: var(--text-1); font-weight: 650; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--primary-300); }

/* Lettered/numbered legal sections */
.legal-section { margin-top: 40px; }
.legal-section:first-child { margin-top: 0; }
.legal-num { font-family: var(--font-mono); font-size: 12px; color: var(--primary-400); letter-spacing: .1em; }

/* FAQ — native details/summary (no JS, transform-only = safe when timeline frozen) */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color var(--dur-fast); }
.faq-item[open] { border-color: rgba(249,115,22,.25); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 650; font-size: 1.02rem; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-300); }
.faq-q-ic { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary-400); transition: transform var(--dur-fast) var(--ease-standard); }
.faq-item[open] .faq-q-ic { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-2); line-height: 1.7; }
.faq-a p + p { margin-top: 12px; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(16,18,31,.9); padding: 24px; transition: border-color 200ms, transform 200ms var(--ease-standard); }
.contact-card:hover { border-color: rgba(249,115,22,.22); transform: translateY(-2px); }
.contact-card .feature-ic { margin-bottom: 16px; }
.contact-card h3 { font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
.contact-card p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; }
.contact-card a { color: var(--primary-400); font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid rgba(249,115,22,.3); }
.contact-card a:hover { color: var(--primary-300); }

/* Contact form (stub) */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea {
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  color: var(--text-1); font: 450 15px var(--font-sans); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px rgba(249,115,22,.16); }
.form-msg { font-size: 13px; min-height: 18px; color: var(--success-500); }

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}
