/* Diamond Miner website — "Obsidian Core" (same tokens and fonts as the Android app). No external requests. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --canvas: #080a10;
  --s1: #111319;
  --s2: #191b22;
  --s3: #1d1f26;
  --s4: #282a31;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, .14);
  --violet: #a855f7;
  --gold: #f59e0b;
  --gold-soft: #ffd19c;
  --green: #00e676;
  --magma: #ff5a3c;
  --text: #e8ebf2;
  --muted: #a3acbb;
  --faint: #6f7889;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(0, 240, 255, .28);
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --cut: 14px;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  background-image: url("/assets/img/hex.svg");
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 85% -5%, rgba(0, 240, 255, .12), transparent 70%),
    radial-gradient(36rem 30rem at -5% 30%, rgba(168, 85, 247, .12), transparent 70%),
    radial-gradient(30rem 24rem at 60% 110%, rgba(61, 123, 255, .10), transparent 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ff8ff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .35em 0; }
strong { color: #fff; font-weight: 600; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: rgba(0, 240, 255, .3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--cyan); color: #001417; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 10, 16, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.125rem/1 var(--head); letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 34px; height: 40px; filter: drop-shadow(0 0 10px rgba(0, 240, 255, .45)); }
.brand:hover { color: #fff; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; white-space: nowrap; padding: 8px clamp(7px, .9vw, 12px); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .975rem; border-radius: var(--radius); position: relative; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  html.js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: var(--s2); color: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 9px 12px; font: 600 .9rem/1 var(--body); cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header .header-cta { display: none; }
  .hero-crystal { left: 4%; }
  html.js .site-nav {
    /* The header's backdrop-filter makes it the containing block, so size the panel explicitly. */
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: rgba(8, 10, 16, .98); padding: 16px var(--gutter) 32px; overflow-y: auto;
    display: none; margin: 0;
  }
  html.js .site-nav.is-open { display: block; }
  html.js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  html.js .site-nav a { padding: 14px 12px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  html.js .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  html.js .site-nav .nav-cta { display: block; margin-top: 18px; }
  html.js .site-nav .nav-cta a { display: flex; color: #00262a; background: var(--cyan); border-bottom: 0; font-size: 1rem; }
  html.js .site-nav .nav-cta a::after { display: none; }
  html.js .site-nav { background: var(--canvas); }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  html:not(.js) .site-nav { width: 100%; margin: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (min-width: 1024px) { .site-nav .nav-cta { display: none; } }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --chamfer: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 .95rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  transition: transform .15s ease, filter .15s ease, background-color .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cyan); color: #00262a; box-shadow: 0 0 24px rgba(0, 240, 255, .35); }
.btn-primary:hover { color: #00262a; }
.btn-secondary { background: linear-gradient(135deg, rgba(168, 85, 247, .9), rgba(124, 77, 255, .9)); color: #fff; }
.btn-secondary:hover { color: #fff; }
.btn-ghost { background: rgba(0, 240, 255, .08); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(0, 240, 255, .14); color: #fff; }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: .8rem; }

/* ---------- Google Play call-to-action ---------- */
.play-cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; }
.play-badge {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 22px 10px 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px;
}
.play-badge .play-icon { width: 28px; height: 30px; flex: none; }
.play-badge small { display: block; font: 600 .7rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #cfd6e2; }
.play-badge strong { display: block; font: 600 1.35rem/1.15 var(--body); color: #fff; letter-spacing: 0; }
.play-cta.is-soon .play-badge { cursor: default; border-style: dashed; border-color: rgba(0, 240, 255, .45); background: rgba(0, 0, 0, .6); }
.play-cta.is-live .play-badge:hover { border-color: var(--cyan); color: #fff; }
.play-cta img.play-official { height: 60px; width: auto; }
.play-note { font-size: .85rem; color: var(--faint); margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.status-pill.is-live { color: var(--green); }
.status-pill.is-live::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.download-band .status-pill { margin-bottom: 14px; }
.center-link { text-align: center; margin: clamp(24px, 4vw, 40px) 0 0; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 .78rem/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.eyebrow.violet { color: #c99bff; }
.lead { font-size: clamp(1.075rem, 2vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent { background: linear-gradient(90deg, var(--cyan), #7c9bff 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(29, 31, 38, .92), rgba(17, 19, 25, .92));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  padding: clamp(20px, 3vw, 28px);
}
.panel::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.panel.violet::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.panel.gold::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: "◆"; color: var(--cyan); font-size: .7em; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(0, 240, 255, .22), rgba(168, 85, 247, .12) 40%, transparent 68%); pointer-events: none; }
.phone {
  position: relative; width: min(100%, 340px);
  padding: 10px; border-radius: 34px;
  background: linear-gradient(160deg, #2a2e3a, #0d0f15 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 240, 255, .18);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 1080 / 2294; object-fit: cover; }
.hero-crystal { position: absolute; width: clamp(96px, 14vw, 160px); left: 2%; bottom: 8%; filter: drop-shadow(0 0 28px rgba(0, 200, 255, .55)); }
html.js .hero-crystal { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: rgba(17, 19, 25, .9); padding: 22px 18px; text-align: center; }
.stat b { display: block; font: 700 clamp(1.75rem, 4vw, 2.5rem)/1 var(--mono); color: #fff; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }

/* ---------- Features ---------- */
.feature { display: flex; flex-direction: column; height: 100%; }
.feature .icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(0, 240, 255, .08); border: 1px solid var(--line-strong); color: var(--cyan);
  font: 700 1.4rem/1 var(--head);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.feature.violet .icon { color: #c99bff; background: rgba(168, 85, 247, .1); border-color: rgba(168, 85, 247, .4); }
.feature.gold .icon { color: var(--gold-soft); background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature .tag { margin-top: auto; padding-top: 16px; font: 600 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.feature-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature-media.reverse .shot-frame { order: 2; }
.feature-media .shot-frame { max-width: 320px; justify-self: center; }
.shot-frame { padding: 8px; border-radius: 24px; background: linear-gradient(160deg, #262a35, #0d0f15); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px rgba(0, 0, 0, .5); }
.shot-frame img { border-radius: 18px; aspect-ratio: 1080 / 2294; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--cyan); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 8px var(--cyan); }
.checklist li strong { color: #fff; }

/* Data table (machines) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 600 .75rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); background: rgba(17, 19, 25, .9); }
td { background: rgba(17, 19, 25, .6); }
td.num { font-family: var(--mono); color: #fff; }
tr:last-child td { border-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(12px, 2vw, 22px); list-style: none; padding: 0; margin: 0; }
.gallery li { margin: 0; }
.gallery a { display: block; text-decoration: none; color: var(--muted); }
.gallery figure { margin: 0; }
.gallery .shot-frame { transition: transform .2s ease, box-shadow .2s ease; }
.gallery a:hover .shot-frame, .gallery a:focus-visible .shot-frame { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(0, 240, 255, .18); }
.gallery figcaption { margin-top: 10px; font-size: .92rem; text-align: center; }
.gallery figcaption b { display: block; color: #fff; font-family: var(--head); font-weight: 600; }
.gallery-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1023px) { .gallery-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(4, 5, 9, .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; padding: 56px 64px 20px; }
.lightbox img { max-height: calc(100vh - 130px); width: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 60px rgba(0, 240, 255, .2); }
.lightbox figcaption { color: var(--text); text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(17, 19, 25, .9); color: #fff; border: 1px solid var(--line-strong); width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--s4); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lightbox img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 60px); }
  .lightbox .lb-next { right: calc(50% - 60px); }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.steps > li { counter-increment: step; margin: 0; }
.steps .panel { height: 100%; padding-top: 54px; }
.steps .panel::after { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; left: clamp(20px, 3vw, 28px); font: 700 1rem/1 var(--mono); color: var(--cyan); letter-spacing: .1em; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Download band ---------- */
.download-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(40rem 20rem at 100% 0, rgba(0, 240, 255, .16), transparent 70%), radial-gradient(30rem 20rem at 0 100%, rgba(168, 85, 247, .18), transparent 70%), linear-gradient(180deg, #151822, #0e1017);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.download-band h2 { margin-bottom: 12px; }
.download-band .crystal-art { justify-self: center; width: min(100%, 240px); filter: drop-shadow(0 0 36px rgba(0, 200, 255, .5)); }
.download-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.download-points li { margin: 0; }
.download-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: rgba(17, 19, 25, .85); border: 1px solid var(--line); border-left: 2px solid var(--cyan-dim); }
.faq details[open] { border-left-color: var(--cyan); }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font: 600 1.05rem/1.4 var(--head); color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--mono); color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-hero .lead { max-width: 720px; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font: 500 .8rem/1.4 var(--mono); color: var(--faint); letter-spacing: .06em; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Legal / prose ---------- */
.prose > * { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #cfd5df; }
.h3-size { font-size: 1.35rem; }
.note { padding: 12px 14px; border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06); color: var(--gold-soft); }
.note strong { color: var(--gold-soft); }
.prose .note { padding: 16px 18px; border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06); color: var(--gold-soft); }
.legal-meta { font: 500 .85rem/1.5 var(--mono); color: var(--faint); }
.toc { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .88rem; }
.toc a:hover { color: #fff; border-color: var(--line-strong); }

/* ---------- Contact card ---------- */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.contact-email { font: 600 clamp(1rem, 3.2vw, 1.4rem)/1.3 var(--mono); color: #fff; word-break: break-all; }
.copy-status { min-height: 1.4em; font-size: .9rem; color: var(--green); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: rgba(8, 10, 16, .9); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .78rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 340px; margin-top: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.not-found .code { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--mono); color: transparent; -webkit-text-stroke: 2px var(--cyan); text-shadow: 0 0 40px rgba(0, 240, 255, .35); margin-bottom: 8px; }
.not-found .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */
html.js.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js.motion .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 859px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .phone { width: min(78%, 300px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-media, .download-band { grid-template-columns: 1fr; }
  .feature-media.reverse .shot-frame { order: 0; }
  .feature-media .shot-frame { max-width: 260px; }
  .download-band .crystal-art { width: 150px; grid-row: 1; }
}
@media (max-width: 479px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .play-cta, .play-badge { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero-visual { display: none; }
}

/* Invite page */
.invite-code { margin: .5rem 0 1rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1rem; color: var(--muted, #9aa3b8); }
.invite-status { margin: 0 0 1rem; padding: 10px 12px; border-left: 3px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .95rem; }
.invite-status.is-ok { border-color: var(--green); color: var(--text); }
.invite-status.is-warn { border-color: var(--gold); color: var(--gold-soft); }
.invite-status.is-error { border-color: var(--magma); color: #ffb4a6; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form { display: grid; gap: 8px; margin-top: 12px; }
.contact-form label { font: 600 .9rem/1.3 var(--head); color: var(--text); margin-top: 6px; }
.contact-form select, .contact-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(8, 10, 16, .8); color: var(--text); font: 400 1rem/1.5 var(--body); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.invite-code.is-code { font-size: clamp(2rem, 7vw, 3rem); font-weight: 700; letter-spacing: .18em; color: var(--text, #fff); word-break: break-all; }