/* Fryva site. Static pages, one first-party script (main.js), no third-party requests. */

:root {
  --bg: #050609;
  --bg-2: #0a0c12;
  --text: #f3f5f8;
  --muted: #9aa1ad;
  --faint: #6b7280;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(11, 13, 20, 0.74);
  --scrim: 5, 6, 9;
  --c0: #3b4ce0;
  --c1: #1e9bd7;
  --c2: #20bf9b;
  --red: #ff5468;
  --link: #6fc3f0;
  --grad: linear-gradient(100deg, #5867ff 0%, #2bb0ee 50%, #2fd6ae 100%);
  --btn-bg: #f3f5f8;
  --btn-fg: #05060a;
  --nav: rgba(5, 6, 9, 0.58);
  --grain: 0.075;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --gutter: clamp(16px, 5vw, 64px);
  /* Headline glass: top and bottom of the fill, the rim light, the glow under the letters. */
  --glass-top: 244, 247, 255; --glass-bottom: 176, 194, 232; --glass-a: 0.8; --glass-b: 0.44;
  --glass-rim: 255, 255, 255; --glass-rim-a: 0.14; --glass-glow: 88, 120, 255; --glass-sheen: 0.3;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f9;
    --bg-2: #eceef4;
    --text: #0b0d14;
    --muted: #4c5363;
    --faint: #6a7080;
    --line: rgba(10, 14, 30, 0.1);
    --line-2: rgba(10, 14, 30, 0.18);
    --card: rgba(255, 255, 255, 0.78);
    --scrim: 244, 245, 249;
    --red: #d6243b;
    --link: #1259b8;
    --grad: linear-gradient(100deg, #2f3fd0 0%, #137fb8 50%, #0f8f73 100%);
    --btn-bg: #0b0d14;
    --btn-fg: #ffffff;
    --nav: rgba(244, 245, 249, 0.66);
    --grain: 0.05;
    --glass-top: 18, 22, 44; --glass-bottom: 70, 84, 130; --glass-a: 0.86; --glass-b: 0.56;
    --glass-rim: 10, 14, 30; --glass-rim-a: 0.1; --glass-glow: 60, 90, 200; --glass-sheen: 0.22;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
::selection { background: rgba(30, 155, 215, 0.35); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Background layers: the mesh canvas, a vignette for text contrast, and film grain. */
.net {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.net.on { opacity: 1; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(var(--scrim), 0.7) 100%),
    linear-gradient(to bottom, rgba(var(--scrim), 0.55), transparent 18%, transparent 80%, rgba(var(--scrim), 0.6));
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  overflow: hidden;
  opacity: var(--grain);
}
.grain::before {
  content: ""; position: absolute; inset: -100px;
  background: url("/assets/grain.png") repeat;
  background-size: 160px 160px;
}
.js .grain::before { animation: grain 0.9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  17% { transform: translate3d(-37px, 21px, 0); }
  33% { transform: translate3d(23px, -44px, 0); }
  50% { transform: translate3d(-12px, 63px, 0); }
  67% { transform: translate3d(51px, 9px, 0); }
  83% { transform: translate3d(-58px, -28px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--nav);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--muted); transition: color 0.2s; }
.nav ul a:hover { color: var(--text); text-decoration: none; }
.lang {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
}
.lang a { color: var(--muted); padding: 4px 9px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.lang a:hover { color: var(--text); text-decoration: none; }
/* The current language is a small glass lozenge sitting in the rail, not a white fill. */
.lang a[aria-current="page"] {
  color: var(--text);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 60%, rgba(120, 190, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
}
@media (prefers-color-scheme: light) {
  .lang a[aria-current="page"] {
    background:
      radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.8), transparent 60%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18) 60%, rgba(120, 160, 255, 0.14));
    box-shadow: inset 0 0 0 1px rgba(10, 14, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(10, 14, 30, 0.1);
  }
}
.nav-right { display: flex; align-items: center; gap: 26px; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Layout */
main { position: relative; z-index: 3; overflow-x: hidden; overflow-x: clip; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
section { position: relative; padding: clamp(96px, 14vh, 160px) 0; }
.stage { min-height: 100vh; display: flex; align-items: center; }
.stage > .wrap { width: 100%; }
.copy { max-width: 620px; position: relative; }
.copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -80px -140px -80px -50vw;
  background: radial-gradient(closest-side, rgba(var(--scrim), 0.82), rgba(var(--scrim), 0.55) 55%, transparent);
}
.copy.right { margin-left: auto; }
.copy.right::before { inset: -80px -50vw -80px -140px; }

/* Type */
.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 24px;
}
.label b { color: var(--text); font-weight: 500; }
.label::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-2); }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 {
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 0.98; letter-spacing: -0.045em; word-spacing: 0.05em;
  margin: 0 0 clamp(24px, 4vh, 40px);
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 4.3vw, 62px);
  line-height: 1.04; letter-spacing: -0.04em; word-spacing: 0.05em;
  margin: 0 0 28px;
  text-wrap: balance;
}
/* Liquid-glass headlines: a translucent fill that is lighter at the top, a thin rim, a soft glow and
   a sheen that follows the cursor (motion.js moves --sx/--sy). Deliberately quiet: the text must
   still read at a glance. */
h1, h2 {
  --sx: 30%; --sy: 0%;
  color: transparent;
  background-image:
    radial-gradient(52% 120% at var(--sx) var(--sy), rgba(255, 255, 255, var(--glass-sheen)), transparent 72%),
    linear-gradient(178deg, rgba(var(--glass-top), var(--glass-a)) 0%, rgba(var(--glass-bottom), var(--glass-b)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 0.6px rgba(var(--glass-rim), var(--glass-rim-a));
  filter: drop-shadow(0 1px 0 rgba(var(--glass-rim), 0.07)) drop-shadow(0 14px 34px rgba(var(--glass-glow), 0.15));
}
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.022em; margin: 0 0 10px; }
.lead {
  font-size: clamp(19px, 1.9vw, 25px); line-height: 1.32; letter-spacing: -0.02em;
  color: var(--muted); font-weight: 450; margin: 0 0 32px; max-width: 34em;
  text-wrap: pretty;
}
.lead strong { color: var(--text); font-weight: 600; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 clamp(40px, 8vh, 96px); }
.hero .wrap { width: 100%; }
.hero h1 { max-width: 11ch; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; justify-content: space-between; }
.hero .lead { margin: 0; max-width: 28em; color: var(--text); opacity: 0.86; }
.hero .copy { max-width: none; }
.hero .copy::before { inset: -10vh -40px -6vh -50vw; background: radial-gradient(60% 70% at 30% 60%, rgba(var(--scrim), 0.78), rgba(var(--scrim), 0.35) 60%, transparent); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(var(--scrim), 0.5);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 10px var(--c2); }
.hint {
  display: none;
  position: absolute; right: var(--gutter); top: 96px; margin: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.js .hint { display: block; }
.hint .t { display: none; }
@media (hover: none) { .hint .m { display: none; } .hint .t { display: inline; } }
@media (max-width: 760px) { .hint { top: auto; bottom: 18px; right: auto; left: var(--gutter); } }

/* Buttons */
.cta { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; isolation: isolate;
  /* Glass, not a white slab: a faint fill, a light rim, the page showing through. */
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%, rgba(120, 190, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
@media (prefers-color-scheme: light) {
  .btn {
    background:
      radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15) 60%, rgba(120, 160, 255, 0.12));
    border-color: rgba(10, 14, 30, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(10, 14, 30, 0.1);
  }
}
@media (prefers-reduced-transparency: reduce) { .btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); } }
.btn::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.34); }
.btn:hover::after, .btn:focus-visible::after { opacity: 0.4; }
.btn:active { transform: scale(0.97); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.2s; }
.link:hover { text-decoration: none; border-color: var(--c1); }

