@import url("tokens.css");

/* ─────────────────────────────────────────────────────────────────
   Companion website — built on Aurora v0.1 tokens.
   ───────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cmp-paper);
  color: var(--cmp-ink);
  font-family: var(--cmp-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(255,255,255,.55), transparent 60%),
    var(--cmp-bg-grain);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Layout shell ── */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--cmp-s-7);
}

/* ── Nav ── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--cmp-paper), transparent 30%);
  border-bottom: 1px solid var(--cmp-card-edge);
}
nav.top .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--cmp-s-4) 0;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  color: var(--cmp-ink);
}
.mark .dot {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--cmp-ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.mark .dot::before, .mark .dot::after {
  content: ""; width: 4px; height: 6px;
  background: var(--cmp-paper); border-radius: 2px;
}
nav.top .links {
  display: flex; align-items: center; gap: var(--cmp-s-6);
  font-family: var(--cmp-mono);
  font-size: 12px; letter-spacing: .04em;
  color: var(--cmp-stone-dim);
  text-transform: uppercase;
}
nav.top .links a { transition: color .15s; }
nav.top .links a:hover { color: var(--cmp-ink); }

/* ── Buttons ── */
.btn {
  font-family: var(--cmp-sans); font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--cmp-r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cmp-ink); color: var(--cmp-paper); }
.btn-primary:hover { background: var(--cmp-ink-soft); }
.btn-secondary {
  background: var(--cmp-card); color: var(--cmp-ink);
  border-color: var(--cmp-card-edge);
}
.btn-secondary:hover { background: var(--cmp-paper-2); }
.btn-ghost { background: transparent; color: var(--cmp-ink); }
.btn-ghost:hover { background: rgba(58,56,51,.06); }

/* ── Section frame ── */
section { padding: var(--cmp-s-11) 0; }
.eyebrow {
  font-family: var(--cmp-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cmp-stone-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .eb-glyph {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--cmp-stone);
}
/* Signals eyebrow: five colored dots stay vivid against the muted label */
.eyebrow.eb-signals .eb-glyph { color: inherit; }
.section-head {
  max-width: 720px;
  margin-bottom: var(--cmp-s-9);
}
.section-head h2 {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 14px 0 16px;
}
.section-head .lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--cmp-ink-soft);
  margin: 0;
  max-width: 600px;
}

/* ───────── HERO ───────── */
.hero {
  padding: var(--cmp-s-11) 0 var(--cmp-s-10);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--cmp-s-9);
  align-items: center;
}
.hero h1 {
  font-size: 112px;
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 18px 0 12px;
}
.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--cmp-stone-dim);
}
.hero .sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--cmp-ink-soft);
  max-width: 520px;
  margin: 0 0 var(--cmp-s-7);
}
.hero .cta-row {
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
}
.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--cmp-s-7);
  border-top: 1px solid var(--cmp-card-edge);
  margin-top: var(--cmp-s-8);
  padding-top: var(--cmp-s-6);
}
.hero .stats div b {
  display: block;
  font-size: 22px; font-weight: 500;
  letter-spacing: -.01em;
}
.hero .stats div span {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ───────── HERO VIDEO ───────── */
.bot-video {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--cmp-r-2xl);
  overflow: hidden;
  background: var(--cmp-card);
  filter: drop-shadow(0 30px 30px rgba(58,56,51,.16));
}
.bot-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* ───────── ROBOT (CSS-built, used in interactive demo) ───────── */
.bot {
  position: relative;
  width: 360px; height: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 30px rgba(58,56,51,.18));
}
.bot .head {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 220px; height: 160px;
  background: var(--cmp-card);
  border-radius: 60px / 52px;
  border: 1px solid var(--cmp-card-edge);
  box-shadow:
    inset 0 -8px 18px rgba(58,56,51,.06),
    inset 0 4px 0 rgba(255,255,255,.6);
  display: grid; place-items: center;
}
.bot .face {
  width: 168px; height: 110px;
  background: #0E0D0B;
  border-radius: 38px / 34px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.bot .eye {
  width: 24px; height: 40px;
  border-radius: 13px;
  background: #FBFAF6;
  box-shadow: 0 0 14px rgba(255,255,255,.55);
  animation: cmp-blink 5.2s infinite;
}
.bot .eye:nth-child(2) { animation-delay: .04s; }
.bot .body {
  position: absolute;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  width: 270px; height: 240px;
  background: radial-gradient(120% 80% at 50% 0%, #F5F1EA, var(--cmp-fog) 70%);
  border-radius: 80px / 70px;
  border: 1px solid var(--cmp-card-edge);
  box-shadow:
    inset 0 -16px 32px rgba(58,56,51,.08),
    inset 0 6px 0 rgba(255,255,255,.5);
}
.bot .body::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.21  0 0 0 0 0.18  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .9; mix-blend-mode: multiply;
}
.bot .wheel {
  position: absolute; bottom: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at 35% 35%, #F2EEE6, #C8C2B5 75%, #A8A294);
  border-radius: 50%;
  border: 1px solid var(--cmp-card-edge);
  box-shadow:
    inset 0 -6px 14px rgba(58,56,51,.16),
    0 8px 14px -8px rgba(58,56,51,.3);
}
.bot .wheel.l { left: 16px; }
.bot .wheel.r { right: 16px; }
.bot .wheel::after {
  content: ""; position: absolute; inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #E4DED1, #C0BAAC);
  box-shadow: inset 0 2px 4px rgba(58,56,51,.18);
}
.bot .ring {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 220px; height: 12px;
  border-radius: 999px;
  background: var(--cmp-sig-idle);
  box-shadow:
    0 0 26px 4px color-mix(in oklab, var(--cmp-sig-idle), transparent 40%),
    inset 0 0 0 1px rgba(255,255,255,.5);
  transition: background .4s, box-shadow .4s;
  animation: cmp-ring-breathe 3.6s ease-in-out infinite;
}
/* Ring-specific keyframes preserve translateX(-50%) so the ring stays centered
   under the body — generic cmp-swell would overwrite the transform and shift
   the ring to the right of the body. */
@keyframes cmp-ring-breathe {
  0%, 100% { transform: translateX(-50%); opacity: .55; }
  50%      { transform: translateX(-50%); opacity: 1; }
}
@keyframes cmp-ring-swell {
  0%, 100% { transform: translateX(-50%) scaleX(1)   scaleY(1);   }
  50%      { transform: translateX(-50%) scaleX(1.08) scaleY(1.3); }
}

/* ───────── PRINCIPLES ───────── */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cmp-s-5);
}
.principle {
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-lg);
  padding: var(--cmp-s-6);
  display: flex; flex-direction: column; gap: var(--cmp-s-4);
  min-height: 240px;
}
.principle .glyph {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--cmp-paper);
  border: 1px solid var(--cmp-card-edge);
  display: grid; place-items: center;
  font-family: var(--cmp-mono);
  font-size: 16px;
  color: var(--cmp-ink);
}
.principle h4 {
  margin: 0;
  font-size: 22px; font-weight: 500;
  letter-spacing: -.01em;
}
.principle p {
  margin: 0;
  color: var(--cmp-stone-dim);
  font-size: 14px; line-height: 1.55;
}
.principle .num {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone);
  margin-top: auto;
}

