/* ============================================================
   Chaty — official site
   Concept: "Stays on your machine." Dark-first, hairline grids,
   a private node-graph leitmotif, the app's #19c37d green as a
   sparse accent. Light theme mirrors the app's own palette.
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  --bg:        #0b0c0d;
  --bg-2:      #111213;
  --surface:   #17181a;
  --surface-2: #1d1f21;
  --app-bg:    #212121;   /* faithful to the real Chaty window */
  --border:    rgba(255, 255, 255, 0.085);
  --border-2:  rgba(255, 255, 255, 0.15);
  --text:      #ededed;
  --text-dim:  #9a9aa0;
  --text-faint:#6a6a70;
  --accent:    #19c37d;
  --accent-bright: #36e6a0;
  --accent-deep:   #0c8a57;
  --slate:     #2b3340;
  --shadow:    rgba(0, 0, 0, 0.55);
  --glow:      rgba(25, 195, 125, 0.16);
  --grad-edge: rgba(255, 255, 255, 0.06);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:        #f6f6f7;
  --bg-2:      #efeff1;
  --surface:   #ffffff;
  --surface-2: #f0f0f2;
  --app-bg:    #ffffff;
  --border:    rgba(0, 0, 0, 0.1);
  --border-2:  rgba(0, 0, 0, 0.2);
  --text:      #18181c;
  --text-dim:  #56565e;
  --text-faint:#86868e;
  --accent:    #0c8a57;
  --accent-bright: #0fa169;
  --accent-deep:   #0a6e46;
  --slate:     #2b3340;
  --shadow:    rgba(20, 30, 40, 0.14);
  --glow:      rgba(12, 138, 87, 0.12);
  --grad-edge: rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
