/*************************************************************************
 * Asura v2 — design language
 *
 * Principles: the photo sets the mood, typography carries the content,
 * glass is used sparingly (nav, hero facts, server panels, closing CTA).
 * No card grids for prose — hairlines and whitespace instead.
 *
 * Contrast (WCAG 2.x, against --bg #0A0E0B):
 *   --text        #EAEFEB  16.7:1      --primary on bg   #2DB81F  7.4:1
 *   --muted       #B2BCB5  10.1:1      --primary-hi      #5BE043 11.3:1
 *   --subtle      #7E8A82   5.4:1      --on-primary on --primary  7.2:1
 * White on the green fails AA, so the green button carries dark ink.
 * The green leans slightly lime (hue 115°), a step from the brief's #04AB27.
 *************************************************************************/

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces — near-black with a faint green cast so the brand green
     reads as part of the palette rather than pasted on top. */
  --bg:            #0A0E0B;
  --bg-veil:       rgba(10, 14, 11, 0.9);
  --surface:       #121813;
  --glass:         rgba(18, 24, 19, 0.55);
  --glass-solid:   rgba(18, 24, 19, 0.94);
  --line:          rgba(234, 239, 235, 0.09);
  --line-strong:   rgba(234, 239, 235, 0.18);

  /* Text */
  --heading:       #F6F8F6;
  --text:          #EAEFEB;
  --muted:         #B2BCB5;
  --subtle:        #7E8A82;

  /* Brand — lime-leaning green, the primary CTA. -hi is for green text and focus
     rings, -hover for the button hover state, -ink for text on green. */
  --primary:       #2DB81F;
  --primary-hover: #3ACC2A;
  --primary-hi:    #5BE043;
  --primary-ink:   #03130A;
  --primary-tint:  rgba(45, 184, 31, 0.14);

  /* Cyan is reserved for Nexus references only (brand rule). */
  --nexus:         #3FC6E0;
  --nexus-mid:     rgba(63, 198, 224, 0.5);
  --nexus-clear:   rgba(63, 198, 224, 0);

  --danger:        #F0616B;

  --font-display:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:        10px;
  --radius-lg:     16px;
  --wrap:          1200px;
  --gutter:        clamp(16px, 4vw, 40px);
  --nav-h:         64px;
  --section-y:     clamp(3.5rem, 7vw, 5.5rem);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }
::selection { background: var(--primary); color: var(--primary-ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.dot { color: var(--primary-hi); }
.ic { width: 1.1em; height: 1.1em; flex: none; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--primary); color: var(--primary-ink); border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,11,0.45) 0%, rgba(10,14,11,0) 28%, rgba(10,14,11,0.35) 68%, rgba(10,14,11,0.8) 100%),
    radial-gradient(120% 90% at 30% 60%, transparent 45%, rgba(10,14,11,0.55) 100%);
}

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* ---------- buttons ----------
   Policy: .btn-primary (filled green) only for the main action, joining
   Discord. Every other action is .btn-ghost (silver outline) that turns
   green on hover. No bare text links for actions. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1.05rem; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.09); border-color: rgba(234, 239, 235, 0.32); color: var(--heading);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-hi); }
.btn .ic-arrow-right { transition: transform 0.2s var(--ease); }
.btn:hover .ic-arrow-right { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--heading); cursor: pointer;
  transition: background-color 0.18s, opacity 0.18s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.nav[data-scrolled] {
  /* Solid enough that bright content (skins, map) can't tint the bar;
     no saturate() — it amplified the colours underneath. */
  background: rgba(10, 14, 11, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-in { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 800 1rem/1 var(--font-display); letter-spacing: 0.14em; color: var(--heading); }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.92rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--heading); }
.nav .btn { margin-left: 0.5rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); display: grid; min-width: 12rem; padding: 0.5rem; }
.menu-panel a { padding: 0.75rem 0.9rem; border-radius: var(--radius); color: var(--text); }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { gap: 0.75rem; }
  .nav .btn { margin-left: auto; }
  .menu { display: block; }
}

/* ---------- hero ---------- */
/* Fills the screen up to 60rem; on taller monitors the next section peeks
   in instead of the headline sinking to ~1000 px from the top. */
