/* Darwin — darwinaiassistant.com landing.
   Fonts + structure borrowed from the trading-bot landing (system stack + mono),
   Darwin's own cyan/magenta accent, HUD frame, reticle, per-section parallax. */
:root {
  --bg: #070B11; --bg2: #0C1219; --surface: #0F1620; --surface2: #141d29;
  --text: #E8F0F7; --dim: rgba(232,240,247,.66); --dim2: rgba(232,240,247,.4);
  --cyan: #22d3ee; --magenta: #d946ef; --accent: #22d3ee;
  --accent-soft: rgba(34,211,238,.5);
  --border: rgba(34,211,238,.16); --border2: rgba(255,255,255,.08);
  --mono: 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; }

/* ---- plexus backdrop (was missing its placement — why it wasn't visible) ---- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav, section, .hero, footer { position: relative; z-index: 1; }

/* ---- the shell: the whole page sits in a centered box, not full-monitor ---- */
.shell { position: relative; z-index: 1; max-width: 1460px; margin: 0 auto; min-height: 100vh;
  background: rgba(9, 14, 21, 0.55); border-inline: 1px solid var(--border2);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.55); overflow: clip; }
@media (max-width: 1500px) { .shell { border-inline: 0; } }

/* ---- HUD frame ---- */
.hud-frame { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.hud-frame .cnr { position: absolute; width: 26px; height: 26px; border: 1px solid var(--accent-soft); opacity: .55; }
.hud-frame .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-frame .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-frame .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-frame .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hud-frame .rail { position: absolute; top: 80px; bottom: 80px; width: 1px; background: linear-gradient(180deg, transparent, var(--border), transparent); }
.hud-frame .rail-l { left: 14px; } .hud-frame .rail-r { right: 14px; }
@media (max-width: 820px) { .hud-frame .rail { display: none; } .hud-frame .cnr { width: 18px; height: 18px; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.nav.scrolled { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(7,11,17,.72); border-bottom: 1px solid var(--border2); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 1px; font-size: 17px; }
.brand b { color: var(--cyan); }
.brand .glyph { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.brand-sub { font-weight: 600; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim2); border-left: 1px solid var(--border2); padding-left: 9px; margin-left: 4px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 13.5px; }
.nav nav a { color: var(--dim); } .nav nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 820px) { .nav nav a:not(.btn) { display: none; } .brand-sub { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; border-radius: 12px; padding: 13px 24px; cursor: pointer; border: 1px solid transparent; font-size: 15px; font-family: var(--font); transition: transform .12s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(120deg, var(--cyan), #38bdf8); color: #06121a; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(34,211,238,.3); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); text-decoration: none; }
.btn.block { width: 100%; justify-content: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; background: rgba(34,211,238,.05); margin-bottom: 18px; }

/* ---- per-section parallax video ---- */
section, .hero { position: relative; overflow: hidden; }
.sec-video { position: absolute; left: 0; right: 0; top: -5vh; width: 100%; height: 110vh; object-fit: cover; z-index: 0; pointer-events: none; opacity: .34; will-change: transform; }
.sec-tint { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 30%, rgba(7,11,17,.4), rgba(7,11,17,.88) 78%); pointer-events: none; }
.hero .sec-video { opacity: .38; }
.dash-sec .sec-video { opacity: .24; }   /* the dashboard stays readable — brain just glows behind */

/* ---- promise band (separates the two video blocks) ---- */
.promise { text-align: center; background: linear-gradient(180deg, rgba(34,211,238,.06), rgba(7,11,17,.6) 40%, rgba(34,211,238,.04)); }
.promise h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 10px 0 16px; }
.promise em { color: var(--cyan); font-style: normal; }
.promise-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 8px; text-align: left; }
.promise-items > div { background: rgba(15,22,32,.55); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.promise-items b { display: block; margin-bottom: 6px; color: var(--text); }
.promise-items span { color: var(--dim); font-size: .93rem; line-height: 1.55; }
.promise-vow { color: var(--dim); font-size: .98rem; max-width: 56ch; margin: 22px auto 18px; }
.promise-vow b { color: var(--cyan); }
@media (max-width: 880px) { .promise-items { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sec-video { display: none; } }
.wrap { position: relative; z-index: 2; }

/* ---- hero (short, centered) ---- */
.hero { padding: 100px 0 70px; text-align: center; }
.hero-center { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 16px; }
.hero h1 .accent { color: var(--cyan); }
.lead { font-size: 1.16rem; color: #cdd7e1; max-width: 46ch; margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.price-tag { font-family: var(--mono); color: var(--dim2); font-size: 13px; margin-top: 14px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--dim); font-size: 13px; justify-content: center; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---- THE DASHBOARD ---- */
.dash-sec { background: linear-gradient(180deg, rgba(34,211,238,.04), transparent 30%); border-top: 1px solid var(--border); }
.dash { display: grid; grid-template-columns: 215px 1fr 235px; gap: 20px; align-items: start; }
.dash-left, .dash-right { display: flex; flex-direction: column; gap: 14px; }
.hud-panel { position: relative; background: linear-gradient(180deg, rgba(10,18,28,.58), rgba(6,10,16,.48)); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.05rem .95rem; backdrop-filter: blur(4px); }
.hud-panel::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .55; }
.hud-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 9px; opacity: .9; }
.hud-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; padding: 3px 0; color: var(--dim); }
.hud-row b { color: var(--text); font-weight: 600; }
.hud-time { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: 1px; }
.hud-cd { font-family: var(--mono); font-size: 11px; color: var(--dim2); margin-top: 2px; }
.sig-wave { width: 100%; height: 46px; display: block; }

.dash-center { text-align: center; }
.dash-center .orb-stage { max-width: 430px; }
#spectrum { position: absolute; inset: -9%; width: 118%; height: 118%; z-index: 1; pointer-events: none; }
/* The answer reads like the app's dialogue line under the orb: dim mono text
   that fades out at the bottom — click to reveal the whole thing. Space is
   RESERVED (min-height) so the layout never jumps when an answer arrives. */
.dash-center .answer { margin: 18px auto 0; }
.answer.fade { background: transparent; border: 0; padding: 0 6px; font-family: var(--mono); font-size: .95rem; color: var(--dim); line-height: 1.75; min-height: 3.6em; max-height: 3.6em; overflow: hidden; cursor: pointer; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 95%); mask-image: linear-gradient(180deg, #000 35%, transparent 95%); transition: max-height .35s ease, color .25s; }
.answer.fade.expanded { max-height: 30em; color: #dce6ef; -webkit-mask-image: none; mask-image: none; }

/* the questions row — full content width so the chips spread comfortably */
.q-row { margin-top: 30px; text-align: center; }
.q-row .q-chips { justify-content: center; gap: 10px 12px; }

/* agent boxes — like the app's .ab-card */
.ab-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); opacity: .9; }
.ab-card { position: relative; background: linear-gradient(180deg, rgba(10,18,28,.6), rgba(6,10,16,.5)); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); border-radius: 10px; padding: .7rem .85rem .75rem; transition: border-color .2s, box-shadow .2s; }
.ab-card::before { content: ""; position: absolute; left: .8rem; right: .8rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ac), transparent); opacity: .5; }
.ab-card.speaking { border-color: var(--ac); box-shadow: 0 0 22px color-mix(in srgb, var(--ac) 30%, transparent); }
.ab-top { display: flex; align-items: center; gap: 8px; }
.ab-name { font-weight: 700; font-size: 14px; letter-spacing: .4px; }
.ab-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--dim2); transition: background .2s, box-shadow .2s; }
.ab-card.speaking .ab-dot { background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.ab-sig { width: 100%; height: 30px; display: block; margin: 4px 0 2px; }
.ab-role { font-size: 11.5px; color: var(--dim); }
.ab-status { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim2); margin-top: 4px; }
.ab-card.speaking .ab-status { color: var(--ac); }
.intro-btn { justify-content: center; font-size: 13.5px; padding: 11px 16px; }
.ab-note { font-size: 11px; color: var(--dim2); text-align: center; margin-top: 2px; }