code { font-family: var(--font-mono); font-size: 0.86em; }
::selection { background: var(--accent); color: #04130c; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #04130c; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Atmosphere: glow + grain ---------- */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.9; }
.glow-a {
  width: 760px; height: 760px; top: -280px; left: 50%; transform: translateX(-46%);
  background: radial-gradient(circle, var(--glow), transparent 68%);
}
.glow-b {
  width: 620px; height: 620px; top: 1100px; right: -180px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0.6;
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.018; mix-blend-mode: overlay;
}
/* subtle dot grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--grad-edge) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 25%, transparent 75%);
  opacity: 0.5;
}

main, .nav, .footer { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow); flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: 12px; padding: 12px 20px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #04130c;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 34px -10px var(--accent); }
.btn-line { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-line:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.btn-lg {
  padding: 14px 22px; font-size: 15px; border-radius: 14px;
  text-align: left;
}
.btn-lg span { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.btn-lg strong { font-weight: 600; font-size: 15px; }
.btn-lg small { font-family: var(--font-mono); font-size: 11px; opacity: 0.72; letter-spacing: 0.01em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 26px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; color: var(--text); }
.brand-mark .net-node { fill: var(--accent); }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; margin-left: 14px; }
.nav-links a {
  font-size: 15px; color: var(--text-dim); font-weight: 500; position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.theme-toggle, .ghost-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--text-dim);
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover, .ghost-link:hover { color: var(--text); border-color: var(--border-2); background: var(--surface); }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: inline; }
.nav-burger { display: none; }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 22px 22px;
  border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.nav-mobile a { padding: 12px 4px; color: var(--text-dim); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border: none; margin-top: 10px; }
.nav-mobile .btn { color: #04130c; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 26px 80px; max-width: var(--maxw); margin: 0 auto; overflow: visible; }
.constellation {
  position: absolute; inset: 40px 0 auto; width: 100%; height: 560px; z-index: 0;
  opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.constellation .c-nodes circle { animation: twinkle 4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.constellation .c-nodes circle:nth-child(2n) { animation-delay: 1.1s; }
.constellation .c-nodes circle:nth-child(3n) { animation-delay: 2.3s; }
.constellation .c-links line { stroke-dasharray: 4 6; animation: flow 18s linear infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -200; } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 560px; }
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.lede { font-size: 18.5px; color: var(--text-dim); margin: 0 0 32px; max-width: 500px; }
.lede code { color: var(--text); background: var(--surface); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-sub { font-size: 14px; color: var(--text-faint); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-sub a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.hero-sub a:hover { color: var(--accent); }
.ver-chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--glow); padding: 2px 9px; border-radius: 20px;
}

/* ---------- Hero app window (faithful recreation) ---------- */
.hero-app { position: relative; perspective: 1600px; }
.app-window {
  background: var(--app-bg); border: 1px solid var(--border-2); border-radius: 14px;
  overflow: hidden; box-shadow: 0 40px 80px -30px var(--shadow), 0 0 0 1px var(--border);
  transform: rotateY(-9deg) rotateX(3deg) translateZ(0); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.hero-app:hover .app-window { transform: rotateY(-4deg) rotateX(1deg); }
:root[data-theme="light"] .app-window { box-shadow: 0 40px 80px -34px var(--shadow), 0 0 0 1px var(--border); }
.aw-titlebar {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--app-bg) 86%, #000);
}
:root[data-theme="light"] .aw-titlebar { background: #f3f3f5; }
.traffic { display: inline-flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.traffic i:nth-child(1) { background: #ff5f57; } .traffic i:nth-child(2) { background: #febc2e; } .traffic i:nth-child(3) { background: #28c840; }
.aw-title { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.aw-model {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 18px;
}
.aw-model .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.aw-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 13px; min-height: 232px; }
.msg { font-size: 13.5px; line-height: 1.5; max-width: 86%; }
.msg.user {
  align-self: flex-end; background: var(--surface-2); color: var(--text);
  padding: 9px 13px; border-radius: 14px 14px 4px 14px; border: 1px solid var(--border);
}
:root[data-theme="light"] .msg.user { background: #eceef0; }
.msg.bot { align-self: flex-start; color: var(--text); }
.msg.bot p { margin: 0 0 7px; }
.msg.bot b { color: var(--text); font-weight: 600; }
.think {
  display: inline-flex; margin-bottom: 8px;
}
.think-h {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-faint); font-family: var(--font-mono);
  border: 1px dashed var(--border-2); padding: 3px 9px; border-radius: 8px;
}
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 3px; margin-left: 3px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  color: var(--accent); background: var(--glow); border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  vertical-align: super; line-height: 1;
}
.cite.sm { vertical-align: baseline; }
.src-row { display: flex; gap: 7px; margin-top: 4px; }
.src {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 7px;
}
.aw-composer { border-top: 1px solid var(--border); padding: 12px 14px; }
.tools { display: flex; gap: 7px; margin-bottom: 10px; }
.tool {
  font-size: 11px; color: var(--text-dim); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 16px;
}
.tool.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--glow); }
.composer-bar {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 11px; padding: 9px 11px;
}
.composer-bar .ph { font-size: 13px; color: var(--text-faint); }
.composer-bar .send { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; }
.composer-bar .send::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 7px solid #04130c; border-top: 5px solid transparent; border-bottom: 5px solid transparent; left: 2px; }
.app-reflection {
  position: absolute; left: 8%; right: 8%; bottom: -40px; height: 80px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(18px); opacity: 0.7; z-index: -1;
}

/* ---------- Trust strip ---------- */
.trust {
  max-width: var(--maxw); margin: 24px auto 0; padding: 26px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.trust-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.trust-points li { font-size: 14px; color: var(--text-dim); display: flex; align-items: baseline; gap: 8px; }
.tp-k { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); }
.trust-models { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-right: 2px; }
.chip {
  font-size: 12.5px; color: var(--text); border: 1px solid var(--border-2);
  padding: 5px 11px; border-radius: 18px; background: var(--bg-2);
}
.chip.muted { color: var(--text-dim); border-style: dashed; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 26px; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2, .split-copy h2, .privacy-copy h2, .dl-card h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px;
}
.section-lede { font-size: 18px; color: var(--text-dim); margin: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card:hover::after { opacity: 1; }
.card-wide { grid-column: span 2; }
.card-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glow); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent); margin-bottom: 18px;
}
.card-ic svg { width: 23px; height: 23px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 9px; }
.card p { font-size: 15px; color: var(--text-dim); margin: 0; }
.card p code { color: var(--text); background: var(--bg-2); padding: 1px 6px; border-radius: 5px; }
.card-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.card-list.two-col { grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.card-list li { font-size: 14px; color: var(--text-dim); padding-left: 20px; position: relative; }
.card-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--glow);
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy p { color: var(--text-dim); font-size: 17px; margin: 0 0 22px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--text); }
.fl-dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }

.split-visual { display: grid; place-items: center; }
.kb-panel, .dr-panel {
  width: 100%; max-width: 420px; background: var(--app-bg); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 30px 60px -34px var(--shadow);
}
.kb-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.kb-q { margin-bottom: 14px; }
.kb-line { font-size: 14.5px; margin: 0 0 9px; color: var(--text); }
.kb-line b { font-weight: 600; }
.kb-line.dim { color: var(--text-faint); font-style: italic; font-size: 13.5px; }
.kb-srcs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.kb-src { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }

