:root {
  --bg: #01080a;
  --surface: #071215;
  --surface-strong: #0b191d;
  --text: #f5fbfc;
  --muted: #91a6aa;
  --line: #17444c;
  --line-strong: #28c6d7;
  --cyan: #39d8ec;
  --lime: #b6ef3d;
  --violet: #b66cf2;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: url("./img/cyber-grid.jpg");
  background-position: top center;
  background-size: 1440px auto;
  background-repeat: repeat-y;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
a { color: var(--cyan); }

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.navlinks { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--text); }
.nav-status {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-status:hover,
.nav-status:focus-visible { background: rgba(57, 216, 236, .1); color: var(--text); }

.hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: 42px;
}
.system-label {
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
}
.hero-icon { width: 112px; height: 112px; border-radius: 22px; margin-bottom: 24px; }
.hero h1 { margin: 0; font-size: 4rem; line-height: 1.1; }
.hero-statement { margin: 22px 0 0; font-size: 1.65rem; line-height: 1.55; font-weight: 700; }
.hero-time { margin: 4px 0 0; color: var(--cyan); font-size: 1.25rem; line-height: 1.65; font-weight: 700; }
.hero-description { max-width: 500px; margin: 22px 0 26px; color: var(--muted); font-size: .94rem; }
.store-status {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}
.store-status:hover,
.store-status:focus-visible { background: rgba(57, 216, 236, .1); color: var(--text); }

.device-stage { position: relative; height: 620px; overflow: hidden; }
.device { position: absolute; margin: 0; }
.device img {
  height: 580px;
  width: auto;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #000;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .48);
}
.device-primary { left: 2%; top: 4px; z-index: 2; transform: rotate(-2deg); }
.device-secondary { right: 1%; top: 28px; transform: rotate(3deg); }

.dual-signal {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 8, 10, .86);
}
.section-heading,
.signal-grid,
.story,
.closing,
.disclosure,
.page,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.section-heading { padding: 56px 0 24px; }
.section-heading h2 { margin: 0; font-size: 2.35rem; line-height: 1.35; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.signal { min-width: 0; padding: 34px 48px 58px 0; border-top: 1px solid var(--line); }
.signal + .signal { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.signal-index, .story-index {
  margin: 0 0 18px;
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  font-weight: 800;
}
.signal h3 { margin: 0; font-size: 1.25rem; }
.signal-value { margin: 12px 0; color: var(--lime); font-size: 2.9rem; line-height: 1.2; font-weight: 800; }
.lifetime-value { margin: -2px 0 16px; color: var(--lime); font-size: 1.05rem; font-weight: 700; }
.signal > p:last-child { max-width: 480px; margin-bottom: 0; color: var(--muted); font-size: .9rem; }

#features { background: rgba(1, 8, 10, .68); }
.story {
  min-height: 740px;
  padding: 92px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  align-items: center;
  gap: 96px;
  border-bottom: 1px solid var(--line);
}
.story-reverse { grid-template-columns: minmax(300px, .8fr) minmax(0, 1fr); }
.story-reverse .story-copy { grid-column: 2; }
.story-reverse .story-screen { grid-column: 1; grid-row: 1; }
.story-copy h2 { margin: 0 0 20px; font-size: 2.35rem; line-height: 1.4; }
.story-copy > p:not(.story-index):not(.story-note) { max-width: 570px; margin: 0; color: var(--muted); }
.story-note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.story-screen { margin: 0; justify-self: center; }
.story-screen img {
  width: auto;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5);
}
.data-list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.data-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.data-list span { display: inline-block; width: 78px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }

.closing { padding: 104px 0; text-align: center; }
.closing h2 { margin: 0; font-size: 3rem; line-height: 1.4; }
.closing > p:not(.system-label) { max-width: 650px; margin: 22px auto 28px; color: var(--muted); }
.disclosure { padding: 24px 0 58px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.disclosure p { max-width: 880px; margin: 0; }

.page { padding: 72px 0 96px; max-width: 780px; }
.page h1 { margin: 0 0 12px; font-size: 2.4rem; }
.page h2 { margin: 48px 0 10px; color: var(--cyan); font-size: 1.2rem; }
.page p, .page li { color: var(--muted); }
.page .updated { font-size: .82rem; }
.faq { margin-top: 36px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; }
.contact { margin-top: 42px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--surface); }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text); font-weight: 800; }
.footer-brand img { width: 34px; height: 34px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-status { display: none; }
  .hero { grid-template-columns: .8fr 1.2fr; gap: 20px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-icon { width: 88px; height: 88px; }
  .device-stage { height: 560px; }
  .device img { height: 520px; }
  .story { gap: 56px; }
}

@media (max-width: 720px) {
  body { background-size: 1080px auto; }
  .nav { min-height: auto; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 12px 18px; }
  .brand { margin-right: auto; }
  .brand img { width: 36px; height: 36px; }
  .navlinks { width: 100%; order: 3; justify-content: flex-start; gap: 10px 18px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
  .navlinks a[href="./privacy/"],
  .navlinks a[href="../"] { display: none; }

  .hero { min-height: auto; padding: 28px 0 20px; display: block; }
  .system-label { margin-bottom: 16px; }
  .hero-icon { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 14px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-statement { margin-top: 16px; font-size: 1.45rem; }
  .hero-time { font-size: 1.08rem; }
  .hero-description { display: none; }
  .device-stage { width: 100%; height: 220px; margin-top: 24px; }
  .device img { height: min(320px, 88vw); border-radius: 22px; }
  .device-primary { left: 10px; top: 0; }
  .device-secondary { right: 10px; top: 18px; }

  .section-heading { padding: 48px 0 22px; }
  .section-heading h2 { font-size: 1.85rem; }
  .signal-grid { display: block; }
  .signal, .signal + .signal { padding: 28px 0 40px; border-left: 0; }
  .signal + .signal { border-top: 1px solid var(--line); }
  .signal-value { font-size: 2.35rem; }

  .story, .story-reverse { min-height: auto; padding: 64px 0; display: flex; flex-direction: column; gap: 42px; }
  .story-reverse .story-copy, .story-reverse .story-screen { grid-column: auto; grid-row: auto; }
  .story-copy h2 { font-size: 1.9rem; }
  .story-screen { width: 100%; }
  .story-screen img { height: 500px; margin: 0 auto; border-radius: 24px; }

  .closing { padding: 74px 0; text-align: left; }
  .closing h2 { font-size: 2.2rem; }
  .closing > p:not(.system-label) { margin-left: 0; }
  .page { padding-top: 52px; }
}

@media (max-width: 390px) {
  .navlinks { gap: 10px 14px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-statement { font-size: 1.3rem; }
  .device-stage { height: 210px; }
  .story-screen img { height: 460px; }
}

@media (max-width: 359px) {
  .device-stage { display: flex; justify-content: center; }
  .device-primary { position: relative; left: auto; top: 0; }
  .device-secondary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