/* Cards */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 56px; }
.card {
  position: relative; padding: 30px 28px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .k {
  display: block; margin-bottom: 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.card .k i { font-style: normal; color: var(--c1); margin-right: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card.wide { grid-column: 1 / -1; }
.card.accent { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }

/* Transport groups */
.tgroups { display: grid; gap: 22px; margin: 40px 0 0; }
.tgroup { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; align-items: baseline; }
.tgroup dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tgroup dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(var(--scrim), 0.55);
  font-size: 14px; color: var(--text); letter-spacing: -0.005em;
}
@media (max-width: 560px) { .tgroup { grid-template-columns: 1fr; } }

/* Legend for the network state */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend li::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--c1); box-shadow: 0 0 8px var(--c1); }
.legend li.x::before { background: var(--red); box-shadow: none; opacity: 0.8; }
.legend li.l::before { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1px solid var(--c2); box-shadow: 0 0 8px var(--c2); }

/* Features */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.feat { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.feat:last-child { border-right: 0; }
.feat b { display: block; font-size: clamp(48px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.05em; margin-bottom: 18px; font-weight: 700; }
.feat h3 { font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feats-wrap { position: relative; }
.feats-wrap::before { content: ""; position: absolute; z-index: -1; inset: -60px -10vw; background: radial-gradient(closest-side, rgba(var(--scrim), 0.85), rgba(var(--scrim), 0.6) 60%, transparent); pointer-events: none; }
@media (max-width: 820px) { .feat { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 28px; } }

/* Platforms */
.plats { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plats li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.plats .n { font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.03em; }
.plats .u { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-align: right; }
.core-line { margin: 26px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.core-line b { color: var(--text); font-weight: 500; }

/* Final call */
.final { text-align: center; }
.final .copy { margin: 0 auto; max-width: 760px; }
.final .copy::before { inset: -120px -30vw; background: radial-gradient(closest-side, rgba(var(--scrim), 0.85), rgba(var(--scrim), 0.5) 60%, transparent); }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }
.final h2 { font-size: clamp(34px, 5.4vw, 80px); }

/* Footer */
footer { position: relative; z-index: 3; border-top: 1px solid var(--line); background: rgba(var(--scrim), 0.88); padding: 40px 0 80px; font-size: 13px; color: var(--muted); }
footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr auto; align-items: end; }
footer p { margin: 0 0 8px; max-width: 640px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--text); }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Simulation HUD (decorative; the page text carries the meaning). */
.hud {
  display: none;
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 10;
  align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.js .hud { display: flex; }
.hud .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 10px var(--c2); transition: background 0.6s, box-shadow 0.6s; }
.hud[data-state="outage"] .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.hud[data-state="offline"] .dot { background: var(--c1); box-shadow: 0 0 10px var(--c1); }
.hud .sep { opacity: 0.4; }
.hud .note { color: var(--faint); }
@media (max-width: 760px) { .hud { display: none !important; } }

/* Reveal on scroll, only when the script runs. */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (max-width: 760px) {
  .copy::before, .copy.right::before { inset: -60px -40px; background: radial-gradient(closest-side, rgba(var(--scrim), 0.86), rgba(var(--scrim), 0.62) 65%, transparent); }
  .stage { min-height: auto; }
  .status { font-size: 10px; letter-spacing: 0.04em; }
  .hero { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .grain::before { animation: none; }
  .js .reveal { transform: none; transition: opacity 0.4s linear; }
  .net { transition: none; }
  .btn, .card, .btn .arr { transition: none; }
}

/* Language switcher: five items must fit a 375px nav */
@media (max-width: 420px) {
  .nav-right { gap: 0; }
  .lang { letter-spacing: 0.02em; }
  .lang a { padding: 4px 6px; }
}

/* Chinese (Simplified): CJK font stack, no negative tracking, looser leading, smaller display sizes */
:lang(zh) body, body:lang(zh) {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
:lang(zh) body { line-height: 1.6; letter-spacing: 0; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .lead, :lang(zh) .card p, :lang(zh) .feat b,
:lang(zh) .plats .n, :lang(zh) .brand, :lang(zh) .btn, :lang(zh) .chip { letter-spacing: 0; }
:lang(zh) h1 { font-size: clamp(36px, 5.6vw, 84px); line-height: 1.1; word-spacing: 0; }
:lang(zh) h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.16; word-spacing: 0; }
:lang(zh) h3 { line-height: 1.35; }
:lang(zh) .lead { line-height: 1.6; }
:lang(zh) .card p { line-height: 1.7; }
:lang(zh) .label, :lang(zh) .status, :lang(zh) .hint, :lang(zh) .legend, :lang(zh) .tgroup dt, :lang(zh) .card .k, :lang(zh) .hud {
  letter-spacing: 0.04em; text-transform: none;
}

/* Download rows */
.dl { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dl li { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.dl .n { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.03em; }
.dl .u { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.dl .btn { padding: 12px 20px; font-size: 15px; white-space: nowrap; }
.btn.off { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); font-weight: 500; cursor: default; pointer-events: none; }
.tag {
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
@media (max-width: 520px) { .dl li { grid-template-columns: 1fr; } .dl .btn, .dl .tag { justify-self: start; } }

/* Motion: motion.js drives scroll paging, parallax and the pointer response through the individual
   `translate`/`rotate` properties, so they never fight `transform` (reveal, hover). */
html.paged { scroll-behavior: auto; }
.js [data-fx] { will-change: translate, rotate; }
@media (prefers-reduced-motion: reduce) {
  h1, h2 { filter: none; }
}

/* Back to top: a nearly clear glass key that appears once the page is scrolled, with the app icon's node
   arrow on it. */
.totop {
  position: fixed; right: var(--gutter); bottom: 60px; z-index: 20;
  display: grid; place-items: center; width: 58px; height: 58px; padding: 0; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.07), transparent 50%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0) 55%, rgba(120, 190, 255, 0.02));
  -webkit-backdrop-filter: blur(0.7px) saturate(130%); backdrop-filter: blur(0.7px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.16);
  color: var(--text); cursor: pointer;
  opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.55s var(--ease), scale 0.15s ease-out, border-color 0.25s;
}
.totop.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { border-color: rgba(255, 255, 255, 0.34); }
.totop:active { scale: 0.94; }
.totop:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.totop svg { display: block; overflow: visible; }
.totop .nl line { stroke: rgba(170, 236, 255, 0.55); stroke-width: 0.6; stroke-linecap: round; }
.totop .nh polygon, .totop polygon.nh { fill: url(#nodeFill); fill-opacity: 0.88; stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.35; }
.totop .nd circle { fill: #ffffff; fill-opacity: 0.95; }
.totop .ns circle { fill: #bff3ff; fill-opacity: 0.6; }
.js .totop .nd circle { animation: node-twinkle 3.2s ease-in-out infinite; }
.js .totop .nd circle:nth-child(2n) { animation-delay: -1.1s; }
.js .totop .nd circle:nth-child(3n) { animation-delay: -2.2s; }
.js .totop .ns circle { animation: node-drift 4.4s ease-in-out infinite; }
.js .totop .ns circle:nth-child(2n) { animation-delay: -2s; }
.totop:hover .nl line { stroke: rgba(200, 245, 255, 0.85); }
@keyframes node-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes node-drift { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
@media (max-width: 760px) { .totop { bottom: 20px; } }
@media (prefers-color-scheme: light) {
  .totop {
    border-color: rgba(10, 14, 30, 0.14);
    background:
      radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.4), transparent 50%),
      linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%, rgba(120, 160, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(10, 14, 30, 0.1);
  }
  .totop .nl line { stroke: rgba(30, 90, 190, 0.6); }
  .totop .nd circle { fill: #1c4fb0; }
  .totop .ns circle { fill: #2f6fd8; }
  .totop polygon.nh { fill: #2f8fdf; fill-opacity: 0.85; stroke: rgba(255, 255, 255, 0.7); }
}
@media (prefers-reduced-transparency: reduce) {
  .totop { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
}
@media (prefers-reduced-motion: reduce) {
  .totop { transition: opacity 0.3s linear; translate: none; }
  .js .totop .nd circle, .js .totop .ns circle { animation: none; }
}
@media (hover: none) { h1, h2 { filter: none; } }