.hero {
  min-height: min(100svh, 60rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(2.5rem, 6vh, 4.5rem);
  padding: calc(var(--nav-h) + 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.lockup { display: inline-flex; align-items: center; gap: clamp(0.7rem, 1.4vw, 1rem); margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.lockup img { width: clamp(44px, 5vw, 64px); height: auto; }
.lockup span { font: 800 clamp(1.35rem, 2.6vw, 2rem)/1 var(--font-display); letter-spacing: 0.24em; color: var(--heading); }
.hero-sub { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--text); max-width: 36ch; }
.hero-sub em { color: var(--heading); }
.perks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1rem; color: var(--text); font-size: 0.95rem; }
.perks li { display: inline-flex; align-items: center; gap: 0.5rem; }
.perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.live-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-hi); box-shadow: 0 0 0 0 rgba(91, 224, 67, 0.6); animation: ping 2.4s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(91, 224, 67, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(91, 224, 67, 0); }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts > div { padding: 1.25rem 1.5rem; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.facts dt::first-letter { text-transform: uppercase; }
.facts dd { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; margin-top: 0.2rem; }
@media (max-width: 760px) {
  .facts > div { padding: 0.9rem 0.8rem; }
  .facts dt { font-size: 0.72rem; }
  .facts dd { font-size: 1.3rem; }
}

/* ---------- sheet: the darkened reading surface between hero and join ---------- */
/* Rhythm: photo (hero) → dark → photo window (servers) → dark with a big
   map (nexus) → green band (points) → dark (skins) → photo (join). The
   backdrop is fixed, so a section without a veil scrolls over the photo. */
.sheet > .section { background: var(--bg-veil); }
.sheet > .section:first-child { background: linear-gradient(180deg, rgba(10, 14, 11, 0.5) 0, var(--bg-veil) 5rem); }
.sheet > .section:last-child { background: linear-gradient(180deg, var(--bg-veil) calc(100% - 12rem), rgba(10, 14, 11, 0) 100%); }
.sheet > .window {
  background: linear-gradient(180deg, var(--bg-veil) 0, rgba(10, 14, 11, 0.55) 7rem, rgba(10, 14, 11, 0.55) calc(100% - 7rem), var(--bg-veil) 100%);
}

/* Rule of thumb for every section: a title, one short line, the content. */
.section { padding-block: var(--section-y); }
.section + .section:not(.window), .window + .section { border-top: 1px solid var(--line); }
.window + .section { border-top: 0; }

.title, .join h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.title { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.head-row .title { margin-bottom: 0; }

/* ---------- why: three reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.reasons li { display: flex; flex-direction: column; border-top: 2px solid var(--primary); padding-top: 1.25rem; }
.reasons h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.reasons p { color: var(--muted); }
.reasons .btn { align-self: flex-start; margin-top: auto; }
.reasons p { margin-bottom: 1.1rem; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- servers ---------- */
.servers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 860px) { .servers { grid-template-columns: 1fr; } }
.server { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.server-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.server h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.02em; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.7rem; border-radius: 99px; font-size: 0.78rem; font-weight: 600; background: var(--primary-tint); color: var(--primary-hi); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.server[data-up="false"] .status { background: rgba(240, 97, 107, 0.12); color: var(--danger); }
.server-tag { margin-top: 0.3rem; color: var(--muted); font-size: 0.92rem; }
.meter { height: 6px; margin-top: 1.25rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 0.8s var(--ease); }
.server[data-up="false"] .meter span { background: var(--subtle); }
.server-count { margin-top: 0.6rem; font-size: 0.95rem; }
.server-count b { font: 700 1.3rem/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.server-body { margin-top: 0.75rem; color: var(--text); }
[data-stale] { opacity: 0.7; }

.server-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0; margin-top: 1.25rem; color: var(--text); font-size: 0.92rem; }
.server-facts li + li::before { content: "·"; margin-inline: 0.7rem; color: var(--primary-hi); font-weight: 700; }
@media (max-width: 760px) {
  .server-facts { flex-direction: column; align-items: flex-start; }
  .server-facts li::before, .server-facts li + li::before { content: "·"; margin: 0 0.6rem 0 0; color: var(--primary-hi); font-weight: 700; }
}

.join-steps { margin-top: clamp(2rem, 4vw, 2.75rem); }
.join-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.join-head h3 { font-size: 1.35rem; font-weight: 800; }
.join-also { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; }
/* New here? — collapsed questions under the join steps. */
.newbie { margin-top: 1.5rem; }
.newbie h4 { margin-bottom: 0.6rem; font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.newbie-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; align-items: start; }
.newbie details { border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(10, 14, 11, 0.6); }
.newbie summary { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.55rem 1rem; list-style: none; cursor: pointer; font-weight: 600; color: var(--heading); }
.newbie summary::-webkit-details-marker { display: none; }
.newbie summary::before { content: "+"; flex: none; width: 1rem; font: 700 1.1rem/1 var(--font-display); color: var(--primary-hi); }
.newbie details[open] summary::before { content: "\2212"; }
.newbie summary:hover { color: var(--primary-hi); }
.newbie details p { padding: 0 1rem 0.9rem 2.6rem; color: var(--text); font-size: 0.95rem; }
.newbie details b { color: var(--heading); }
.newbie details a { color: var(--primary-hi); text-decoration: underline; text-underline-offset: 3px; }
.join-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.join-steps li {
  display: flex; align-items: center; gap: 1.1rem; min-height: 100px; padding: 1.1rem 1.4rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(10, 14, 11, 0.6);
}
.step-num { flex: none; font: 800 2.75rem/1 var(--font-display); color: var(--primary-hi); font-variant-numeric: tabular-nums; }
.join-steps p { font-size: 1.05rem; color: var(--text); }
.join-steps b, .join-steps em { color: var(--heading); }
@media (max-width: 860px) {
  /* Phones: heading, then the three tiles. */
  .join-steps { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .join-head { display: contents; }
  .join-steps ol { order: 1; width: 100%; }
  .join-head .btn, .join-also, .newbie { order: 2; }
  .newbie { width: 100%; }
  .newbie-qs { grid-template-columns: 1fr; }
  .join-steps ol { grid-template-columns: 1fr; }
  .join-steps li { min-height: 76px; }
  .step-num { font-size: 2.2rem; }
}

/* ---------- nexus: map + three features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
#nexus { overflow-x: clip; }
@media (min-width: 901px) {
  /* Wider than its column and cut by the viewport edge: the island is the
     one big image in the dark middle of the page. */
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feature .map { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: calc(100% + var(--edge) + 6vw); margin-bottom: -3rem; }
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .map { order: -1; max-width: 420px; } }
.feature .title { margin-bottom: 0.75rem; }
.features { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.features li { padding-left: 1rem; border-left: 2px solid var(--line-strong); }
.features h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.15rem; }
.features p { color: var(--muted); font-size: 0.95rem; }
.features .stat { margin-top: 0.35rem; color: var(--text); }
.features .stat b { font: 800 1.25rem/1 var(--font-display); color: var(--primary-hi); font-variant-numeric: tabular-nums; }
.feature .btn { margin-top: 1.75rem; }

.map { position: relative; margin: 0; }
.map img { width: 100%; }
.heat-dot {
  position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, var(--nexus) 0%, var(--nexus-mid) 40%, var(--nexus-clear) 70%);
  animation: heat 1.5s var(--ease) forwards;
}
@keyframes heat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

/* ---------- points: the one green-lit band ---------- */
.band {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  background:
    radial-gradient(60% 140% at 15% 50%, rgba(45, 184, 31, 0.24), transparent 70%),
    linear-gradient(rgba(45, 184, 31, 0.06), rgba(45, 184, 31, 0.06)),
    var(--bg-veil);
  border-block: 1px solid rgba(91, 224, 67, 0.22);
}
.band + .section { border-top: 0; }
.band-in { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 3rem); align-items: center; }
.band-in p:not(.band-num) { color: var(--text); }
.band-num { display: flex; align-items: center; gap: 0.75rem; font: 800 clamp(2.75rem, 6vw, 4rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--primary-hi); }
.band-num small { font: 600 0.95rem/1.3 var(--font-body); letter-spacing: 0; color: var(--heading); max-width: 9rem; }
.band-fair { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }

/* ---------- skins: five picks ----------
   >= 1100px one row of five; 641-1099px 3 + 2 centred; <= 640px swipe rail. */
.skins { --cols: 5; --gap: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skin { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.skin-frame { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.skin img { width: 100%; aspect-ratio: 1; object-fit: cover; transform: scale(1.22); transform-origin: 50% 62%; transition: transform 0.4s var(--ease); }
.skin:hover img { transform: scale(1.3); }
.skin-name { margin-top: 0.7rem; font-weight: 600; color: var(--heading); }
.skin-by { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 1100px) {
  .skins { padding-bottom: 2.5rem; }
  .skin:nth-child(even) { translate: 0 2.5rem; }
}
@media (max-width: 1099px) { .skins { --cols: 3; } }
@media (max-width: 640px) {
  .skins {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 0.5rem;
  }
  .skins::-webkit-scrollbar { display: none; }
  .skin { flex-basis: 68%; scroll-snap-align: start; }
}
.section-actions { margin-top: clamp(1.5rem, 3vw, 2rem); display: flex; justify-content: center; }

/* ---------- join ---------- */
.join { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); background: radial-gradient(60% 55% at 50% 50%, rgba(10, 14, 11, 0.6), transparent 75%); }
.join-panel { max-width: 680px; margin-inline: auto; padding: clamp(2rem, 5vw, 3.25rem); text-align: center; display: grid; justify-items: center; }
.join-panel h2 { text-wrap: wrap; }
.join-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin: 1.1rem 0 1.9rem; color: var(--muted); }
.join-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.join-facts b { font: 800 1.2rem/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.join-panel > .muted { margin-top: 1rem; font-size: 0.9rem; }

/* ---------- text pages (legal, rules) ---------- */
.page {
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 5rem)) 0 var(--section-y);
  background: linear-gradient(180deg, rgba(10, 14, 11, 0.7) 0, var(--bg-veil) 18rem);
}
.page-head, .prose { max-width: calc(46rem + 2 * var(--gutter)); }
.page-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.page-head .lead { margin-top: 1rem; color: var(--text); }
.page-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--subtle); }

