*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--neel); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--neel); outline-offset: 3px; border-radius: 6px; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Logo lockup: hexagon mark + wordmark + LABS tag (inline SVG, colours from tokens) */
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.hx { height: 30px; width: 30px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--neel) 55%, transparent)); }
.hx path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hx-o { stroke: var(--neel); stroke-width: 6; }
.hx-d { stroke: var(--haldi); stroke-width: 16; }
.rx { height: 28px; width: auto; }
.rx g { fill: none; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.rx-l { stroke: var(--ink); }
.rx-v { stroke: var(--neel); }
.labs { padding: 5px 0 5px 10px; border-left: 1px solid var(--line); color: var(--neel); font: 600 .7rem/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.top a.brand, .foot a.brand { display: inline-flex; color: inherit; text-decoration: none; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--neel); color: var(--on-neel);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn { box-shadow: 0 0 28px color-mix(in srgb, var(--neel) 30%, transparent); }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 440px) { .top .labs { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 72% 45%, #000, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -10%; top: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--haldi) 22%, transparent), transparent 65%); pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } .hero { padding: 88px 0 104px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: color-mix(in srgb, var(--neel) 6%, transparent); color: var(--neel);
  font: 600 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neel); box-shadow: 0 0 10px var(--neel); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 750;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--neel), var(--haldi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status { margin-top: 36px; color: var(--muted); font: 500 .8rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status b { color: var(--ok); font-weight: 600; }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: 1.2rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__hi { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* Conversation illustration */
.conv {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 20px; max-width: 460px; margin-inline: auto; width: 100%;
}
.conv__bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; margin-left: auto; }
.wave i { width: 3px; border-radius: 3px; background: var(--neel); height: 6px; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; }
.wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
.wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--haldi-logo); }

.turn { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.turn:first-of-type { border-top: 0; }
.say { justify-self: start; max-width: 92%; padding: 10px 16px; border-radius: 18px 18px 18px 6px; background: var(--paper-2); font-size: 1.1rem; font-weight: 600; }
.say small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.did { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: var(--neel-soft); color: var(--neel); font-size: .95rem; font-weight: 600; }
.did svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero art stack, boot terminal, redactions, perks */
.hero__art { display: grid; gap: 8px; justify-items: center; }
.hero__art .hexa { width: min(340px, 74%); }
.term { width: min(440px, 100%); border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--paper-2) 85%, transparent); overflow: hidden; font: 500 .84rem/1.9 var(--mono); }
.term__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term__body { padding: 14px 18px; min-height: 12.4em; color: var(--neel); }
.term__line { margin: 0; white-space: pre; overflow: hidden; }
.term__cur { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.2em; background: var(--neel); animation: blink 1s steps(2) infinite; }
.hexa__orbit { transform-box: view-box; transform-origin: 50% 50%; animation: spin 16s linear infinite; }
.hexa__orbit circle { fill: var(--haldi); filter: drop-shadow(0 0 6px var(--haldi)); }
.idx { display: block; color: var(--neel); font: 600 .75rem/1 var(--mono); letter-spacing: .2em; }
.card { background: linear-gradient(160deg, var(--card), var(--paper-2)); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--neel); transform: translateY(-3px); }
.redact { display: inline-block; width: 4.2em; height: .9em; margin: 0 .1em; vertical-align: -.1em; border-radius: 3px; background: repeating-linear-gradient(135deg, #2A3558 0 6px, #1F2847 6px 12px); box-shadow: inset 0 0 0 1px #3A4A7A; }
.redact--s { width: 3em; }
@media (min-width: 1000px) { #decoded .cards { grid-template-columns: repeat(3, 1fr); } }
.perks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 640px; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks li { padding: 14px 16px; border: 1px solid #1B2F55; border-radius: var(--radius-sm); background: rgba(34, 211, 238, .04); }
.perks strong { display: block; color: var(--cta-fg); font-size: 1rem; }
.perks span { display: block; margin-top: 2px; color: var(--cta-muted); font-size: .9rem; }

/* Teaser hexagon */
.hexa { width: min(420px, 86%); margin-inline: auto; aspect-ratio: 1; filter: drop-shadow(0 0 36px color-mix(in srgb, var(--neel) 28%, transparent)); }
.hexa svg { width: 100%; height: 100%; }
.hexa polygon { fill: none; stroke-linejoin: round; }
.hexa__outer { stroke-width: 2.5; }
.hexa__mid { stroke: var(--neel); stroke-width: 1.2; stroke-dasharray: 3 9; opacity: .8; }
.hexa__in { stroke: var(--haldi); stroke-width: 1.6; }
.hexa__spin, .hexa__spin2 { transform-box: view-box; transform-origin: 50% 50%; }
.hexa__spin { animation: spin 40s linear infinite; }
.hexa__spin2 { animation: spin 26s linear infinite reverse; }
.hexa__core { fill: var(--neel); filter: drop-shadow(0 0 10px var(--neel)); animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .7; } }

.teasers { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .teasers { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.teasers li { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--card), var(--paper-2)); }
.teasers small { display: block; margin-bottom: 18px; color: var(--neel); font: 600 .75rem/1 var(--mono); letter-spacing: .2em; }
.teasers strong { display: block; font-size: 1.25rem; letter-spacing: -.015em; }
.teasers span { display: block; margin-top: 8px; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--paper-2); }
.kicker { color: var(--haldi-text); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h2 { margin-top: 10px; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 720; max-width: 20em; text-wrap: balance; }
.sub { margin-top: 16px; max-width: 38em; color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--neel-soft); color: var(--neel); }
.card .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

.steps { display: grid; gap: 24px; margin-top: 40px; counter-reset: s; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: s; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--haldi); color: var(--on-haldi); font-weight: 750;
}
.steps h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--muted); }

