:root {
  color-scheme: light dark;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --soft: #eaf3f2;
  --ink: #101b24;
  --muted: #65727d;
  --line: #d9e1e6;
  --navy: #081a28;
  --teal: #2ed2c2;
  --blue: #4b9dff;
  --shadow: 0 24px 70px rgba(7, 28, 41, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071018;
    --panel: #0d1922;
    --soft: #10242a;
    --ink: #f1f7f8;
    --muted: #a4b3ba;
    --line: #263944;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { overflow-wrap: anywhere; }
#latest, #features, #companion { scroll-margin-top: 82px; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px max(22px, calc((100vw - 1160px) / 2));
  color: #fff;
  background: rgba(7, 18, 27, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 2px 8px 2px 2px;
  border-radius: 10px;
  font-weight: 850;
  letter-spacing: -.01em;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

nav {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
}

nav a:hover, .brand:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.brand:focus-visible,
nav a:focus-visible,
.button:focus-visible,
.site-footer a:focus-visible,
.policy a:focus-visible,
.language-picker select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.language-picker { display: inline-flex; align-items: center; min-height: 38px; }
.language-picker select {
  min-height: 34px;
  padding: 5px 28px 5px 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}
.language-picker option { color: #111820; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 88svh;
  padding: 116px 0 78px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 43%, rgba(46, 210, 194, .2), transparent 27rem),
    radial-gradient(circle at 16% 86%, rgba(75, 157, 255, .15), transparent 27rem),
    var(--navy);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 108px);
  width: min(1160px, calc(100% - 44px));
  min-height: calc(88svh - 194px);
  margin: 0 auto;
}

.hero-copy { max-width: 700px; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(70px, 12vw, 144px);
  line-height: .86;
  letter-spacing: -.06em;
}
.lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(20px, 2.5vw, 27px);
}
.platform-line {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .56);
  font-size: 14px;
  font-weight: 650;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 820;
}
.button.primary { color: #061818; background: var(--teal); border-color: var(--teal); }
.button.secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .26); }
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.icon-stage { position: relative; display: grid; place-items: center; isolation: isolate; }
.icon-glow {
  position: absolute;
  z-index: -1;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 210, 194, .28), rgba(46, 210, 194, 0) 68%);
  filter: blur(10px);
}
.hero-icon {
  display: block;
  width: min(370px, 100%);
  height: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22.37%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .48);
}
.release-chip {
  position: absolute;
  right: -4px;
  bottom: 18px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 14px;
  color: rgba(255, 255, 255, .9);
  background: rgba(5, 15, 23, .78);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 800;
}

.section,
.terminal-band,
.site-footer {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}
.section { padding: clamp(68px, 9vw, 108px) 0; }
.section-heading { max-width: 860px; margin-bottom: 34px; }
h2 { margin: 0; font-size: clamp(34px, 5.7vw, 64px); line-height: 1.03; letter-spacing: -.045em; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card {
  min-height: 238px;
  padding: 27px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(17, 39, 51, .05);
}
.accent-card { background: linear-gradient(145deg, rgba(46, 210, 194, .16), var(--panel) 58%); }
.card-number { display: block; margin-bottom: 42px; color: var(--teal); font: 800 13px/1 ui-monospace, monospace; }
.card p, .feature-card p, .terminal-copy p, .companion-section > div > p, .policy p, .policy li { color: var(--muted); }

.terminal-band {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: center;
  padding: 78px 0 96px;
}
.terminal-window {
  overflow: hidden;
  color: #e5eef2;
  background: #071019;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.terminal-bar { display: flex; gap: 8px; align-items: center; padding: 13px 16px; background: #0e1a24; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff665e; }
.terminal-bar i:nth-child(2) { background: #f7bd43; }
.terminal-bar i:nth-child(3) { background: #39c655; }
.terminal-bar span { margin-left: auto; color: #7e8c95; font: 12px ui-monospace, monospace; }
.terminal-window pre { min-height: 260px; margin: 0; padding: 24px; white-space: pre-wrap; font: 14px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt, .good { color: var(--teal); }
.path { color: var(--blue); }
.muted { color: #82919a; }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--teal); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-copy h2 { font-size: clamp(34px, 4.5vw, 54px); }
.terminal-copy p:last-child { margin: 24px 0 0; font-size: 18px; }

.soft-section { position: relative; }
.soft-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 28px -28px;
  background: var(--soft);
  border-radius: 28px;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 210px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  margin-bottom: 26px;
  padding: 6px 9px;
  color: #071c1d;
  background: var(--teal);
  border-radius: 8px;
  font: 850 12px/1 ui-monospace, monospace;
}

.companion-section { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(38px, 7vw, 88px); align-items: center; }
.companion-section h2 { max-width: 760px; }
.companion-section > div > p { max-width: 710px; font-size: 18px; }
.companion-section .button.primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.fine-print { margin-top: 14px; font-size: 13px !important; }
.companion-panel { display: grid; gap: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.companion-panel div { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.companion-panel span { display: inline-grid; place-items: center; min-width: 68px; min-height: 42px; color: var(--teal); background: var(--navy); border-radius: 9px; font: 800 15px/1 ui-monospace, monospace; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.site-footer span { margin-right: auto; }
.site-footer a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 8px; font-weight: 700; }
.site-footer a:hover { color: var(--ink); background: var(--soft); }

.policy { width: min(880px, calc(100% - 44px)); margin: 0 auto; padding: 128px 0 90px; }
.policy h1 { margin: 0; font-size: clamp(44px, 7.5vw, 82px); line-height: .98; letter-spacing: -.05em; }
.policy .updated { margin: 18px 0 42px; color: var(--muted); }
.policy section { padding: 28px 0; border-top: 1px solid var(--line); }
.policy h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.025em; }
.policy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero-layout, .terminal-band, .companion-section { grid-template-columns: 1fr; }
  .icon-stage { width: min(430px, 88%); margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { position: relative; align-items: flex-start; flex-direction: column; gap: 8px; }
  nav { width: 100%; flex-wrap: wrap; }
  .hero { padding-top: 70px; }
  .hero-layout { min-height: auto; }
  .latest-grid, .feature-grid { grid-template-columns: 1fr; }
  .soft-section::before { inset: 24px -10px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .button:hover { transform: none; }
}