/* ───────── STATUS DEMO ───────── */
.status-stage {
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-2xl);
  padding: var(--cmp-s-9);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--cmp-s-9);
  align-items: center;
}
.status-stage .bot-wrap {
  display: grid; place-items: center;
  padding: var(--cmp-s-6);
  border-right: 1px solid var(--cmp-card-edge);
}
.status-controls { display: flex; flex-direction: column; gap: var(--cmp-s-5); }
.status-controls h3 {
  margin: 0;
  font-size: 28px; font-weight: 500;
  letter-spacing: -.02em;
}
.status-controls .desc {
  color: var(--cmp-stone-dim);
  font-size: 14px; line-height: 1.55;
  margin: 0;
}
.state-list { display: flex; flex-direction: column; gap: 10px; }
.state-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--cmp-s-4);
  align-items: center;
  padding: 12px 16px;
  background: var(--cmp-paper);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.state-row:hover { border-color: var(--cmp-stone); }
.state-row.active { background: var(--cmp-card); border-color: var(--cmp-ink); }
.state-row .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.state-row .lbl b { font-size: 15px; font-weight: 500; }
.state-row .lbl span {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
}
.state-row .code {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
}

/* ───────── USE CASES ───────── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cmp-s-5);
}
.use {
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-xl);
  padding: var(--cmp-s-6);
  display: flex; flex-direction: column;
  gap: var(--cmp-s-4);
}
.use .head-row {
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(160deg, #FAF7F1, var(--cmp-fog));
  border: 1px solid var(--cmp-card-edge);
  display: grid; place-items: center;
  position: relative;
}
.avatar .eyes { display: flex; gap: 3px; }
.avatar .eyes::before, .avatar .eyes::after {
  content: ""; width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--cmp-ink);
}
.avatar .led {
  position: absolute; left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  border-radius: 2px;
  background: var(--cmp-sig-listen);
  box-shadow: 0 0 6px var(--cmp-sig-listen);
}
.use .who b { font-size: 14px; font-weight: 500; }
.use .who span {
  display: block;
  font-family: var(--cmp-mono);
  font-size: 11px; color: var(--cmp-stone-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.transcript { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  background: var(--cmp-paper);
  border: 1px solid var(--cmp-card-edge);
  padding: 14px 16px;
  border-radius: 14px 14px 14px 4px;
  font-size: 14px;
  color: var(--cmp-ink);
  line-height: 1.5;
}
.bubble.user {
  background: var(--cmp-ink);
  color: var(--cmp-paper);
  border-color: var(--cmp-ink);
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  max-width: 90%;
}
.use .cap-line {
  font-family: var(--cmp-mono);
  font-size: 11px; color: var(--cmp-stone-dim);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: auto;
  display: flex; justify-content: space-between;
}

/* ───────── INSIDE ───────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cmp-s-5);
}
.spec {
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-lg);
  padding: var(--cmp-s-6);
  display: flex; flex-direction: column; gap: var(--cmp-s-3);
  min-height: 180px;
}
.spec .num {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.spec b {
  font-size: 18px; font-weight: 500;
  letter-spacing: -.01em;
}
.spec p {
  margin: 0;
  color: var(--cmp-stone-dim);
  font-size: 13px; line-height: 1.55;
}
.spec .meta {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
  margin-top: auto;
  padding-top: var(--cmp-s-3);
  border-top: 1px dashed var(--cmp-card-edge);
}

/* ───────── WAITLIST ───────── */
.waitlist {
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  border-radius: var(--cmp-r-2xl);
  padding: var(--cmp-s-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cmp-s-9);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.waitlist::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 110%, rgba(181,174,162,.18), transparent 60%);
  pointer-events: none;
}
.waitlist h2 {
  margin: 8px 0 12px;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}
