:root {
  --page: #10130f;
  --surface: #171b15;
  --surface-raised: #1e241c;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(224, 236, 207, 0.14);
  --line-strong: rgba(224, 236, 207, 0.25);
  --text: #f1f4e9;
  --muted: #a9b1a0;
  --quiet: #6e786b;
  --green: #b9f06d;
  --green-dark: #17210f;
  --orange: #ff9d63;
  --mono: "Space Mono", monospace;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(115deg, rgba(185, 240, 109, 0.04), transparent 32%), #10130f;
  content: "";
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.glow { position: fixed; z-index: -2; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.glow-green { width: 28rem; height: 28rem; top: -14rem; left: -10rem; background: rgba(120, 190, 50, 0.15); }
.glow-orange { width: 22rem; height: 22rem; right: -12rem; bottom: 12%; background: rgba(255, 125, 55, 0.1); }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-shell { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--mono); font-size: 0.9rem; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.brand img { border-radius: 9px; }
.brand-dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links a, .footer-links a { text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover, .footer-links a:hover, .text-link:hover { color: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 4rem; align-items: center; padding: 7rem 0 5.5rem; }
.kicker { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--green); font-family: var(--mono); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.signal { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(185, 240, 109, 0.11); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin: 1.35rem 0 1.45rem; font-size: clamp(3.1rem, 6.5vw, 5.7rem); line-height: 0.98; letter-spacing: -0.065em; }
h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 570px; margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 46px; padding: 0.75rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--green); background: var(--green); color: var(--green-dark); }
.button-primary:hover { background: #d0fb91; }
.button-quiet { color: var(--muted); }
.button-quiet:hover { background: var(--surface-soft); color: var(--text); }

.hero-art { position: relative; min-height: 365px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-23deg); }
.orbit-large { width: 360px; height: 205px; }
.orbit-small { width: 270px; height: 155px; border-color: rgba(185, 240, 109, 0.3); transform: rotate(48deg); }
.device-card { position: relative; z-index: 1; width: min(100%, 355px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: linear-gradient(145deg, #252d22, #171c16); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4); transform: rotate(-4deg); }
.device-card-top { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--quiet); }
.window-lights { display: flex; gap: 0.3rem; }
.window-lights i { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.window-lights i:first-child { background: var(--orange); }
.mono { font-family: var(--mono); font-size: 0.54rem; }
.device-card-body { display: flex; align-items: center; gap: 1rem; padding: 3.4rem 2rem 2.8rem; }
.device-card-body img { border-radius: 14px; box-shadow: 0 0 0 8px rgba(185, 240, 109, 0.08); }
.device-card-body strong, .device-card-body span { display: block; }
.device-card-body strong { margin-bottom: 0.28rem; font-size: 1rem; }
.device-card-body span { color: var(--muted); font-size: 0.78rem; }
.connection-line { padding: 0.8rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.57rem; }
.connection-line span { display: inline-block; width: 6px; height: 6px; margin-right: 0.4rem; border-radius: 50%; background: var(--green); }
.art-label { position: absolute; color: var(--quiet); font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.12em; }
.label-top { top: 1.4rem; right: 0.2rem; }
.label-bottom { bottom: 1.4rem; left: 0.3rem; color: var(--orange); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; padding: 1.35rem 1rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-number { grid-row: span 2; color: var(--green); font-family: var(--mono); font-size: 0.68rem; }
.fact strong { font-size: 0.9rem; }
.fact > span:last-child { color: var(--quiet); font-family: var(--mono); font-size: 0.62rem; }

.section { padding: 8rem 0; }
.section-heading { display: grid; grid-template-columns: 0.7fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.055em; }
.section h2 span { color: var(--quiet); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.step { min-height: 220px; padding: 1.5rem; background: var(--surface); }
.step-index { color: var(--orange); font-family: var(--mono); font-size: 0.68rem; }
.step h3 { margin: 3rem 0 0.55rem; font-size: 1.05rem; }
.step p { max-width: 27ch; margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }

.details { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; padding-top: 0; }
.detail-card { padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.detail-main { background: linear-gradient(135deg, rgba(185, 240, 109, 0.11), transparent 55%), var(--surface); }
.detail-card h2 { max-width: 12ch; margin: 2.4rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.detail-card > p:not(.kicker) { max-width: 52ch; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tags span { padding: 0.42rem 0.65rem; border: 1px solid var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: 0.59rem; }
.quick-card ol { display: grid; gap: 1rem; margin: 2.4rem 0 2rem; padding: 0; list-style: none; }
.quick-card li { display: flex; gap: 0.8rem; color: var(--muted); font-size: 0.9rem; }
.quick-card li span { color: var(--green); font-family: var(--mono); font-size: 0.64rem; }
.text-link { color: var(--green); font-family: var(--mono); font-size: 0.68rem; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.76rem; }
.footer p { margin: 0; }
.footer strong { color: var(--text); }
.footer-links { display: flex; gap: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.trademark { justify-self: end; max-width: 28ch; text-align: right; }

@media (max-width: 800px) {
  .site-shell { width: min(100% - 2rem, 620px); }
  .topbar { min-height: 72px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 0 4rem; }
  .hero-art { min-height: 300px; }
  .section { padding: 5rem 0; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 1.5rem; }
  .steps, .details { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step h3 { margin-top: 1.8rem; }
  .footer { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .trademark { justify-self: start; text-align: left; }
}

@media (max-width: 480px) {
  .site-shell { width: min(100% - 1.4rem, 620px); }
  .nav-links { gap: 0; }
  .nav-links a:last-child { font-size: 0.6rem; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-lead { font-size: 0.98rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: center; }
  .hero-art { min-height: 260px; transform: scale(0.88); }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .detail-card { padding: 1.4rem; }
}

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