@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: #f5f6f8;
  background: #090a0d;
  --bg: #090a0d;
  --surface: #111318;
  --surface-2: #171a20;
  --ink: #f5f6f8;
  --muted: #9da4b0;
  --line: rgba(255,255,255,.12);
  --orange: #ff7248;
  --orange-soft: #ff9a7b;
  --violet: #8c7bff;
  --green: #55d6a7;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(100, 72, 196, .16), transparent 28rem),
    radial-gradient(circle at 18% 22%, rgba(255, 114, 72, .08), transparent 26rem),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; }
code { font-family: var(--mono); color: #c7c0ff; font-size: .92em; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(9,10,13,.82);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--orange); color: #140b08; border-radius: 50%; font-size: .85rem; font-weight: 800; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 600; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }
.site-header .nav-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); color: var(--ink); }

main, footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .number, .feature-tag, .node-label {
  margin: 0;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  color: var(--orange-soft);
}
.hero h1 {
  margin: 26px 0 30px;
  font-size: clamp(4.2rem, 8.4vw, 8.1rem);
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px #f5f6f8; }
.lede { max-width: 720px; margin: 0; color: #b9bec8; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--orange); border-color: var(--orange); color: #190d09; }
.button.secondary { background: rgba(255,255,255,.04); }
.proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; color: var(--muted); font-size: .78rem; }
.proof span { display: flex; flex-direction: column; gap: 3px; }
.proof strong { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: .85rem; }

.hero-media { margin: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media figcaption { padding: 14px 16px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.hero-system { position: relative; min-height: 540px; display: grid; place-items: center; }
.orb {
  position: relative;
  z-index: 2;
  width: min(30vw, 330px);
  min-width: 260px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #fff 0, #ddd8ff 4%, #7b68d1 14%, #322762 34%, #151827 64%, #07080b 78%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 100px rgba(121,92,239,.28), inset -28px -30px 65px rgba(0,0,0,.62);
  animation: breathe 4.5s ease-in-out infinite;
}
.orb::before { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.orb span { font-family: var(--mono); text-align: center; letter-spacing: .24em; font-size: .66rem; line-height: 1.7; color: rgba(255,255,255,.76); }
.signal { position: absolute; width: 430px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.signal-b { width: 520px; border-color: rgba(255,114,72,.1); }
.state { position: absolute; z-index: 3; min-width: 138px; padding: 11px 13px; border: 1px solid var(--line); background: rgba(17,19,24,.88); font-family: var(--mono); font-size: .67rem; color: #c9ced7; }
.state i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.state-wake { top: 9%; left: 3%; }
.state-voice { top: 19%; right: -2%; }
.state-vision { bottom: 19%; left: 1%; }
.state-tools { right: 3%; bottom: 7%; }

.mode-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mode-strip article { padding: 48px 3.5vw 52px 0; }
.mode-strip article + article { padding-left: 3.5vw; border-left: 1px solid var(--line); }
.mode-strip h2 { margin: 22px 0 12px; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.mode-strip p:last-child { margin: 0; max-width: 560px; color: var(--muted); line-height: 1.65; }

.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 7vw; align-items: start; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 1; margin: 24px 0 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.section-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 550px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.section-heading.compact { display: block; }
.section-heading.compact h2 { max-width: 800px; }

.flow { margin-top: 78px; display: grid; grid-template-columns: 1fr .55fr 1fr .55fr 1fr; align-items: stretch; }
.flow-node { min-height: 190px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.flow-node strong { margin: auto 0 8px; font-size: 1.35rem; letter-spacing: -.03em; }
.flow-node small { color: var(--muted); line-height: 1.5; }
.accent-node { background: #19162a; border-color: rgba(140,123,255,.42); }
.flow-link { position: relative; display: grid; place-items: center; color: #737a86; }
.flow-link::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.flow-link::after { content: "→"; position: absolute; right: 6px; color: var(--orange); }
.flow-link span { position: relative; z-index: 1; padding: 7px; background: var(--bg); writing-mode: vertical-rl; font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; }

.matrix-wrap { margin-top: 70px; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.matrix-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; }
.matrix-wrap th, .matrix-wrap td { padding: 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix-wrap thead th { color: var(--orange-soft); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.matrix-wrap tbody th { width: 31%; color: var(--ink); font-size: .9rem; }
.matrix-wrap tbody td { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.matrix-wrap tbody tr:last-child > * { border-bottom: 0; }
.architecture-figure { margin: 70px 0 0; }
.diagram-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.diagram-scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.architecture-figure .diagram-scroll { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.architecture-figure img { display: block; width: 100%; min-width: 900px; height: auto; }
.architecture-figure figcaption { max-width: 900px; margin-top: 18px; color: var(--muted); line-height: 1.65; font-size: .88rem; }
.diagram-hint { display: none; margin: 0 0 10px; color: var(--orange-soft); font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; }
.diagram-summary { max-width: 960px; margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.diagram-summary strong { color: var(--ink); }
.visuals .hero-actions { margin-top: 32px; }
.visual-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.visual-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.visual-card-wide { grid-column: 1 / -1; }
.visual-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #0d0f13; }
.visual-card-wide img { aspect-ratio: 5 / 3; }
.visual-card-wide .diagram-scroll img { width: 100%; min-width: 900px; height: auto; aspect-ratio: auto; }
.visual-card figcaption { padding: 18px 20px 22px; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.visual-card figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); }
.visual-card .diagram-summary { padding: 0 20px 22px; margin-top: -10px; }

.capabilities { padding-bottom: 60px; }
.feature { min-height: 520px; display: grid; grid-template-columns: 80px minmax(320px,.9fr) 1.1fr; gap: 5vw; align-items: center; padding: 80px 0; border-top: 1px solid var(--line); }
.capabilities .section-heading { margin-bottom: 80px; }
.feature-index { align-self: start; padding-top: 5px; font-family: var(--mono); font-size: .72rem; color: var(--orange-soft); }
.feature-copy h3 { margin: 20px 0 24px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.feature-copy > p:last-child { max-width: 570px; color: var(--muted); line-height: 1.75; font-size: 1.03rem; }
.wave-panel, .camera-panel { position: relative; min-height: 330px; display: grid; place-items: center; border: 1px solid var(--line); background: #0d0f13; overflow: hidden; }
.wave { position: absolute; left: 8%; right: 8%; display: flex; align-items: center; gap: 7px; height: 110px; }
.wave span { flex: 1; height: 40%; background: var(--violet); opacity: .75; animation: pulse 1.1s ease-in-out infinite alternate; }
.wave span:nth-child(2n) { height: 75%; animation-delay: -.4s; }
.wave span:nth-child(3n) { height: 25%; animation-delay: -.7s; }
.wave.assistant { top: 24%; }
.wave.human { top: 56%; left: 48%; }
.wave.human span { background: var(--orange); }
.cut-line { position: absolute; top: 12%; bottom: 12%; left: 47%; width: 1px; background: var(--orange); box-shadow: 0 0 18px rgba(255,114,72,.65); }
.cut-line b { position: absolute; top: 6px; left: 9px; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; color: var(--orange-soft); }
.camera-panel { background: radial-gradient(circle, rgba(140,123,255,.13), transparent 55%), #0d0f13; }
.viewfinder { position: relative; width: min(70%, 340px); aspect-ratio: 16/9; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); }
.viewfinder i { position: absolute; width: 28px; height: 28px; border-color: var(--orange); }
.viewfinder i:nth-child(1) { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.viewfinder i:nth-child(2) { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.viewfinder i:nth-child(3) { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.viewfinder i:nth-child(4) { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.viewfinder span { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; }
.camera-panel p { position: absolute; bottom: 22px; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); }
.tool-list { display: flex; flex-wrap: wrap; align-content: center; gap: 10px; min-height: 300px; padding: 45px; border: 1px solid var(--line); background: var(--surface); }
.tool-list span { padding: 14px 17px; border: 1px solid var(--line); background: #0c0e12; font-family: var(--mono); font-size: .72rem; }

.privacy { display: grid; grid-template-columns: .65fr 1.35fr; column-gap: 8vw; }
.privacy .section-heading { grid-column: 1; }
.state-table { grid-column: 2; border-top: 1px solid var(--line); }
.state-row { min-height: 70px; display: grid; grid-template-columns: 1.1fr repeat(4,1fr); align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.state-row strong { color: var(--ink); }
.header-row { min-height: 50px; font-family: var(--mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.state-row .on { color: var(--green); }
.state-row .off { color: var(--orange-soft); }
.privacy-note { grid-column: 2; max-width: 750px; margin: 28px 0 0; color: var(--muted); line-height: 1.65; font-size: .9rem; }

.install { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; }
.install h2 { margin: 24px 0; font-size: clamp(3.2rem, 6vw, 5.7rem); line-height: .96; letter-spacing: -.065em; }
.install-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.install-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; }
.install-links a { text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.35); }
.terminal { margin: 0; padding: 34px; border: 1px solid var(--line); background: #050608; color: #d8dce4; font-family: var(--mono); font-size: clamp(.68rem, 1.1vw, .84rem); line-height: 2; overflow-x: auto; }
.terminal > span { color: var(--orange); }
.terminal .terminal-comment { color: #68707d; }
.terminal .terminal-accent { color: var(--green); }

footer { min-height: 150px; display: flex; align-items: center; gap: 30px; }
footer div { display: flex; flex-direction: column; gap: 6px; }
footer div span { color: var(--muted); font-size: .8rem; }
footer nav { margin-left: auto; display: flex; gap: 24px; }
footer a { color: var(--muted); text-decoration: none; font-size: .82rem; }
footer a:hover, footer a:focus-visible { color: var(--ink); }

@keyframes breathe { 50% { transform: scale(1.025); filter: brightness(1.08); } }
@keyframes pulse { to { transform: scaleY(.35); opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .mode-strip { grid-template-columns: 1fr; }
  .mode-strip article { padding: 38px 0; }
  .mode-strip article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-system { min-height: 500px; }
  .orb { width: 300px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { grid-column: 1; grid-row: auto; margin-top: 34px; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-link { min-height: 45px; }
  .flow-link::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .flow-link::after { content: "↓"; right: auto; bottom: -2px; }
  .flow-link span { writing-mode: horizontal-tb; }
  .feature { grid-template-columns: 44px 1fr; }
  .feature > :last-child { grid-column: 2; width: 100%; }
  .privacy, .install { grid-template-columns: 1fr; }
  .state-table, .privacy-note { grid-column: 1; }
  .state-table { margin-top: 55px; }
  .terminal { margin-top: 25px; }
}

@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 26px, 1240px); }
  .site-header { height: 66px; }
  .brand span:last-child { font-size: .82rem; }
  .nav-cta { padding: 0 12px !important; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 5.7rem); }
  .hero-system { min-height: 420px; }
  .signal { width: 330px; }
  .signal-b { width: 390px; }
  .orb { min-width: 220px; width: 220px; }
  .state { min-width: 120px; font-size: .58rem; }
  .state-wake, .state-vision { left: 0; }
  .state-voice, .state-tools { right: 0; }
  .mode-strip { grid-template-columns: 1fr; }
  .mode-strip article { padding: 38px 0; }
  .mode-strip article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 85px 0; }
  .matrix-wrap { margin-top: 45px; }
  .matrix-wrap th, .matrix-wrap td { padding: 15px; }
  .architecture-figure { margin-top: 45px; }
  .diagram-hint { display: block; }
  .diagram-scroll { scrollbar-color: var(--orange) #20242b; scrollbar-width: thin; }
  .diagram-scroll::-webkit-scrollbar { height: 10px; }
  .diagram-scroll::-webkit-scrollbar-track { background: #20242b; }
  .diagram-scroll::-webkit-scrollbar-thumb { border: 2px solid #20242b; border-radius: 999px; background: var(--orange); }
  .visual-grid { margin-top: 45px; grid-template-columns: 1fr; }
  .visual-card-wide { grid-column: 1; }
  .feature { grid-template-columns: 1fr; gap: 25px; padding: 62px 0; }
  .feature-index, .feature > :last-child { grid-column: 1; }
  .wave-panel, .camera-panel { min-height: 280px; }
  .tool-list { min-height: 220px; padding: 25px; }
  .state-row { grid-template-columns: 1.1fr repeat(4,.9fr); font-size: .62rem; gap: 5px; }
  .header-row { font-size: .54rem; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  footer nav { margin-left: 0; flex-wrap: wrap; }
}
