/* ═══════════════════════════════════════════════════════════════════
   BEING AGENTS — corporate design system  ·  "deep space, warm heart"
   The company surface is night: engineered, precise, luminous.
   (The family product stays daylight — the contrast IS the brand.)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --space-0: #04060d;
  --space-1: #080c18;
  --space-2: #0c1224;
  --line: rgb(148 163 216 / 0.13);
  --text: #e8ecf8;
  --text-soft: rgb(232 236 248 / 0.62);
  /* UI-W1 contrast fix: 38% white on #04060d was ≈3.1:1 (AA fail); 55% = 5.5:1. */
  --text-faint: rgb(232 236 248 / 0.55);
  /* UI-W1 ion unification: one violet everywhere — matches the app's --color-ion-a. */
  --ion-a: #6d5cff;
  --ion-b: #00c2ff;
  --lav: #a99bff;
  --mint: #00d68f;
  --glass: rgb(255 255 255 / 0.035);
  --glass-border: rgb(255 255 255 / 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--space-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* engineered backdrop: fine grid + two slow aurora fields */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(148 163 216 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 216 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
.backdrop .glow { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .3; animation: drift 22s ease-in-out infinite; }
.backdrop .g1 { top: -14rem; left: -10rem; width: 42rem; height: 42rem; background: radial-gradient(circle, #4433aa, transparent 65%); }
.backdrop .g2 { top: 30%; right: -14rem; width: 44rem; height: 44rem; background: radial-gradient(circle, #0b4d78, transparent 65%); animation-delay: -8s; }
@keyframes drift { 0%,100% { transform: translate(0,0) } 50% { transform: translate(3rem,-2.5rem) } }
@media (prefers-reduced-motion: reduce) { .backdrop .glow, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; } }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem; }

/* ——— navigation ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgb(4 6 13 / 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 66rem; margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--ion-a), var(--ion-b));
  box-shadow: 0 0 24px rgb(124 107 255 / .45), inset 0 1px 0 rgb(255 255 255 / .35);
}
.word { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.word .grad { background: linear-gradient(90deg, var(--ion-a), var(--ion-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 10px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--text-soft); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-links a.active { color: var(--text); background: rgb(124 107 255 / 0.14); }
.nav-cta {
  margin-left: .5rem; padding: .55rem 1.1rem !important; border-radius: 12px !important;
  color: #fff !important; font-weight: 700 !important;
  background: linear-gradient(135deg, var(--ion-a), var(--ion-b)) !important;
  box-shadow: 0 8px 24px -8px rgb(124 107 255 / .6);
}
/* FUNNEL (WS-A1): six nav items now — at phone widths the row wraps by design
   (flex-wrap above); tighter padding keeps the wrap to ONE extra line and the
   page free of horizontal overflow at 360px. */
@media (max-width: 480px) {
  .nav-links { gap: .1rem; }
  .nav-links a { padding: .45rem .6rem; font-size: 12.5px; }
  .nav-cta { margin-left: .2rem; padding: .5rem .8rem !important; }
}

/* ——— typography & sections ——— */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--lav); background: rgb(124 107 255 / .1); border: 1px solid rgb(124 107 255 / .25);
}
.kicker .pulse { width: 7px; height: 7px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 3px rgb(0 214 143 / .2); }
h1.display {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(38px, 7vw, 66px); line-height: 1.05; margin-top: 1.3rem;
}
.grad-text { background: linear-gradient(90deg, var(--ion-a), var(--ion-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 40rem; margin: 1.5rem auto 0; font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.lede b, .lede strong { color: var(--text); font-weight: 600; }
.section { padding: 4.5rem 0 2rem; }
h2.title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(26px, 4.4vw, 38px); letter-spacing: -.02em; }
.title-sub { margin-top: .8rem; max-width: 36rem; font-size: 14.5px; line-height: 1.7; color: var(--text-soft); }
.center { text-align: center; }
.center .title-sub { margin-left: auto; margin-right: auto; }

/* ——— cards & grids ——— */
.grid2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid4 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  border-radius: 22px; padding: 1.7rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgb(124 107 255 / .35); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
  background: linear-gradient(135deg, rgb(124 107 255 / .16), rgb(0 194 255 / .16));
  border: 1px solid rgb(124 107 255 / .22);
}
.card h3 { font-family: 'Sora', sans-serif; font-size: 16.5px; margin-top: .9rem; letter-spacing: -.01em; }
.card p { margin-top: .5rem; font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }

/* ——— hero panel / product panel ——— */
.panel {
  position: relative; border-radius: 30px; padding: 2.6rem 2rem; overflow: hidden;
  background: linear-gradient(140deg, rgb(124 107 255 / .1), rgb(0 194 255 / .06) 55%, transparent);
  border: 1px solid rgb(124 107 255 / .28);
}
.panel::after {
  content: ''; position: absolute; top: -40%; right: -20%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgb(0 194 255 / .12), transparent 60%); pointer-events: none;
}
.badge-live {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mint);
  background: rgb(0 214 143 / .1); padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid rgb(0 214 143 / .3);
}
.badge-live .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* ——— buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 2rem; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--ion-a), var(--ion-b));
  box-shadow: 0 16px 40px -12px rgb(124 107 255 / .7);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -12px rgb(124 107 255 / .8); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 1.7rem; border-radius: 16px; text-decoration: none;
  font-weight: 700; font-size: 14.5px; color: var(--text);
  background: rgb(255 255 255 / .05); border: 1px solid var(--glass-border);
  transition: background .2s;
}
.btn-ghost:hover { background: rgb(255 255 255 / .09); }