.dr-steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.dr-step {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 16px;
  border: 1px solid var(--border); color: var(--text-faint);
}
.dr-step.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.dr-step.done::before { content: "✓ "; }
.dr-step.active { color: var(--text); border-color: var(--border-2); background: var(--surface-2); position: relative; }
.dr-step.active::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 6px; animation: pulse 1.2s infinite; vertical-align: middle; }
.dr-queries { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.dr-q { font-size: 11.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; }
.dr-report { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--border); }
.dr-bar { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--surface)); }
.dr-bar.w1 { width: 100%; } .dr-bar.w2 { width: 82%; } .dr-bar.w3 { width: 64%; }
.dr-bar:first-child { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, var(--surface-2)), var(--surface)); }
.dr-export { display: flex; gap: 8px; margin-top: 6px; }
.dr-pdf, .dr-md { font-family: var(--font-mono); font-size: 11px; padding: 5px 11px; border-radius: 8px; }
.dr-pdf { color: #04130c; background: var(--accent); font-weight: 500; }
.dr-md { color: var(--text-dim); border: 1px solid var(--border-2); }

/* ---------- Privacy manifesto ---------- */
.privacy {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 26px;
}
.privacy {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.device-boundary {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px solid var(--border-2); background:
    linear-gradient(var(--surface), var(--bg-2));
  overflow: hidden; display: grid; place-items: center;
  box-shadow: inset 0 0 60px -20px var(--glow);
}
.device-boundary::before {
  content: ""; position: absolute; inset: 14px; border: 1px dashed var(--border-2); border-radius: 12px;
}
.db-net { width: 80%; height: 80%; }
.db-net circle { animation: twinkle 3.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.db-net circle:nth-child(2n) { animation-delay: 1s; }
.db-label {
  position: absolute; bottom: 16px; right: 18px; font-family: var(--font-mono);
  font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
}
.privacy-copy h2 { font-size: clamp(30px, 4.4vw, 48px); }
.privacy-copy p { color: var(--text-dim); font-size: 18px; margin: 0 0 18px; }
.privacy-fine { font-size: 15.5px !important; color: var(--text-faint) !important; }

/* ---------- Specs ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color 0.3s; }
.spec:hover { border-color: var(--border-2); }
.spec-os { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; color: var(--text); }
.spec-os h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; letter-spacing: -0.02em; }
.spec dl { margin: 0; display: grid; gap: 13px; }
.spec dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.spec dl div:last-child { border: none; padding-bottom: 0; }
.spec dt { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.spec dd { margin: 0; font-size: 14px; color: var(--text-dim); text-align: right; }
.spec dd code { color: var(--text); }

/* ---------- Download CTA ---------- */
.download { max-width: var(--maxw); margin: 0 auto; padding: 60px 26px 110px; }
.dl-card {
  position: relative; text-align: center; padding: 64px 36px;
  border: 1px solid var(--border-2); border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(900px circle at 50% -20%, var(--glow), transparent 55%),
    var(--surface);
}
.dl-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grad-edge) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 70%);
}
.dl-card > * { position: relative; }
.dl-mark { display: inline-flex; color: var(--text); margin-bottom: 18px; }
.dl-mark .net-node { fill: var(--accent); }
.dl-card h2 { margin-bottom: 12px; }
.dl-card > p { color: var(--text-dim); font-size: 18px; max-width: 460px; margin: 0 auto 30px; }
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.dl-note { font-size: 13px; color: var(--text-faint); }
.dl-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.dl-note a:hover { color: var(--accent); }

/* download platform emphasis (set by JS via .is-primary / .is-other) */
.dl-mac.is-other, .dl-win.is-other { order: 2; }
.dl-mac.is-primary, .dl-win.is-primary { order: 1; }

/* ---------- FAQ ---------- */
.faq { padding-top: 40px; }
.faq-list { max-width: 820px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px;
  background: var(--surface); overflow: hidden; transition: border-color 0.25s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.chev { flex: none; width: 12px; height: 12px; position: relative; transition: transform 0.3s var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; top: 5px; width: 8px; height: 1.8px; background: var(--text-dim); border-radius: 2px; }
.chev::before { left: -1px; transform: rotate(45deg); }
.chev::after { right: -1px; transform: rotate(-45deg); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p, .faq details pre { margin: 0 22px 18px; color: var(--text-dim); font-size: 15px; }
.faq details p:first-of-type { margin-top: 0; }
.faq pre {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px;
  overflow-x: auto;
}
.faq pre code { color: var(--accent); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 20px; background: var(--bg-2); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 26px 40px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag { color: var(--text-faint); font-size: 14px; margin: 0; font-family: var(--font-mono); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fcol { display: flex; flex-direction: column; gap: 11px; }
.fcol h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 4px; font-weight: 500; }
.fcol a, .fcol span { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; }
.fcol a:hover { color: var(--accent); }
.footer-base {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.footer-ver a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-ver a:hover { color: var(--accent); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer;
  }
  .nav-burger span { width: 17px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
  .nav-download { display: none; }
  .nav.open .nav-mobile { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-app { max-width: 460px; }
  .app-window { transform: none; }
  .hero-app:hover .app-window { transform: none; }
  .split, .privacy { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-copy { order: 0; }
  .device-boundary { order: 2; }
  .bento, .specs { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 130px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: flex-start; }
  .bento, .specs, .footer-inner, .footer-cols { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .card-list.two-col { grid-template-columns: 1fr; }
  .section { padding: 80px 22px; }
  .trust { padding: 22px; }
  .dl-card { padding: 44px 22px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .constellation .c-nodes circle, .constellation .c-links line,
  .db-net circle, .aw-model .live, .dr-step.active::after { animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
