/* Night-sky single theme: indigo ground, aurora cyan/violet, Super Hi-Fi orange only as the on-air signal. */
:root {
  color-scheme: dark;
  --night: #0E1030;
  --night-2: #151845;
  --panel: rgba(30, 34, 88, .55);
  --line: rgba(160, 170, 255, .16);
  --star: #EEF0FF;
  --muted: #A3A9DA;
  --cyan: #5CE1E6;
  --violet: #8B7CFF;
  --lilac: #C69BFF;
  --onair: #FF8A3D;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: min(1200px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 70% 0%, #1D1F5C 0%, var(--night) 55%) fixed, var(--night);
  color: var(--star);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; filter: blur(80px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: #2E3BB0; animation: drift1 26s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 36vw; height: 36vw; right: -8vw; top: 10vh; background: #5B3FC4; animation: drift2 31s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; top: 60vh; background: #1C6E8C; opacity: .6; animation: drift1 37s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 18vh) scale(.9); } }

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

/* NAV */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(24px, (100% - 1200px) / 2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(14,16,48,.85), rgba(14,16,48,.4));
  border-bottom: 1px solid var(--line);
}
.brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.6rem/1 var(--display); letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; }
.brand:hover .brand-mark { animation: spin 1.2s cubic-bezier(.6,0,.2,1); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--star); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 600 1rem/1 var(--body); color: #0E1030;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 60%, var(--lilac));
  background-size: 180% 100%; background-position: 0 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 30px -10px rgba(139,124,255,.8);
  transition: background-position .5s, transform .2s, box-shadow .3s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 14px 40px -10px rgba(92,225,230,.8); }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--star); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(92,225,230,.6) inset; }
.btn-big { padding: 18px 34px; font-size: 1.1rem; }

/* HERO */
.hero {
  width: var(--wrap); margin: 0 auto; min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px;
  padding: 48px 0 64px;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.onair-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 0 0 rgba(255,138,61,.7); animation: onair 2s infinite; flex: none; }