/* ——— principle rows (vision page) ——— */
.principle { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.principle .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px; color: var(--lav); padding-top: .2rem; min-width: 2.2rem; }
.principle h3 { font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -.01em; }
.principle p { margin-top: .45rem; font-size: 14px; line-height: 1.7; color: var(--text-soft); max-width: 42rem; }

/* ——— roadmap stages ——— */
.stage { border-radius: 20px; padding: 1.4rem; background: var(--glass); border: 1px dashed rgb(148 163 216 / .22); }
.stage.live { border: 1.5px solid rgb(0 214 143 / .4); background: rgb(0 214 143 / .04); }
.stage .st { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--text-faint); }
.stage.live .st { color: var(--mint); }
.stage h3 { font-family: 'Sora', sans-serif; font-size: 15.5px; margin-top: .5rem; }
.stage p { margin-top: .4rem; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }

/* ——— fact strip (honest numbers only) ——— */
.facts { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--glass); padding: 1.3rem 1rem; text-align: center; }
.fact .v { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; }
.fact .l { margin-top: .3rem; font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--text-faint); }

/* ——— trust page lists ——— */
.trust-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.trust-item h3 { font-family: 'Sora', sans-serif; font-size: 16.5px; display: flex; align-items: center; gap: .6rem; }
.trust-item p { margin-top: .5rem; font-size: 14px; line-height: 1.7; color: var(--text-soft); max-width: 44rem; }

/* ——— scroll reveal — PURE CSS, zero failure modes. Content must never depend
   on JavaScript to become visible; the animation is a bonus, not a gate. ——— */
.reveal { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }
.reveal:nth-child(2) { animation-delay: .08s } .reveal:nth-child(3) { animation-delay: .16s }
.reveal:nth-child(4) { animation-delay: .24s } .reveal:nth-child(5) { animation-delay: .3s }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* ——— chalk-board hero (UI 10/10 act 4) — the front door leads with the
   product's soul. The board writes itself in stages the way the live board
   does: statement, number line, hops one by one, then the answer circled.
   Reduced motion lands the finished board instantly — same law as the app. */