/* world clocks strip */
.clocks { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.clock-card { min-width: 128px; text-align: center; background: rgba(10,18,28,.5); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; }
.clock-card .cc-city { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.clock-card .cc-time { font-family: var(--mono); font-size: 21px; font-weight: 600; color: var(--text); margin: 2px 0; }
.clock-card .cc-date { font-family: var(--mono); font-size: 10.5px; color: var(--dim2); }

/* memory stage */
.mem-stage { position: relative; aspect-ratio: 1/1; max-width: 520px; width: 100%; margin: 0 auto; }
#memGraph { width: 100%; height: 100%; display: block; cursor: grab; }
#memGraph:active { cursor: grabbing; }
/* click-to-expand: a window-in-the-page modal over a dimmed backdrop */
.mem-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(3,6,12,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* inset:0 + margin:auto centres the fixed box without transform — the .rv
   reveal styles fight any transform we'd set here. */
.mem-stage.mem-full { position: fixed; inset: 0; margin: auto; width: min(1100px, 94vw); height: min(86vh, 860px); z-index: 1001; max-width: none; aspect-ratio: auto; background: rgba(6,10,17,.97); border: 1px solid rgba(34,211,238,.35); border-radius: 14px; box-shadow: 0 0 90px rgba(34,211,238,.16); overflow: hidden; }
.mem-close { display: none; position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(34,211,238,.12); border: 1px solid var(--cyan); color: var(--cyan); border-radius: 8px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; cursor: pointer; }
.mem-stage.mem-full .mem-close { display: block; }
.mem-stage.mem-full .mem-labels { top: 48px; }
.mem-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; margin-top: 6px; }
.mem-leg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--dim); background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: border-color .15s, color .15s, opacity .15s; }
.mem-leg:hover { border-color: var(--cyan); color: var(--text); }
.mem-leg.on { border-color: var(--cyan); color: var(--text); background: rgba(34,211,238,.1); }
.mem-leg.dim { opacity: .4; }
.mem-leg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mem-back { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(34,211,238,.12); border: 1px solid var(--cyan); color: var(--cyan); border-radius: 8px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .5px; cursor: pointer; }
.mem-back[hidden] { display: none; }
.mem-labels { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(10,18,28,.6); border: 1px solid var(--border); color: var(--dim); border-radius: 8px; padding: 5px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .5px; cursor: pointer; }
.mem-labels:hover { border-color: var(--cyan); color: var(--text); }
.mem-labels.off { color: var(--dim2); }
.mem-hint { text-align: center; font-size: 11px; margin-top: 8px; }

