/* Genie OS: genieos.si (light theme) */

:root {
  /* Brand */
  --navy: #00031B;
  --gold: #EFB743;
  --gold-hover: #E3A729;
  --teal: #17C5CA;

  /* Light theme */
  --bg: #FFFFFF;
  --surface: #F6F7FB;
  --line: #E4E6EF;
  --text: #00031B;
  --muted: #4B5070;      /* 8.3:1 on white */
  --teal-ink: #0A7A7E;   /* teal for text on white, 5.1:1 */
  --gold-ink: #8A5B00;   /* gold for text on white, 6.0:1 */

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }

.top-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 48px; height: auto; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav { align-items: center; }
.nav-gh { display: inline-flex; align-items: center; gap: 8px; }
.gh-mark { width: 18px; height: 18px; fill: currentColor; flex: none; }
/* The GitHub link is the one dark, glowing button in the header. */
.nav .nav-gh,
.nav .nav-gh:hover {
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(56, 189, 248, 0.45), transparent 60%),
    var(--navy);
}
.nav .nav-gh {
  margin-left: 8px; padding: 9px 18px 9px 15px;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(23, 197, 202, 0.22), 0 8px 24px -8px rgba(23, 197, 202, 0.7);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: gh-glow 3.2s ease-in-out infinite;
}
.nav .nav-gh:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(23, 197, 202, 0.32), 0 12px 30px -8px rgba(23, 197, 202, 0.85);
  animation: none;
}
.nav .nav-gh .gh-mark { color: #8AF2F4; }
@keyframes gh-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(23, 197, 202, 0.22), 0 8px 24px -8px rgba(23, 197, 202, 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(23, 197, 202, 0.10), 0 10px 32px -6px rgba(23, 197, 202, 0.9); }
}

