/* Voryzn — midnight black, soft white, a restrained burnt-orange accent (the app's palette). */
:root {
  --bg: #090b0f;
  --s1: #141821;
  --s2: #1b202b;
  --line: #292f3d;
  --text: #f5f6f8;
  --text2: #9aa3af;
  --text3: #6b7382;
  --accent: #f36b35;
  --accent-pressed: #b54a24;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.75 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.caps {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
}
.muted { color: var(--text2); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  background: linear-gradient(var(--bg) 60%, rgba(9, 11, 15, 0));
}
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav-links a { color: var(--text3); transition: color 0.2s; padding-block: 6px; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on { box-shadow: inset 0 -1px 0 var(--accent); }
.nav-right { justify-content: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand img.mark { width: 44px; }
.brand img.word { width: 74px; opacity: 0.9; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 9vw, 96px) var(--gutter) 0;
}
.hero .kicker { color: var(--text2); font-size: 13px; letter-spacing: 0.6em; text-transform: uppercase; font-weight: 300; }
.hero h1 {
  margin: 10px 0 30px;
  font-weight: 200;
  font-size: clamp(44px, 9vw, 92px);
  line-height: 1;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* optical centring of the tracked word */
  text-wrap: balance;
}
.hero-photo {
  position: relative;
  width: min(520px, 86vw);
  margin: clamp(32px, 6vw, 56px) auto 0;
}
.hero-photo::before {
  /* a faint warm light behind the helmet: the subtle orange tint */
  content: '';
  position: absolute;
  inset: 12% -20% 30% -10%;
  background: radial-gradient(closest-side, rgba(243, 107, 53, 0.14), rgba(243, 107, 53, 0));
  filter: blur(10px);
  pointer-events: none;
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 22%;
  /* the photo's pure black melts into the midnight page instead of showing as a box */
  mix-blend-mode: lighten;
  /* soft on every side, so the photo's own edges never show */
  mask-image: radial-gradient(ellipse 50% 62% at 46% 42%, #000 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 62% at 46% 42%, #000 58%, transparent 100%);
}
.side-social {
  position: absolute;
  right: var(--gutter);
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  writing-mode: vertical-rl;
  color: var(--text3);
}
.side-social a:hover { color: var(--text); }

/* ── Sections ───────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.eyebrow { color: var(--accent); }
h2.title {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  max-width: 880px;
  margin: 0 auto;
}
.split p { color: var(--text2); margin: 0 0 1em; max-width: 34em; }
.specs { display: grid; gap: 34px; }
.spec h3 { margin: 0 0 10px; font-weight: 400; font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; }
.spec p { margin: 0; font-size: 14px; color: var(--text2); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 1px solid var(--line); padding: 4px 12px; font-size: 12px; letter-spacing: 0.12em; color: var(--text2); }
.chip.on { border-color: var(--text); color: var(--text); }

/* Full-bleed film band */
.band { position: relative; height: clamp(360px, 62vw, 720px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) brightness(0.62); }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 28%, transparent 70%, var(--bg)); }
.band .quote {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: clamp(40px, 8vw, 96px);
  max-width: 560px;
}
.band .quote p { margin: 10px 0 0; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.3; font-weight: 300; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--bg); padding: 36px 30px 40px; }
.feature .n { color: var(--accent); font: 400 13px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.1em; }
.feature h3 { margin: 22px 0 10px; font-weight: 400; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; }
.feature p { margin: 0; color: var(--text2); font-size: 14px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, clamp(220px, 26vw, 320px)); gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--s1); height: 100%; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.7); transition: filter 0.6s, transform 0.8s; }
.gallery figure:hover img { filter: saturate(0.85) brightness(0.9); transform: scale(1.02); }
.gallery figcaption { position: absolute; left: 20px; bottom: 16px; }

/* App preview */
.app { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 8vw, 110px); max-width: 960px; margin: 0 auto; }
.stats { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat b { display: block; color: var(--accent); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; }
.stat span { color: var(--text2); font-size: 12px; }
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  border: 1px solid var(--line);
  border-radius: 42px;
  padding: 12px;
  background: #050608;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px #0d1016;
}
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.map {
  flex: 1;
  position: relative;
  background:
    radial-gradient(circle at 52% 58%, rgba(243, 107, 53, 0.22) 0 7px, transparent 8px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 47px),
    #0e1117;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pill { position: absolute; top: 18px; left: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 11px; color: var(--text); }
.pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd68a; margin-right: 6px; }
.hud { background: var(--s1); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 16px 16px 18px; }
.hud-row { display: flex; justify-content: space-between; align-items: flex-end; }
.speed b { font-size: 46px; font-weight: 200; line-height: 1; }
.speed span { display: block; font-size: 10px; color: var(--text2); }
.hud dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-size: 11px; }
.hud dt { color: var(--text2); }
.hud dd { margin: 0; text-align: right; }
.hud-btns { display: grid; grid-template-columns: 1fr 0.6fr 1.6fr; gap: 8px; margin-top: 14px; }
.hud-btns span { border-radius: 12px; padding: 9px 0; text-align: center; font-size: 11px; background: var(--s2); }
.hud-btns .sos { background: #e54848; color: var(--bg); font-weight: 500; }

/* Contact */
.contact { text-align: center; }
.contact .mails { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; margin-top: 36px; }
.contact .mails a { display: block; margin-top: 8px; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.contact .mails a:hover { border-color: var(--accent); }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--text3);
}
.foot nav { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.foot a:hover { color: var(--text); }
.foot .sign { color: var(--text2); }

/* ── Document pages (privacy, terms, …) ─────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) var(--gutter) 96px; }
.doc .back { color: var(--text3); display: inline-flex; gap: 10px; align-items: center; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-weight: 200; font-size: clamp(32px, 5vw, 48px); letter-spacing: 0.18em; text-transform: uppercase; margin: 40px 0 12px; line-height: 1.15; }
.doc h2 { font-weight: 400; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--text2); }
.doc a { color: var(--text); border-bottom: 1px solid var(--accent); }
.doc .meta { color: var(--text3); font-size: 13px; }
.doc .card { background: var(--s1); border: 1px solid var(--line); padding: 20px 24px; margin: 24px 0; }
.doc code { font: 13px 'JetBrains Mono', ui-monospace, monospace; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav .nav-links:first-child { display: none; }
  .brand { flex-direction: row; gap: 10px; }
  .brand img.mark { width: 34px; }
  .side-social { display: none; }
  .split, .app { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure { aspect-ratio: 4 / 3; height: auto; }
  .gallery figure.tall { grid-row: auto; aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