/* stacked panel cards */
.stack { display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 1020px) {
  .dash { grid-template-columns: 1fr; }
  .dash-left { flex-direction: row; flex-wrap: wrap; }
  .dash-left .hud-panel { flex: 1 1 180px; }
  .dash-right { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .dash-right .ab-card { flex: 1 1 180px; }
  .dash-right .ab-h, .dash-right .ab-note { width: 100%; }
  .intro-btn { flex: 1 1 100%; }
}

/* ---- orb stage + reticle ---- */
.orb-stage { position: relative; aspect-ratio: 1/1; max-width: 440px; width: 100%; margin: 0 auto; }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.orb-reticle { position: absolute; top: 50%; left: 50%; width: 116%; height: 116%; transform: translate(-50%, -50%); z-index: 1; transition: transform .18s ease-out; pointer-events: none; }
.reticle-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 3px var(--accent-soft)); }
.reticle-rings, .reticle-tris { transform-box: fill-box; transform-origin: center; }
.reticle-rings { animation: ret-spin 72s linear infinite; }
.reticle-tris { animation: ret-spin-rev 48s linear infinite; }
@keyframes ret-spin { to { transform: rotate(360deg); } }
@keyframes ret-spin-rev { to { transform: rotate(-360deg); } }
.orb-stop { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 3; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.5); color: #fca5a5; border-radius: 8px; padding: 6px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; cursor: pointer; }