@keyframes onair { 70% { box-shadow: 0 0 0 10px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
.hero-title {
  margin: 0; font: 800 clamp(3.4rem, 7.6vw, 7rem)/.92 var(--display);
  letter-spacing: -.045em; font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); filter: blur(10px); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
.hero-title .line:nth-child(3) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.shimmer {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 30%, #fff 45%, var(--lilac) 60%, var(--cyan) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s .3s cubic-bezier(.2,.8,.2,1) forwards, shimmer 7s 1.3s linear infinite !important;
  padding-bottom: .08em;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.lede { max-width: 33em; margin: 28px 0 0; color: var(--muted); font-size: 1.15rem; opacity: 0; animation: rise .9s .6s forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; opacity: 0; animation: rise .9s .8s forwards; }

.hero-visual { position: relative; opacity: 0; animation: fadeIn 1.6s .2s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
#clock { width: 100%; max-width: 620px; display: block; margin: 0 auto; overflow: visible; }
.tick { stroke: rgba(160,170,255,.28); stroke-width: 1.2; }
.tick.major { stroke: rgba(220,225,255,.6); stroke-width: 2; }
.hour-label { fill: var(--muted); font: 500 13px var(--mono); text-anchor: middle; dominant-baseline: middle; }
.ring-track { fill: none; stroke: rgba(160,170,255,.08); stroke-width: 26; }
.spot { fill: none; stroke-width: 26; stroke-linecap: butt; transition: stroke .4s; }
.spot.music { stroke: rgba(160,170,255,.12); }
.spot.conflict { stroke: var(--onair); filter: drop-shadow(0 0 10px rgba(255,138,61,.8)); }
.spot.placed { filter: drop-shadow(0 0 12px rgba(92,225,230,.9)); }
.sweep-hand { stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 6px var(--cyan)); }
.orbit { fill: none; stroke: rgba(160,170,255,.14); }
.orbit-dash { stroke-dasharray: 2 8; }
.model-dot { fill: var(--lilac); filter: drop-shadow(0 0 6px var(--lilac)); }
.model-dot.cyan { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.model-dot.dim { opacity: .5; }
.orbit-spin { transform-origin: 0 0; animation: orbit 18s linear infinite; }
.orbit-spin.s2 { animation-duration: 11s; animation-direction: reverse; }
.orbit-spin.s3 { animation-duration: 27s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.core-glow { animation: breathe 4s ease-in-out infinite; transform-origin: 0 0; }
.core-star { animation: twinkle 4s ease-in-out infinite; transform-origin: 0 0; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes twinkle { 50% { transform: scale(.86) rotate(45deg); } }
.callout-line { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 3 4; }
.callout-bg { fill: rgba(14,16,48,.92); stroke: rgba(92,225,230,.6); }
.callout-text { fill: var(--star); font: 500 13px var(--body); }
#callout { transition: opacity .4s; }

.log {
  position: absolute; right: -8px; bottom: -18px; width: min(340px, 70%);
  background: rgba(16, 19, 58, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.log-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.log-status { display: inline-flex; align-items: center; gap: 8px; color: var(--star); }
#log-lines { list-style: none; margin: 0; padding: 0; height: 132px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
#log-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 4px 0; font-size: .83rem; border-top: 1px solid rgba(160,170,255,.08); animation: logIn .5s ease-out; }
#log-lines time { font-family: var(--mono); color: var(--muted); font-size: .78rem; padding-top: 1px; }
#log-lines .k { color: var(--cyan); }
#log-lines .w { color: var(--onair); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

/* STATEMENT */
.statement { width: min(980px, 100% - 48px); margin: 40px auto 140px; }
.statement p { margin: 0; font: 600 clamp(1.7rem, 3.4vw, 2.8rem)/1.2 var(--display); letter-spacing: -.025em; color: rgba(238,240,255,.55); }
.statement strong { color: var(--star); font-weight: 800; background: linear-gradient(90deg, var(--cyan), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* SECTIONS */
.section-head { width: var(--wrap); margin: 0 auto 48px; max-width: 760px; text-align: center; }
.section-head h2, .revenue h2, .trust h2, .cta h2 { margin: 0 0 16px; font: 700 clamp(2.1rem, 4.4vw, 3.6rem)/1.02 var(--display); letter-spacing: -.035em; }
.section-head p { margin: 0 auto; color: var(--muted); font-size: 1.12rem; max-width: 40em; }

.how { padding-bottom: 120px; }
.flow { width: var(--wrap); margin: 0 auto; padding: 24px; border-radius: 28px; background: linear-gradient(180deg, rgba(30,34,88,.5), rgba(21,24,69,.2)); border: 1px solid var(--line); }
#flow { width: 100%; display: block; overflow: visible; }
.wire { fill: none; stroke: url(#g-wire); stroke-width: 1.6; }
.node rect { fill: rgba(14,16,48,.9); stroke: var(--line); }
.node text { fill: var(--star); font: 500 15px var(--body); }
.node.in rect { stroke: rgba(92,225,230,.35); }
.node.out rect { stroke: rgba(198,155,255,.35); }
.node.lit rect { stroke: var(--cyan); filter: drop-shadow(0 0 10px rgba(92,225,230,.7)); }
.node.out.lit rect { stroke: var(--lilac); filter: drop-shadow(0 0 10px rgba(198,155,255,.8)); }
.node rect { transition: stroke .3s, filter .3s; }
.hub-ring { fill: rgba(14,16,48,.8); stroke: rgba(139,124,255,.6); stroke-width: 1.5; }
.hub-ring.dashed { fill: none; stroke-dasharray: 4 10; stroke: rgba(92,225,230,.5); transform-origin: 550px 260px; animation: orbit 30s linear infinite; }
.hub-halo { transform-origin: 550px 260px; animation: breathe 5s ease-in-out infinite; }
.hub-star { filter: drop-shadow(0 0 14px rgba(198,155,255,.9)); }
.hub-label { fill: var(--star); font: 700 26px var(--display); letter-spacing: -.02em; }
.hub-sub { fill: var(--muted); font: 400 14px var(--body); }
.particle { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); }
.particle.out { fill: var(--lilac); filter: drop-shadow(0 0 5px var(--lilac)); }

.pillars { width: var(--wrap); margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar svg { width: 44px; height: 44px; margin-bottom: 14px; }
.ic { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.accent { stroke: var(--onair); }
.pillar h3, .outcome h3 { margin: 0 0 10px; font: 700 1.45rem/1.15 var(--display); letter-spacing: -.02em; }
.pillar p, .outcome p { margin: 0; color: var(--muted); }

/* MODULES */
.modules { padding-bottom: 140px; }
.console { width: min(960px, 100% - 48px); margin: 0 auto; border-radius: 24px; border: 1px solid var(--line); background: rgba(16,19,58,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(91,63,196,.6); }
.console-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.console-tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font: 500 .95rem var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.console-tabs button:hover { color: var(--star); }
.console-tabs button[aria-selected="true"] { color: #0E1030; background: linear-gradient(100deg, var(--cyan), var(--violet)); }
.console-body { padding: 30px 32px 34px; min-height: 340px; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.kaira-who { color: var(--cyan); }
.kaira-who svg { width: 18px; height: 18px; }
.console-ask p { margin: 0 0 26px; font: 600 1.35rem/1.35 var(--display); letter-spacing: -.01em; min-height: 1.35em; }
.console-answer p { margin: 0 0 12px; min-height: 1.6em; }
#answer-list { list-style: none; margin: 0; padding: 0; }
#answer-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .4s; }
#answer-list li.in { opacity: 1; transform: none; }
#answer-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* OUTCOMES */
.outcomes { width: var(--wrap); margin: 0 auto 150px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.outcome { padding: 36px 32px 0 0; }
.outcome + .outcome { padding-left: 32px; border-left: 1px solid var(--line); }
.outcome h3 { font-size: 1.7rem; }

/* REVENUE */
.revenue { width: var(--wrap); margin: 0 auto 150px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.revenue-copy > p { color: var(--muted); font-size: 1.12rem; margin: 0 0 30px; }
.bubble { max-width: 30em; padding: 14px 18px; border-radius: 18px; background: rgba(30,34,88,.6); border: 1px solid var(--line); margin-bottom: 12px; }
.bubble .who { display: flex; }
.bubble.kaira { border-color: rgba(92,225,230,.4); background: rgba(22,46,80,.5); min-height: 108px; }
.bubble.kaira .who { color: var(--cyan); }
.heat { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(16,19,58,.6); }
.heat-grid { display: grid; grid-template-columns: 74px repeat(7, 1fr); gap: 6px; position: relative; }
.heat-grid .lbl { font-size: .78rem; color: var(--muted); display: flex; align-items: center; }
.heat-grid .dlbl { justify-content: center; font-size: .78rem; color: var(--muted); text-align: center; }
.cell { aspect-ratio: 1.25; border-radius: 8px; background: rgba(139,124,255,var(--a)); transition: background .6s, box-shadow .4s, transform .4s; position: relative; }
.cell.hot { box-shadow: 0 0 0 2px var(--onair), 0 0 18px rgba(255,138,61,.6); transform: scale(1.05); z-index: 1; }
.heat-scan { position: absolute; top: 0; bottom: 0; width: 60px; left: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(92,225,230,.35), transparent); mix-blend-mode: screen; opacity: 0; }
.heat-legend { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.heat-legend i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(139,124,255,.08), rgba(139,124,255,1)); }

/* TRUST */
.trust { width: min(1000px, 100% - 48px); margin: 0 auto 150px; display: grid; grid-template-columns: 180px 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(30,34,88,.6), rgba(21,24,69,.15)); }
.trust h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.trust p { margin: 0; color: var(--muted); }
.trust-mark svg { width: 100%; }
.trust-ring { fill: none; stroke: rgba(92,225,230,.35); stroke-dasharray: 3 7; transform-origin: 60px 60px; animation: orbit 24s linear infinite; }
.trust-ring.t2 { stroke: rgba(198,155,255,.4); animation-direction: reverse; animation-duration: 16s; }
.trust-shield { fill: rgba(139,124,255,.18); stroke: var(--lilac); stroke-width: 2; stroke-linejoin: round; }
.trust-check { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.trust.in .trust-check { animation: draw 1s .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* CTA */
.cta { text-align: center; width: min(820px, 100% - 48px); margin: 0 auto 120px; }
.cta p { color: var(--muted); font-size: 1.12rem; margin: 0 auto 34px; max-width: 34em; }
.cta-orb { width: 120px; height: 120px; margin: 0 auto 30px; position: relative; }
.cta-orb::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(139,124,255,.5), transparent 65%); animation: breathe 4s ease-in-out infinite; }
.cta-orb svg { position: relative; width: 100%; height: 100%; animation: orbit 20s linear infinite; }

/* FOOTER */
.foot { width: var(--wrap); margin: 0 auto; padding: 40px 0 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: var(--muted); }
.foot p { margin: 0; }
.foot p a { color: var(--star); text-decoration-color: var(--onair); text-underline-offset: 4px; }
.foot .small { font-size: .85rem; }
.foot-brand { color: var(--star); font-size: 1.3rem; }
.foot-brand .brand-mark { width: 28px; height: 28px; }

/* REVEAL */
.reveal { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.pre { opacity: 0; transform: translateY(28px); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-visual { margin-top: 10px; }
  .log { position: relative; right: auto; bottom: auto; width: min(420px, 100%); margin: 8px auto 0; }
  .pillars, .outcomes { grid-template-columns: 1fr; gap: 36px; }
  .outcome, .outcome + .outcome { padding: 28px 0 0; border-left: 0; }
  .outcome + .outcome { border-top: 1px solid var(--line); }
  .revenue { grid-template-columns: 1fr; gap: 40px; }
  .trust { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; }
  .trust-mark { width: 140px; margin: 0 auto; }
  .foot { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .flow { padding: 8px; overflow-x: auto; }
  #flow { min-width: 640px; }
  .console-body { padding: 22px 20px 26px; }
  .statement { margin-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.spot.avail { stroke: rgba(92,225,230,.35); stroke-width: 22; stroke-dasharray: 2 3; fill: none; }

.cta .mail { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.cta .mail a { color: var(--star); }
