:root {
  --bg: #080a0e;
  --bg-elev: #12171f;
  --bg-soft: #1a212c;
  --line: rgba(232, 238, 246, 0.12);
  --text: #f3f6fb;
  --muted: #a8b3c2;
  --accent: #9ad7ff;
  --accent-deep: #1d4e73;
  --danger: #ffb4b4;
  --ok: #b6f0c8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "ui-monospace", "Cascadia Code", Menlo, monospace;
  --max: 1120px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; scroll-margin-top: 96px; }
.app-block { scroll-margin-top: 96px; }
p, address, .card { scroll-margin-top: 96px; }
h1 { font-size: clamp(3.2rem, 8vw, 7.2rem); margin: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
  padding: 0 1.25rem;
  background: rgba(8, 10, 14, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 1.15rem; align-items: center; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
}

.hero, .page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 68vh;
  overflow: hidden;
}
.page-hero { min-height: 28vh; align-items: flex-end; }
.hero video, .page-hero video,
.hero .poster, .page-hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  z-index: -2;
}
.code-field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
}
.code-track {
  margin: 0;
  padding: 4.5rem 0 0 7vw;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(210, 222, 234, 0.13);
  white-space: pre;
  animation: code-drift 16s ease-in-out infinite alternate;
}
.code-track .kw { color: rgba(154, 215, 255, 0.2); }
@keyframes code-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-0.8rem); }
}

.hero-shade, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.2) 0%, rgba(8, 10, 14, 0.28) 38%, rgba(8, 10, 14, 0.82) 72%, var(--bg) 100%),
    radial-gradient(ellipse at 18% 78%, rgba(29, 78, 115, 0.4), transparent 52%);
}
.page-hero::after {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.2), var(--bg) 92%);
}
.hero-inner, .page-hero-inner, .wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.hero-inner, .page-hero-inner { padding: 4rem 0 3.5rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--text);
  color: #081018;
  text-decoration: none;
  font-weight: 650;
}
.button.ghost { background: transparent; color: var(--text); }
.button:hover { color: #081018; background: var(--accent); }
.button.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.section { padding: 4.5rem 0; }
.section + .section { padding-top: 0; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.muted { color: var(--muted); }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card, .link-card, .panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.4rem;
}
.card h2 { font-size: 1.6rem; }
.shot {
  background: #05070a;
  border-radius: 1.4rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.shot img { margin: 0 auto; max-height: 640px; width: auto; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}
.gallery img {
  height: 420px;
  width: 100%;
  object-fit: contain;
  background: #05070a;
}
.gallery figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.app-block.stack { grid-template-columns: 1fr; }
.app-block.stack .wide-shot { max-width: 720px; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.qr-row { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.qr-row img {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.35rem;
}
.wide-shot {
  border-radius: 1rem;
  background: #05070a;
  border: 1px solid var(--line);
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.link-card { color: inherit; text-decoration: none; display: block; }
.link-card strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
.link-card span { color: var(--muted); font-size: 0.95rem; }
.link-card:hover { border-color: rgba(154, 215, 255, 0.45); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.lang {
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
address { font-style: normal; }
.legal-list { padding-left: 1.1rem; }

form { display: grid; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1016;
  color: var(--text);
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; }
.notice {
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-soft);
}
.notice.ok { color: var(--ok); }
.notice.bad { color: var(--danger); }
button.button { cursor: pointer; border: 0; }
.status {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.copy { margin-top: 1.4rem; font-size: 0.9rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.25rem 1.1rem;
    background: rgba(8, 10, 14, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
    z-index: 30;
    background: #080a0e;
  }
  .split, .cards, .links, .app-block { grid-template-columns: 1fr; }
  .hero, .page-hero { min-height: 70vh; }
  .page-hero { min-height: 36vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  video { display: none; }
  .code-track { animation: none; }
}