.hero-split { display: grid; gap: 2.8rem; grid-template-columns: 1fr; align-items: center; text-align: center; }
.hero-split .lede { margin-left: auto; margin-right: auto; }
.hero-ctas { margin-top: 2.4rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-split .chalkboard { justify-self: center; }
@media (min-width: 940px) {
  .hero-split { grid-template-columns: 1.08fr .92fr; text-align: left; }
  .hero-split .lede { margin-left: 0; margin-right: 0; }
  .hero-ctas { justify-content: flex-start; }
}
.chalkboard { width: min(100%, 470px); }
.board-face {
  position: relative; border-radius: 22px; padding: .9rem; overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 8%, rgb(255 255 255 / .05), transparent 55%),
    linear-gradient(160deg, #1b2721, #131d18 55%, #101813);
  border: 1px solid rgb(255 255 255 / .1);
  box-shadow:
    0 34px 80px -32px rgb(0 0 0 / .85),
    inset 0 0 70px rgb(0 0 0 / .5),
    0 0 0 6px rgb(255 255 255 / .03);
}
.board-face svg { display: block; width: 100%; height: auto; }
.ck { font-family: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive; fill: rgb(255 255 255 / .92); }
.ck-title { font-size: 42px; }
.ck-num { font-size: 21px; fill: rgb(255 255 255 / .78); }
.ck-ans { font-size: 40px; fill: #ffd98a; }
.ck-draw { fill: none; stroke: rgb(255 255 255 / .85); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.d-ring { stroke: #ffd98a; stroke-width: 2.4; }
/* the writing sequence — every path carries pathLength=600 so one dash pair
   draws them all at an even hand speed */
.ck-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: chalk-draw .55s ease-out forwards; }
.ck { opacity: 0; animation: chalk-land .4s ease-out forwards; }
.ck-title { animation-delay: .5s }
.d-line { animation-delay: 1.1s }
.d-ticks { animation-delay: 1.55s }
.n0 { animation-delay: 1.9s } .n1 { animation-delay: 2.0s } .n2 { animation-delay: 2.1s } .n3 { animation-delay: 2.2s } .n4 { animation-delay: 2.3s }
.h1 { animation-delay: 2.7s } .h2 { animation-delay: 3.15s } .h3 { animation-delay: 3.6s } .h4 { animation-delay: 4.05s }
.ck-ans { animation-delay: 4.6s }
.d-ring { animation-delay: 4.95s; animation-duration: .7s }
@keyframes chalk-draw { to { stroke-dashoffset: 0 } }
@keyframes chalk-land { to { opacity: 1 } }
.board-caption {
  margin-top: .95rem; display: flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: 12.5px; font-weight: 600; color: var(--text-faint);
}
@media (prefers-reduced-motion: reduce) {
  .ck, .ck-draw { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

/* ——— links inside body copy ——— */
.lav-link { color: var(--lav); font-weight: 600; text-decoration: none; }
.lav-link:hover { text-decoration: underline; }

/* ——— invite form ——— */
.field { margin-bottom: 1.15rem; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: .45rem; letter-spacing: .01em; }
.field .opt { color: var(--text-faint); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: 14.5px; color: var(--text);
  background: rgb(255 255 255 / 0.045); border: 1px solid var(--glass-border); border-radius: 12px;
  outline: none; transition: border-color .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: rgb(124 107 255 / .55); background: rgb(255 255 255 / 0.06); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-note { min-height: 1.2rem; font-size: 13px; color: #ff8fa3; margin: .2rem 0 .8rem; text-align: left; }
.btn-submit { width: 100%; border: 0; cursor: pointer; font: inherit; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.fine { margin-top: 1rem; font-size: 12px; line-height: 1.6; color: var(--text-faint); text-align: left; }
.fine a { color: var(--lav); text-decoration: none; }
.done { text-align: center; padding: 1.5rem 0; }
.done-mark {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #04110b;
  background: linear-gradient(135deg, var(--mint), #7cf5cd);
}

/* ——— footer ——— */
footer { margin-top: 4rem; border-top: 1px solid var(--line); background: rgb(4 6 13 / .6); }
.foot { max-width: 66rem; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot { grid-template-columns: 2fr 1fr 1fr; } }
.foot h4 { font-family: 'Sora', sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--text-faint); }
.foot ul { list-style: none; margin-top: .8rem; }
.foot li { margin-top: .5rem; }
.foot a { color: var(--text-soft); text-decoration: none; font-size: 13.5px; }
.foot a:hover { color: var(--text); }
.foot .blurb { margin-top: .8rem; font-size: 13px; line-height: 1.65; color: var(--text-soft); max-width: 22rem; }
.legal { border-top: 1px solid var(--line); padding: 1.2rem 1.5rem; text-align: center; font-size: 11.5px; color: var(--text-faint); }