.prose { color: var(--text); line-height: 1.7; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul { display: grid; gap: 0.6rem; }
.prose ul > li { position: relative; padding-left: 1.25rem; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-hi); }
.prose strong { color: var(--heading); }
.prose a { color: var(--primary-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose code { padding: 0.1em 0.4em; border-radius: 4px; background: rgba(255, 255, 255, 0.07); font-size: 0.9em; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose ol { display: grid; gap: 0.6rem; counter-reset: step; }
.prose ol > li { position: relative; padding-left: 2rem; counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; width: 1.4rem; text-align: center;
  font: 800 0.95rem/1.6 var(--font-display); color: var(--primary-hi); }
.prose li > ul, .prose li > ol { margin: 0.6rem 0 0; }
.prose em { color: var(--heading); }

/* ---------- error pages (404, 500) ---------- */
.err { min-height: min(86svh, 52rem); display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background: linear-gradient(90deg, rgba(10, 14, 11, 0.88), rgba(10, 14, 11, 0.45)); }
.err-code { font: 800 clamp(1rem, 2vw, 1.2rem)/1 var(--font-display); letter-spacing: 0.2em; color: var(--primary-hi); }
.err h1 { margin: 0.75rem 0 1rem; font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; }
.err-line { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); max-width: 46ch; }

/* ---------- footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 3rem; font-size: 0.92rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.footer-brand { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.footer-brand p { color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer-cols div { display: grid; gap: 0.55rem; align-content: start; }
.footer-cols h2 { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.4rem; }
.footer-cols a { color: var(--muted); transition: color 0.15s; }
.footer-cols a:hover { color: var(--primary-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-block: 1.5rem; color: var(--subtle); font-size: 0.82rem;
  /* Hairline only as wide as the content, not the padded wrap. */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
@media (max-width: 760px) {
  .footer-in { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 0.9s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: 0.06s; }
  .hero-in > :nth-child(3) { animation-delay: 0.12s; }
  .hero-in > :nth-child(4) { animation-delay: 0.18s; }
  .hero-in > :nth-child(5) { animation-delay: 0.24s; }
  .facts { animation: rise 0.9s 0.25s var(--ease) both; }

  /* Scroll-driven drift where supported. Position only — opacity stays at
     100 %, so nothing is ever hidden (previews, print, anchor jumps). */
  @supports (animation-timeline: view()) {
    .title, .reasons li, .server, .feature, .skin, .join-panel {
      animation: rise-soft linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .heat-dot { display: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(18px); } to { transform: none; } }