.waitlist p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cmp-ink-soft);
  margin: 0;
  max-width: 460px;
}
.waitlist form {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  z-index: 1;
}
.input {
  font-family: var(--cmp-sans);
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--cmp-card-edge);
  background: var(--cmp-paper);
  border-radius: var(--cmp-r-md);
  font-size: 15px;
  color: var(--cmp-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  border-color: var(--cmp-ink);
  box-shadow: 0 0 0 4px rgba(58,56,51,.06);
}
.input::placeholder { color: var(--cmp-stone); }
.form-row { display: flex; gap: 8px; }
.form-row .input { flex: 1; }
.consent {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
  text-transform: uppercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 8px;
}
.consent::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cmp-sig-listen);
  box-shadow: 0 0 6px var(--cmp-sig-listen);
}
.ack {
  background: var(--cmp-ink); color: var(--cmp-paper);
  padding: 16px 20px; border-radius: var(--cmp-r-lg);
  font-size: 15px; line-height: 1.5;
  display: none;
}
.ack.show { display: block; }
.ack b { font-weight: 500; }

/* ───────── FOOTER ───────── */
footer {
  border-top: 1px solid var(--cmp-card-edge);
  padding: var(--cmp-s-7) 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-stone-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ───────── FLOATING MASCOT (guided tour) ───────── */
.mascot {
  position: fixed;
  right: var(--cmp-s-6);
  bottom: var(--cmp-s-6);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none; /* speech bubble dismissable; bot itself uses auto below */
}
.mascot-bubble {
  background: var(--cmp-ink);
  color: var(--cmp-paper);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 240px;
  box-shadow: var(--cmp-shadow-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--cmp-ease-glide), transform .35s var(--cmp-ease-glide);
  pointer-events: auto;
  position: relative;
}
.mascot-bubble.show { opacity: 1; transform: translateY(0); }
.mascot-bubble b {
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-family: var(--cmp-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cmp-stone);
}
.mascot-bot {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cmp-card);
  border: 1px solid var(--cmp-card-edge);
  box-shadow: var(--cmp-shadow-2);
  pointer-events: auto;
  cursor: pointer;
  transition: transform .15s var(--cmp-ease-glide);
}
.mascot-bot:hover { transform: translateY(-2px); }
.mascot-bot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mascot-led {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  width: 56px; height: 5px;
  border-radius: 999px;
  background: var(--cmp-sig-idle);
  box-shadow: 0 0 12px color-mix(in oklab, var(--cmp-sig-idle), transparent 50%);
  transition: background .4s, box-shadow .4s;
  animation: cmp-mascot-breathe 3.6s ease-in-out infinite;
}
@keyframes cmp-mascot-breathe {
  0%, 100% { opacity: .65; }
  50%      { opacity: 1; }
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: var(--cmp-s-7); }
  .hero h1 { font-size: 72px; }
  .principles, .use-grid, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .status-stage, .waitlist { grid-template-columns: 1fr; gap: var(--cmp-s-7); }
  .status-stage .bot-wrap { border-right: 0; border-bottom: 1px solid var(--cmp-card-edge); padding-bottom: var(--cmp-s-7); }
  .section-head h2 { font-size: 40px; }
  .waitlist h2 { font-size: 36px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--cmp-s-5); }
  .hero h1 { font-size: 56px; }
  .hero .stats { grid-template-columns: 1fr; gap: var(--cmp-s-4); }
  .principles, .use-grid, .spec-grid { grid-template-columns: 1fr; }
  nav.top .links a:not(.btn) { display: none; }
  .mascot { right: var(--cmp-s-4); bottom: var(--cmp-s-4); }
  .mascot-bubble { display: none; }
  .mascot-bot { width: 72px; height: 72px; border-radius: 18px; }
}