/* Between the phone menu and wide screens, tighten links so the button fits. */
@media (min-width: 901px) and (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
}

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(700px 420px at 50% 100%, rgba(23, 197, 202, 0.10), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F7FB 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero-logo { width: 200px; height: auto; }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-sub {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-cta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* Phone showing Genie's listening screen (drawn by orb.js) */
.hero-device {
  margin-top: 64px;
  padding-bottom: 88px;
  display: flex; justify-content: center;
}

.device {
  width: 290px; height: 600px;
  padding: 10px;
  border-radius: 48px;
  background: #0E1230;
  box-shadow:
    0 0 0 1px #262B52 inset,
    0 40px 90px -30px rgba(0, 3, 27, 0.45);
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  /* Still frame when JavaScript is off; the canvas covers it. */
  background:
    radial-gradient(90px 90px at 50% 50%, rgba(240, 248, 255, .55), rgba(56, 189, 248, .45) 45%, transparent 72%),
    radial-gradient(200px 200px at 50% 50%, rgba(56, 189, 248, .18), transparent 70%),
    linear-gradient(#06070F, #0F0B22);
  color: #F2F3F8;
}

.orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.device-status {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px 0;
  font-size: 12px; font-weight: 600;
}
.device-icons { display: flex; gap: 4px; }
.device-icons i { display: block; width: 14px; height: 8px; border-radius: 2px; background: rgba(242, 243, 248, .75); }
.device-icons i:nth-child(1) { width: 10px; }
.device-icons i:nth-child(3) { width: 20px; }


/* ---------- Sections ---------- */

.section { padding: 112px 0; }

.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section h2 {
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-lede {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--muted);
}

/* Features: full-width slider, one feature per screen */
.features-section { padding-bottom: 88px; }
.features-head .section-lede { margin-top: 12px; }

.slider {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slider { background: #05061A; }
.slider .slide { transition: opacity .4s ease; }
.slider.is-wrapping .slide { opacity: 0; }
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline-offset: -4px; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center;
  min-height: clamp(560px, 78vh, 760px);
  position: relative;
  color: #F2F3F8;
  background:
    radial-gradient(45% 65% at 72% 50%, rgba(91, 108, 255, 0.10), transparent 70%),
    linear-gradient(160deg, #05061A 0%, #0A0A22 60%, #110C2A 100%);
  overflow: hidden;
}
.slide-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.slide-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px; padding-bottom: 64px;
}

.slide-num { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: #7D82A3; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.slide h3 {
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.05;
}
.slide p { margin-top: 18px; max-width: 34ch; font-size: clamp(16px, 1.5vw, 18.5px); color: #B7BBD3; }

.slide-art { width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; }

.modes { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modes li {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  color: #8E93B4; border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.modes li.is-on { color: var(--navy); background: #F2F3F8; border-color: transparent; }

.tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px;
}
.tag-now { background: rgba(23, 197, 202, 0.16); color: #5FE0E3; }
.tag-next { background: rgba(239, 183, 67, 0.18); color: #F4C866; }

.slider-foot {
  margin-top: 28px;
  display: flex; align-items: center; gap: 24px;
}
.slider-dots { display: flex; gap: 6px; }
.dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 999px;
  background: var(--line);
  transition: width .25s ease, background-color .25s ease;
}
.dot { position: relative; }
.dot:hover::before { background: #C5C8D6; }
.dot[aria-current="true"]::before { width: 28px; background: #D3D6E2; }
/* Fills while the slideshow counts down to the next slide */
.dot i {
  position: absolute; left: 0; top: 9px; width: 28px; height: 10px;
  border-radius: 999px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .12s linear;
}
.dot[aria-current="true"] i { opacity: 1; }

.slider-play {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: none; border: 1.5px solid var(--line); color: var(--navy); cursor: pointer;
}
.slider-play:hover { border-color: var(--navy); }
.slider-play svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-play .i-play { fill: currentColor; stroke-width: 1.5; }
.slider-play .i-play, .slider-play.is-paused .i-pause { display: none; }
.slider-play.is-paused .i-play { display: block; }
.slider-note { flex: 1; font-size: 14px; color: var(--muted); }
.slider-nav { display: flex; gap: 10px; flex: none; }
.slider-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--navy);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
}
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:hover:not(:disabled) { border-color: var(--navy); }
.slider-btn:disabled { opacity: .35; cursor: default; }

/* ---------- How it works ---------- */

.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.how-head > div { max-width: 680px; }
.how-head .section-lede { margin-top: 14px; }
.how-head .btn { flex: none; }

.how-flow { position: relative; margin-top: 88px; }
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  position: relative;
}
/* The line that joins the step icons */
.how-steps::before {
  content: ""; position: absolute; top: 26px; left: 26px; right: calc(20% - 39px);
  height: 1.5px; background: var(--line);
}
.how-steps li { position: relative; padding-right: 8px; }
.how-icon {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--navy);
  border: 1.5px solid var(--line);
}
.how-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.is-gate .how-icon { background: var(--gold); border-color: var(--gold); }
.how-num { display: block; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--teal-ink); }
.is-gate .how-num { color: var(--gold-ink); }
.how-steps h3 { margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.how-steps p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Dashed arc from step 4 back to step 3 */
.how-loop {
  position: absolute; top: -40px; height: 40px;
  left: calc(40% + 32px); width: calc(20% + 3px);
  border: 1.5px dashed var(--teal); border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
.how-loop::after {
  content: ""; position: absolute; left: -6px; bottom: -2px;
  border: 5.5px solid transparent; border-top: 7px solid var(--teal); border-bottom: 0;
}
.how-loop span {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 0 10px; background: var(--bg);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--teal-ink); white-space: nowrap;
}

.how-under {
  margin-top: 96px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px;
}
.how-under h3 { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }

.how-stack, .how-privacy { border-radius: 28px; padding: 32px; }
.how-stack { background: var(--surface); }
.stack { margin-top: 20px; display: flex; flex-direction: column; }
.layer {
  border-radius: 18px; padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.layer strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.layer span { font-size: 14.5px; color: var(--muted); }
.l-apps { border: 1.5px dashed #C9CCDA; }
.l-genie {
  color: #F2F3F8;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(56, 189, 248, 0.22), transparent 70%),
    var(--navy);
}
.l-genie span { color: #B7BBD3; }
.l-agentd { margin-top: 0; background: var(--bg); border: 1.5px solid rgba(23, 197, 202, 0.55); }
.l-os { margin-top: 10px; background: #E9EBF3; }
.chips { list-style: none; margin: 10px 0 0; padding: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #E2E5F2;
}
.chips li:last-child { background: rgba(239, 183, 67, 0.2); color: #F4C866; }
.link {
  position: relative;
  padding: 10px 0 10px 34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted);
}
.link i { position: absolute; left: 20px; top: 0; bottom: 0; width: 1.5px; background: #C9CCDA; }

.how-privacy { border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.leaves { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.leaves li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); }
.leaves li strong { color: var(--text); font-weight: 600; }
.leaves li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(23, 197, 202, 0.15);
}
.how-note { margin-top: auto; padding-top: 24px; font-size: 13.5px; color: var(--muted); }
.tag-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }

.btn-ext { gap: 8px; }
.btn-tech {
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    var(--navy);
  box-shadow: 0 0 0 4px rgba(23, 197, 202, 0.18), 0 10px 30px -10px rgba(23, 197, 202, 0.55);
  transition: box-shadow .2s ease, transform .2s ease;
}
.btn-tech:hover { box-shadow: 0 0 0 5px rgba(23, 197, 202, 0.28), 0 14px 36px -10px rgba(23, 197, 202, 0.7); transform: translateY(-1px); }
.btn-tech .code { color: #5FE0E3; }
.btn-ext svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contribute ---------- */

.contribute { background: var(--surface); }
.contribute-head { max-width: 640px; margin: 0 auto; text-align: center; }
.contribute-head .section-lede { margin-top: 14px; }

.idea-grid {
  margin: 56px auto 0; max-width: 880px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.idea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 28px;
  padding: 32px;
}
.idea-art {
  display: grid; place-items: center;
  width: 88px; height: 56px; border-radius: 18px;
  background:
    radial-gradient(80% 90% at 30% 20%, rgba(56, 189, 248, 0.35), transparent 70%),
    var(--navy);
}
.idea-art svg { width: 64px; height: 40px; fill: none; stroke: #8AF2F4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-art .o1, .idea-art .o2 { fill: rgba(23, 197, 202, 0.25); }
.idea-art .pulse { fill: #EFB743; stroke: none; }
.idea-art .plus { stroke: #EFB743; }
.idea h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.idea p { margin-top: 8px; font-size: 16px; color: var(--muted); }

.contribute-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; font-size: 15px; color: var(--muted); }
.foot-links { display: flex; gap: 80px; }
.foot-links h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
}
.foot-links ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.foot-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 15px;
}
.foot-links a:hover { color: var(--text); }
.foot-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 13px; color: var(--muted);
}
.foot-bottom p:last-child { max-width: 62ch; text-align: right; }

.slider-note a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }

/* ---------- Devices page ---------- */

.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.foot-links a[aria-current="page"] { color: var(--text); }

.page-head { padding: 96px 0 56px; text-align: center; }
.page-head h1 {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 300; letter-spacing: -0.035em; line-height: 1;
}
.page-head .section-lede { max-width: 34em; margin: 20px auto 0; }

.devices { padding-bottom: 112px; }
.device-card {
  max-width: 920px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center;
  padding: 48px 56px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 32px;
  box-shadow: 0 30px 70px -40px rgba(0, 3, 27, 0.25);
}
.mini-phone {
  width: 196px; height: 404px; padding: 8px;
  border-radius: 34px; background: #0E1230;
  box-shadow: 0 0 0 1px #262B52 inset, 0 30px 60px -28px rgba(0, 3, 27, 0.45);
}
.mini-screen {
  height: 100%; border-radius: 27px; overflow: hidden;
  display: grid; place-items: center;
  background: #00031B;
}
.mini-screen img { width: 88%; height: auto; display: block; }

.device-brand { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.device-info h2 { margin-top: 6px; font-size: clamp(32px, 4vw, 42px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.device-tags { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.codename {
  font-family: var(--mono); font-size: 13px;
  padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
}
.tag-test { background: #FDF3DC; color: var(--gold-ink); }

.device-specs { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.device-specs div { padding: 14px 0; border-top: 1px solid var(--line); }
.device-specs dt { font-size: 13px; color: var(--muted); }
.device-specs dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; }
.device-note { margin-top: 24px; font-size: 15px; color: var(--muted); }
.device-note a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }

.maintain { background: var(--surface); }
.maintain-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.maintain-text .section-lede { margin-top: 16px; }
.maintain-text .btn { margin-top: 32px; }
.maintain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.maintain-list li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px;
  padding: 24px 28px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 24px;
}
.maintain-num { grid-row: span 2; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--teal-ink); padding-top: 3px; }
.maintain-list h3 { font-size: 18px; font-weight: 600; }
.maintain-list p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* ---------- 404 ---------- */

.notfound { min-height: 100vh; display: flex; align-items: center; padding: 64px 0; }
.notfound .eyebrow { margin-top: 32px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--teal-ink); }
.notfound h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 300; letter-spacing: -0.03em; }
.notfound .section-lede { margin-top: 14px; color: var(--muted); }
.notfound .cta { margin-top: 28px; }


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(0, 3, 27, 0.25);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; border-radius: 8px; }
  .nav { align-items: stretch; }
  .nav .nav-gh { margin: 10px 0 0; padding: 13px 16px; justify-content: center; border-radius: 12px; }

  .how-head { flex-direction: column; align-items: flex-start; }
  .maintain-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-steps::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 1.5px; height: auto; }
  .how-steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; padding-right: 0; }
  .how-steps li > :not(.how-icon) { grid-column: 2; }
  .how-icon { grid-row: 1 / span 3; }
  .how-num { margin-top: 2px; }
  .how-loop { display: none; }
  .how-flow { margin-top: 56px; }
  .how-under { grid-template-columns: 1fr; margin-top: 64px; }
  .slide { min-height: 0; align-items: stretch; }
  .slide-inner { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; padding-bottom: 56px; }
  .slide-art { order: -1; }
  .slide-art { max-width: 440px; }
  .slide p { max-width: 46ch; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16px; }


  .hero { padding-top: 48px; }
  .section { padding: 80px 0; }
  .slider { margin-top: 32px; }
  .slide-inner { padding-top: 32px; padding-bottom: 44px; }
  .slide-art { max-width: 340px; }
  .slider-foot { flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; }
  .slider-note { order: 3; flex-basis: 100%; }
  .slider-nav { margin-left: auto; }
  .slider-btn { width: 46px; height: 46px; }
  .how-stack, .how-privacy { padding: 24px 20px; border-radius: 24px; }
  .how-head .btn { width: 100%; }
  .idea-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .idea { padding: 26px 22px; border-radius: 24px; }
  .contribute-cta .btn { width: 100%; }
  .page-head { padding: 64px 0 40px; }
  .devices { padding-bottom: 80px; }
  .device-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 22px; justify-items: center; border-radius: 26px; }
  .device-info { width: 100%; }
  .device-specs { grid-template-columns: 1fr; }
  .mini-phone { width: 156px; height: 322px; border-radius: 28px; padding: 7px; }
  .mini-screen { border-radius: 22px; }
  .maintain-list li { grid-template-columns: 32px 1fr; padding: 22px; }
  .maintain-text .btn { width: 100%; }
  .foot { padding: 48px 0 32px; }
  .foot-top { flex-direction: column; gap: 36px; }
  .foot-links { gap: 56px; }
  .foot-bottom { flex-direction: column; gap: 8px; margin-top: 40px; }
  .foot-bottom p:last-child { text-align: left; }
  .hero-logo { width: 150px; }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-device { margin-top: 48px; padding-bottom: 64px; }
  .device { width: 260px; height: 540px; }
}

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