:root {
  color-scheme: dark;
  --bg: #03101f;
  --bg-deep: #010914;
  --panel: #071a2d;
  --panel-2: #0a2137;
  --line: rgba(95, 205, 255, 0.19);
  --line-strong: rgba(95, 205, 255, 0.42);
  --cyan: #28d7ff;
  --blue: #0d8fff;
  --light: #eff9ff;
  --muted: #9ab2c6;
  --success: #65e2b3;
  --warning: #ffd166;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--light);
  background:
    radial-gradient(circle at 14% 6%, rgba(13, 143, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 85% 18%, rgba(40, 215, 255, 0.08), transparent 27rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 34rem, #041221);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: #00101c;
  background: var(--cyan);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(1, 9, 20, 0.88);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  padding-left: .75rem;
  border-left: 3px solid var(--cyan);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .01em;
}
.wordmark-product { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a {
  color: #c8d8e5;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--cyan); }
.nav-support {
  padding: .58rem .85rem;
  border: 1px solid var(--line-strong);
  background: rgba(40, 215, 255, .06);
}
.menu-button {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--light);
  padding: .55rem .75rem;
  font: inherit;
}

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.25rem 0 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  width: 610px;
  height: 610px;
  right: -260px;
  top: -145px;
  border: 1px solid rgba(40, 215, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 68px rgba(40, 215, 255, .035),
    0 0 0 136px rgba(40, 215, 255, .025),
    0 0 0 204px rgba(40, 215, 255, .016);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  align-items: center;
  gap: 4rem;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.2rem;
  color: var(--cyan);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--cyan); }
h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: .93;
  letter-spacing: -.055em;
}
h1 span { color: var(--cyan); }
.hero-lead {
  max-width: 650px;
  margin: 1.55rem 0 0;
  color: #bed0de;
  font-size: clamp(1.06rem, 1.7vw, 1.27rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.12rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #00121e;
  background: linear-gradient(110deg, var(--cyan), #79e8ff);
  box-shadow: 0 13px 34px rgba(40, 215, 255, .18);
}
.btn-secondary { border-color: var(--line-strong); background: rgba(7, 26, 45, .72); }
.btn-secondary:hover { border-color: var(--cyan); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.35rem; color: var(--muted); font-size: .9rem; }
.hero-notes span::before { content: "✓"; color: var(--success); margin-right: .42rem; font-weight: 800; }

.logo-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(10, 33, 55, .86), rgba(3, 16, 31, .74));
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.logo-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-top: 2px solid rgba(40, 215, 255, .7);
}
.logo-panel img { width: 100%; height: auto; }
.live-route {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
}
.route-node {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .8rem;
  background: rgba(0, 8, 17, .56);
  border: 1px solid var(--line);
}
.route-node strong { display: block; color: var(--cyan); }
.route-node small { color: var(--muted); }
.route-arrow { color: var(--cyan); font-size: 1.55rem; }

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(5, 20, 35, .75);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item { padding: 1.15rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1.02rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }

.section { padding: 5rem 0; }
.section-kicker { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .77rem; }
.section-heading { margin: .55rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; }
.section-intro { max-width: 750px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.mission-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 2.2rem;
  align-items: start;
}
.mission-copy { font-size: 1.12rem; color: #c9d8e4; }
.mission-copy strong { color: var(--light); }
.mission-card {
  padding: 1.6rem;
  border-left: 4px solid var(--cyan);
  background: linear-gradient(110deg, rgba(13, 143, 255, .13), rgba(40, 215, 255, .03));
}
.mission-card blockquote { margin: 0; font-size: 1.4rem; line-height: 1.35; font-weight: 700; }
.mission-card p { margin: 1rem 0 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.feature-card {
  min-height: 230px;
  padding: 1.4rem;
  background: linear-gradient(155deg, rgba(10, 33, 55, .84), rgba(5, 20, 35, .7));
  border: 1px solid var(--line);
}
.feature-number { color: var(--cyan); font: 800 .78rem/1 monospace; letter-spacing: .12em; }
.feature-card h3 { margin: 1.4rem 0 .55rem; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }

.install-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.terminal {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #010a12;
  box-shadow: var(--shadow);
}
.terminal-top {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .75rem .55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #081827;
}
.terminal-dots { display: flex; gap: .38rem; }
.terminal-dots i { width: 9px; height: 9px; border-radius: 50%; background: #345066; }
.terminal-dots i:nth-child(1) { background: #ff6b6b; }
.terminal-dots i:nth-child(2) { background: #ffd166; }
.terminal-dots i:nth-child(3) { background: #65e2b3; }
.copy-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #d8e9f5;
  padding: .42rem .7rem;
  cursor: pointer;
  font: 600 .82rem/1 "Segoe UI", sans-serif;
}
.copy-button:hover { border-color: var(--cyan); color: var(--cyan); }
.terminal pre {
  margin: 0;
  padding: 1.25rem;
  overflow: auto;
  color: #d7f6ff;
  font: 500 .94rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.terminal .prompt { color: var(--success); }
.step-list { display: grid; gap: .75rem; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.step b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #00131f;
  background: var(--cyan);
}
.step h3 { margin: 0; font-size: 1rem; }
.step p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

.config-block { margin-top: 1rem; }
.config-block summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 750;
}
.config-block[open] summary { border-bottom-color: transparent; color: var(--cyan); }
.config-block .terminal { box-shadow: none; }

.download-panel {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: rgba(7, 26, 45, .68);
}
.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, .55fr) minmax(170px, .7fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.download-row:last-child { border-bottom: 0; }
.download-row.header { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.download-name strong { display: block; }
.download-name small { color: var(--muted); }
.download-row a { color: var(--cyan); font-weight: 750; text-decoration: none; }
.download-row a:hover { text-decoration: underline; }
.version-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: .3rem .55rem;
  color: var(--success);
  border: 1px solid rgba(101, 226, 179, .4);
  background: rgba(101, 226, 179, .06);
  font-size: .78rem;
  font-weight: 800;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.requirement { padding: 1.25rem; border-top: 3px solid var(--blue); background: var(--panel); }
.requirement strong { display: block; margin-bottom: .4rem; }
.requirement span { color: var(--muted); font-size: .91rem; }

.support-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(13, 143, 255, .15), rgba(40, 215, 255, .04)),
    var(--panel);
}
.support-panel h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.support-panel p { margin: .5rem 0 0; color: var(--muted); }
.support-email { color: var(--cyan); font-weight: 800; }

.site-footer { margin-top: 5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); background: #010913; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #c3d6e4; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--cyan); }
.disclaimer { margin-top: 1.1rem !important; max-width: 900px; font-size: .77rem !important; }

@media (max-width: 920px) {
  .hero-grid, .mission-grid, .install-shell { grid-template-columns: 1fr; }
  .logo-panel { max-width: 650px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .requirements-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .menu-button { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    background: #041321;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .55rem; }
  .hero { padding-top: 3.5rem; }
  .hero-grid { gap: 2.4rem; }
  .hero::before { opacity: .5; }
  .feature-grid, .requirements-grid { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: 1fr auto; }
  .download-row > :nth-child(2) { display: none; }
  .download-row.header { display: none; }
  .support-panel { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .container, .nav-wrap { width: min(100% - 1.2rem, var(--max)); }
  .wordmark-product { display: none; }
  h1 { font-size: 3.15rem; }
  .hero-actions .btn { width: 100%; }
  .live-route { grid-template-columns: 1fr; }
  .route-arrow { transform: rotate(90deg); justify-self: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 3.6rem 0; }
  .download-row { grid-template-columns: 1fr; }
  .download-row > :nth-child(2) { display: block; }
}

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

/* Prevent long terminal commands from widening mobile grid tracks. */
.install-shell > *,
.step-list,
.step,
.step > div,
.config-block,
.terminal {
  min-width: 0;
  max-width: 100%;
}
.terminal pre {
  max-width: 100%;
}