/* ---- faq row ---- */
.faq-row { margin-top: 36px; text-align: center; }
.faq-hint { color: var(--dim); font-size: 13.5px; margin-bottom: 14px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.q-chip { background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 9px 15px; font-size: 13.5px; cursor: pointer; font-family: var(--font); transition: border-color .15s, background .15s, color .15s; }
.q-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.q-chip.active { background: var(--cyan); color: #06121a; border-color: var(--cyan); }
.answer { max-width: 760px; margin: 18px auto 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(15,22,32,.6); color: #dce6ef; font-size: 1.05rem; min-height: 64px; opacity: .55; transition: opacity .3s, transform .3s; }
.answer.show { opacity: 1; }

/* ---- sections ---- */
section { padding: 78px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 10px 0 12px; }
.sec-head p { color: var(--dim); font-size: 1.05rem; }
.narrow { max-width: 720px; margin: 0 auto; text-align: center; }
.big { font-size: 1.08rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: rgba(15,22,32,.55); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.4); }
.card .ico { display: block; width: 34px; height: 34px; margin-bottom: 14px; background: var(--cyan); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.card h3 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 700; }
.card p { color: var(--dim); margin: 0; font-size: .96rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 8px 0 14px; }
.split p { color: var(--dim); }
.bullets { list-style: none; margin: 18px 0 0; }
.bullets li { padding: 8px 0 8px 28px; position: relative; color: #cdd7e1; }
.bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.panel-card { background: rgba(15,22,32,.6); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.panel-card h3 { font-size: 1.3rem; margin: 6px 0 12px; }

/* band */
.band { background: linear-gradient(180deg, rgba(34,211,238,.05), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; text-align: center; background: rgba(15,22,32,.7); border: 1px solid rgba(34,211,238,.35); border-radius: 20px; padding: 36px 30px; box-shadow: 0 0 60px rgba(34,211,238,.08); }
.price-card .big { font-size: 3rem; font-weight: 800; }
.price-card .big small { font-size: 1rem; color: var(--dim); font-weight: 400; }
.price-card ul { list-style: none; margin: 20px 0 26px; text-align: left; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: #cdd7e1; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.price-card .small { font-size: .82rem; margin-top: 14px; }

/* tiers (three packages) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; }
.tier.featured { border-color: rgba(34,211,238,0.5); box-shadow: 0 0 50px rgba(34,211,238,0.1); }
.tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--cyan), #38bdf8); color: #06121a; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.tier h3 { font-size: 1.25rem; margin: 0 0 4px; }
.tier-price { font-family: "Space Grotesk", sans-serif; font-size: 2.1rem; font-weight: 700; margin: 2px 0 6px; }
.tier-price small { font-size: 0.85rem; color: var(--dim); font-weight: 400; }
/* Enterprise card: no price — a label in the price slot, sized to read as text
   not a giant number, and shown as a block so the subtext sits underneath. */
.tier-price-text { font-size: 1.5rem; }
.tier-price-text small { display: block; font-size: 0.8rem; margin-top: 2px; }
.tier-for { color: var(--dim); font-size: 0.92rem; min-height: 2.6em; margin: 0 0 12px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.tier li { padding: 6px 0 6px 24px; position: relative; color: #cdd7e1; font-size: 0.94rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.tier li.muted { color: var(--dim2); } .tier li.muted::before { content: "—"; color: var(--dim2); }
.tier .btn.block { width: 100%; justify-content: center; }
/* "Learn more" link under each tier's CTA → its detail subpage. */
.tier-more { display: inline-block; margin: 10px 0 2px; font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); text-decoration: none; opacity: 0.85; }
.tier-more:hover { opacity: 1; text-decoration: underline; }

/* ---- Tier detail subpages (tier-*.html), shares the landing chrome ---- */
.tierpage { max-width: 860px; margin: 0 auto; padding: 56px 22px 90px; }
.tierpage a.back { font-family: var(--mono); font-size: 0.85rem; color: var(--cyan); text-decoration: none; }
.tierpage a.back:hover { text-decoration: underline; }
.tierpage .tp-eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 22px 0 6px; }
.tierpage h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 6px; }
.tierpage .tp-tag { color: var(--dim); font-size: 1.05rem; margin: 0 0 8px; }
.tierpage .tp-price { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; margin: 0 0 26px; }
.tierpage .tp-price small { font-size: 0.85rem; color: var(--dim); font-weight: 400; }
.tp-feature { border-top: 1px solid var(--line); padding: 22px 0; }
.tp-feature h2 { font-size: 1.25rem; margin: 0 0 6px; color: var(--cyan); }
.tp-feature p { color: #cdd7e1; margin: 0 0 8px; line-height: 1.55; }
.tp-feature ul { padding-left: 20px; margin: 6px 0 0; } .tp-feature li { color: #cdd7e1; margin: 4px 0; }
.tp-note { background: rgba(255,197,61,.07); border: 1px solid rgba(255,197,61,.28); border-radius: 10px; padding: 12px 16px; color: #e7d9b0; font-size: 0.92rem; }
.tp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 10px; }
.tier-lic { color: var(--dim2); font-size: 0.76rem; line-height: 1.5; margin: 12px 0 0; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* links */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.links h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; font-family: var(--mono); }
.links a { display: block; color: var(--dim); padding: 5px 0; font-size: .92rem; }
.links a:hover { color: var(--text); text-decoration: none; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--dim); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- scroll reveal ---- */
.rv { transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
html.js-reveal .rv:not(.rv-done) { opacity: 0; transform: translateY(18px); filter: blur(6px); }

@media (max-width: 880px) {
  .hero-grid, .split, .cards, .cards.three, .links { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; } .orb-stage { max-width: 320px; }
  .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================================
 * MyMemory brain — real app overlay (frontend/src/memgraph.ts + braincore.ts),
 * embedded inline into the #memory section. Vars mapped to this site's tokens.
 * ========================================================================== */
.graph-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
}
/* Embedded: live inside the .mem-stage box, not a fullscreen takeover. */
.graph-overlay.graph-embedded {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(6, 10, 17, 0.45); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.graph-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
}
.graph-actions { display: inline-flex; gap: 0.45rem; }
.graph-btn {
  font-family: inherit; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: rgba(8, 14, 24, 0.8); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.3rem 0.6rem; cursor: pointer;
}
.graph-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.graph-canvas { flex: 1 1 auto; width: 100%; min-height: 0; display: block; position: relative; z-index: 1; }
.graph-bgfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.graph-brain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.graph-listpanel {
  position: absolute; top: 3.2rem; right: 0.8rem; z-index: 4;
  width: min(240px, 60%); max-height: 66%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10,18,28,0.94), rgba(6,10,16,0.9));
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  font-family: var(--mono); overflow: hidden; animation: glp-in 0.22s ease-out both;
}
.graph-listpanel[hidden] { display: none; }
@keyframes glp-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.glp-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.glp-count { margin-left: auto; opacity: 0.6; font-size: 0.6rem; }
.glp-close { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 0.8rem; line-height: 1; padding: 0 0.1rem; }
.glp-close:hover { color: var(--cyan); }
.glp-list { overflow-y: auto; padding: 0.3rem; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; }
.glp-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
  background: none; border: none; cursor: default; padding: 0.35rem 0.45rem; border-radius: 4px;
  color: #cfe6ff; font-family: inherit; font-size: 0.7rem;
}
.glp-item:hover { background: rgba(34, 211, 238, 0.1); }
.glp-item i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.glp-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glp-open { display: none; }   /* web: notes are a sample vault, nothing to open */
.glp-folder { color: var(--dim); cursor: default; }
.glp-folder:hover { background: none; }
/* Mobile: the list used to cover the whole brain. Narrow it to <half the
   width, pinned right, smaller text — so the brain stays visible beside it. */
@media (max-width: 720px) {
  .graph-listpanel {
    width: 48%; max-width: 190px; top: 2.8rem; right: 0.5rem; max-height: 60%;
    background: linear-gradient(180deg, rgba(10,18,28,0.92), rgba(6,10,16,0.86));
  }
  .glp-head { padding: 0.45rem 0.5rem; font-size: 0.58rem; gap: 0.35rem; }
  .glp-item { font-size: 0.62rem; padding: 0.3rem 0.35rem; gap: 0.4rem; }
  .glp-list { padding: 0.2rem; }
}
.graph-legend {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem;
  padding: 0.55rem 0.8rem; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.58rem; color: var(--dim);
}
.graph-leg { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--dim); border-radius: 999px; padding: 0.25rem 0.6rem; font: inherit; cursor: pointer; transition: border-color .15s, color .15s, opacity .15s; }
.graph-leg:hover { border-color: var(--cyan); color: var(--text); }
.graph-leg.on { border-color: var(--cyan); color: var(--text); background: rgba(34,211,238,0.12); }
.graph-leg.dim { opacity: 0.4; }
.graph-leg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.graph-back { border-color: var(--cyan); color: var(--cyan); }

/* MyMemory — inline preview vs. pop-out window ------------------------------- */
#memStage { cursor: pointer; }
#memStage.is-preview::after {
  content: "\2922  click to enlarge"; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); z-index: 5; pointer-events: none; opacity: .9;
  font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  background: rgba(6,10,17,.72); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px;
}
/* Caption under the brain inside the pop-out window. */
.mem-win-hint {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%); z-index: 6;
  pointer-events: none; opacity: .9; text-align: center; max-width: min(90%, 460px); line-height: 1.5;
  font: 600 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  background: rgba(6,10,17,.72); border: 1px solid var(--border); border-radius: 14px; padding: 7px 15px;
}
/* Keep the window bar tidy on any width: title truncates, buttons never wrap. */
.graph-bar { gap: 0.5rem; }
.graph-bar .graph-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-bar .graph-actions { flex: 0 0 auto; }
.graph-overlay.graph-preview { pointer-events: none; }
.graph-overlay.graph-preview .graph-bar { display: none; }
@keyframes mem-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mem-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
                     to   { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.mem-win-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: mem-fade .2s ease both;
}
.mem-win {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1100px, 94vw); height: min(86vh, 860px); z-index: 1001;
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 90px rgba(34, 211, 238, 0.18), 0 30px 120px rgba(0, 0, 0, 0.6);
  animation: mem-pop .26s cubic-bezier(.2, .9, .3, 1.2) both;
}
.mem-win .graph-overlay.graph-embedded { border: none; border-radius: 16px; }