.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.langs li { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 1.1rem; font-weight: 600; }
.langs li.more { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.note { margin-top: 20px; color: var(--muted); font-size: .9rem; }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 1.1rem; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--neel); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Waitlist */
/* The sign-up card is dark indigo in both themes, so it uses fixed colours rather than theme tokens. */
.cta {
  --cta-bg: #0A1226; --cta-fg: #E8EEFF; --cta-muted: #9AA7C7; --cta-accent: #22D3EE;
  --cta-field: #0D1A33; --cta-line: #2A4670;
  background: linear-gradient(160deg, #0C1730, #0A1226 60%, #120F2E); color: var(--cta-fg); border: 1px solid #1B2F55;
  box-shadow: 0 0 80px color-mix(in srgb, var(--haldi) 12%, transparent);
  border-radius: 28px; padding: 48px 24px;
}
@media (min-width: 720px) { .cta { padding: 64px 56px; } }
.cta .kicker { color: var(--cta-accent); }
.cta .h2 { color: var(--cta-fg); }
.cta .sub { color: var(--cta-muted); }
.cta a { color: var(--cta-accent); }
.cta :focus-visible { outline-color: var(--cta-accent); }
.wl { --cta-fg: #E8EEFF; --cta-muted: #9AA7C7; --cta-accent: #22D3EE; --cta-field: #0D1A33; --cta-line: #2A4670; margin-top: 32px; max-width: 560px; }
.wl--hero { margin-top: 30px; }
.wl--hero .wl__consent { color: var(--muted); }
.wl__row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .wl__row { flex-direction: row; } }
.wl input[type=email] {
  flex: 1; min-height: 50px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--cta-line); background: var(--cta-field); color: var(--cta-fg);
  font: inherit; font-size: 1rem;
}
.wl input[type=email]::placeholder { color: #A9A5C8; }
.wl input[type=email]:focus-visible { border-color: var(--cta-accent); }
.cta .btn { background: var(--cta-accent); color: #04121A; }
.wl input[type=email]::placeholder { color: #6F7FA3; }
.wl__consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .9rem; color: var(--cta-muted); }
.wl__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cta-accent); }
.wl__status { min-height: 1.6em; margin-top: 14px; font-weight: 600; }
.wl__status[data-kind=ok] { color: #5BD18F; }
.wl__status[data-kind=error] { color: #FF9C93; }

/* Footer */
.foot { padding: 40px 0 56px; color: var(--muted); font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot .rx { height: 30px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* Text pages */
.doc { padding: 56px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 740; }
.doc h2 { margin-top: 40px; font-size: 1.3rem; letter-spacing: -.01em; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc ul { padding-left: 1.2em; }
.doc strong { color: var(--ink); }
.draft { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--haldi-soft); color: var(--haldi-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; height: 12px; }
  .hexa__spin, .hexa__spin2, .hexa__orbit, .hexa__core, .eyebrow::before, .term__cur { animation: none; }
  .btn { transition: none; }
}