/* Live "Ask Darwin" demo (FAQ section) ------------------------------------- */
.ask-live { margin-top: 24px; text-align: center; }
.ask-hint { font-size: 13px; color: var(--dim); margin: 0 0 10px; }
.ask-hint b { color: var(--text); }
.ask-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; align-items: center; }
.ask-mic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  background: rgba(10,18,28,.7); border: 1px solid var(--border); color: var(--cyan); font-size: 16px; line-height: 1; }
.ask-mic:hover { border-color: var(--cyan); }
.ask-mic.rec { background: rgba(239,68,68,.18); border-color: #ef4444; color: #ef4444; animation: ask-pulse 1s ease-in-out infinite; }
@keyframes ask-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.ask-input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px; border-radius: 10px;
  background: rgba(6,10,17,.7); border: 1px solid var(--border); color: var(--text);
  font-family: var(--mono); font-size: 13px; }
.ask-input::placeholder { color: var(--dim2); }
.ask-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.ask-send { flex: 0 0 auto; height: 42px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  background: var(--cyan); border: 1px solid var(--cyan); color: #04121a; font-weight: 700;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ask-send:hover { filter: brightness(1.08); }
.ask-form.asking .ask-send { opacity: .6; }
.ask-form [disabled] { opacity: .5; cursor: not-allowed; }
.ask-note { font-size: 11px; margin: 8px 0 0; }
@media (max-width: 520px) {
  .ask-form { flex-wrap: wrap; }
  .ask-input { order: 0; flex-basis: 100%; }
  .ask-mic { order: 1; }
  .ask-send { order: 2; flex: 1 1 auto; }
}

/* Mobile: lightweight tap placeholder instead of an always-on 2nd WebGL context. */
#memStage.mem-tap {
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 300px; border: 1px solid var(--border); border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, rgba(255,122,24,.20), rgba(255,122,24,.05) 45%, rgba(6,10,17,.35) 70%);
}
#memStage.mem-tap::after {
  content: "\2922  tap to explore your memory"; color: var(--cyan);
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 999px; padding: 11px 17px;
  background: rgba(6,10,17,.62); backdrop-filter: blur(2px);
}

/* Peek-inside dashboard gallery -------------------------------------------- */
#peek .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 10px; }
#peek figure { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: rgba(8,14,24,.5); transition: transform .15s, border-color .15s, box-shadow .2s; }
#peek figure:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 12px 36px rgba(34,211,238,.14); }
#peek img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border); }
#peek figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim); padding: .55rem .7rem; }
@media (max-width: 860px) { #peek .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #peek .shots { grid-template-columns: 1fr; } }

/* Gallery lightbox (click a screenshot to enlarge) ------------------------- */
#peek img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(3,6,12,.92);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  padding: 4vh 4vw; animation: mem-fade .18s ease both; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px;
  border: 1px solid var(--border); box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox[hidden] { display: none; }

/* Uniform gallery tiles regardless of source image dimensions */
#peek img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Marketing rework: 3 feeling-pillars, founder section, hero outcome line ---- */
.promise-lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--cyan); font-weight: 600; margin: 4px 0 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: rgba(15,22,32,.5); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s, transform .15s; }
.pillar:hover { border-color: var(--cyan); box-shadow: 0 12px 40px rgba(34,211,238,.12); transform: translateY(-3px); }
.pillar-tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; background: rgba(34,211,238,.06); }
.pillar h3 { font-size: 1.35rem; margin: 0 0 10px; }
.pillar > p { color: var(--dim); font-size: .95rem; line-height: 1.6; margin: 0 0 18px; }
.pillar-list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pillar-list li { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--text); }
.pillar-list .ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--cyan); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
#founder .founder-quote { font-size: 1.25rem; line-height: 1.7; color: #dbe6f0; max-width: 60ch; margin: 18px auto 14px; }
#founder .founder-quote strong { color: var(--cyan); font-weight: 700; }
#founder .founder-sign { font-family: var(--mono); color: var(--dim); letter-spacing: .04em; font-size: .9rem; }

/* pillar icons need a fill + mask sizing (like .card .ico) to be visible */
.pillar-list .ico { display: block; background: var(--cyan); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* Founder story — multi-paragraph honest narrative */
#founder .founder-story { max-width: 64ch; margin: 18px auto 14px; }
#founder .founder-story p { font-size: 1.08rem; line-height: 1.75; color: #cdd7e1; margin: 0 0 16px; }
#founder .founder-story em { color: var(--text); font-style: italic; }
#founder .founder-story strong { color: var(--cyan); font-weight: 700; }

/* Closing CTA — strong finish that echoes the founder's "be among the first" */
.closer { background: linear-gradient(180deg, rgba(34,211,238,.07), transparent 65%); border-top: 1px solid var(--border); text-align: center; }
.closer h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 8px 0 14px; }
.closer .price-tag { margin-top: 16px; }
