/* ==========================================================================
   Port Solara: site styles (index, invest, privacy, cookies).
   2026-12-04 professional redesign: no in-game imagery, typographic layout,
   hairline borders, one accent blue. Palette from the app icons.
   Variable names are kept from the earlier version (--pink = accent blue).
   ========================================================================== */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../assets/fonts/Oswald-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../assets/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #040b1d;          /* deep navy */
  --bg-alt: #060f25;
  --surface: #0a1631;
  --surface-2: #0f1e40;
  --text: #f4f1ea;        /* 17:1 on --bg */
  --muted: #aab6cc;       /* 9.6:1 */
  --faint: #7f8dab;       /* 5.9:1 */
  --pink: #2a6fdb;        /* accent blue (fills); white text 4.8:1 */
  --pink-soft: #8ec3ff;   /* accent text, 10.6:1 */
  --sun: #fbefda;         /* cream: focus ring, small highlights */
  --line: rgba(244, 241, 234, .08);
  --line-strong: rgba(244, 241, 234, .16);

  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;   /* labels only */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
  --radius: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16.5px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--pink); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; border-radius: 8px; background: var(--pink); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* The neon PNG has a lot of empty canvas; this box crops it to the artwork. */
.neon-crop { display: block; position: relative; overflow: hidden; aspect-ratio: 1538 / 470; }
.neon-crop img { position: absolute; width: 141.222%; max-width: none; height: auto; left: -22.237%; top: -26.17%; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 500 12.5px/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--pink-soft);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.section-title {
  font-weight: 600; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance;
}
.section-lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 56ch; text-wrap: pretty; }
.note { margin-top: 24px; font-size: 13.5px; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary {
  background: linear-gradient(180deg, #3574e0 0%, #2263d2 100%); color: #fff; border-color: rgba(142, 195, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 28px -10px rgba(42, 111, 219, .85), 0 0 0 1px rgba(4, 11, 29, .4);
  transition: box-shadow .3s, transform .3s var(--ease), filter .2s;
}
.btn-primary::after { /* light sweep on hover */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 16px 36px -12px rgba(42, 111, 219, 1), 0 0 0 1px rgba(142, 195, 255, .25); }
.btn-primary:hover::after { left: 120%; }
.btn-primary:active { transform: none; filter: brightness(.95); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(244, 241, 234, .45); background: rgba(244, 241, 234, .04); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--pink-soft); font-weight: 600; text-decoration: none; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--text); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(4, 11, 29, .85); border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-inner { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; }
.brand { width: 128px; flex: none; border-radius: 6px; transition: opacity .3s; }
.js .site-header:not(.is-scrolled) .brand:not(:focus-visible) { opacity: 0; pointer-events: none; }
.header-nav { display: flex; gap: 32px; margin-left: auto; }
.header-nav a { padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--text); }

.icon-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--text); transition: background-color .2s, color .2s; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: rgba(244, 241, 234, .07); color: #8ea1f2; }
.header-nav + .icon-btn { margin-left: 8px; }

/* ---------- Statement band (invest) ---------- */
.statement { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/coast-lines.svg") right center / auto 140% no-repeat; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.statement-text { font-weight: 600; font-size: clamp(36px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; }
.statement-text span { color: var(--pink-soft); }
.statement-sub { margin-top: 28px; max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); }
.principle { position: relative; overflow: hidden; padding-top: 72px; }
.principle-num { position: absolute; top: 18px; right: 22px; font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(142, 195, 255, .35); }

/* ---------- Support page ---------- */
.hero-support { min-height: auto; padding-bottom: clamp(64px, 8vw, 110px); }
.hero-support .hero-sub { margin-top: 0; max-width: 14ch; font-size: clamp(40px, 5.6vw, 76px); }
.hero-support .kicker { margin-bottom: 28px; }
.hero.hero-support::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/coast-lines.svg") right -6% center / auto 130% no-repeat; opacity: .4; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); }
.goal-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(42, 111, 219, .22), transparent 60%), var(--surface); }
.goal-copy .section-lead { margin-top: 18px; }
.goal-meter { padding: 28px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(4, 11, 29, .6); }
.currency-switch { display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(4, 11, 29, .5); }
.currency-switch button { padding: 7px 14px; border: 0; border-radius: 7px; background: none; font-size: 13.5px; font-weight: 600; color: var(--faint); cursor: pointer; transition: background-color .2s, color .2s; }
.currency-switch button:hover { color: var(--text); }
.currency-switch button[aria-checked="true"] { background: var(--pink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.goal-numbers { display: grid; gap: 4px; }
.goal-numbers strong { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.goal-numbers span { color: var(--faint); font-size: 14px; }
.goal-bar { position: relative; height: 10px; margin: 20px 0 24px; border-radius: 99px; background: rgba(244, 241, 234, .08); overflow: hidden; }
.goal-bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--pink-soft)); transition: width 1.2s var(--ease); }
.goal-btn { width: 100%; }
.goal-btn.is-disabled { background: rgba(244, 241, 234, .08); border-color: var(--line-strong); box-shadow: none; color: var(--muted); cursor: default; pointer-events: none; }
.goal-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); counter-reset: rule; }
.rules li { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); counter-increment: rule; }
.rules li::before { content: "0" counter(rule); display: block; margin-bottom: 14px; font: 500 12px/1 var(--font-display); letter-spacing: .22em; color: var(--pink-soft); }
.rules h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rules p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.faq { max-width: 860px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--pink-soft); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }
.faq a { color: var(--pink-soft); }
.hero-sub .accent { color: var(--pink-soft); }
.support-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.support-stats li { display: grid; gap: 2px; min-width: 150px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10, 22, 49, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.support-stats strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.support-stats span { font-size: 13px; color: var(--faint); }
.goal-step { margin-left: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(42, 111, 219, .18); color: var(--pink-soft); letter-spacing: .14em; }
.goal-bar span { overflow: hidden; }
.goal-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 2.6s ease-in-out infinite; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }

/* Terms dialog before Ko-fi */
.terms-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.terms-dialog::backdrop { background: rgba(2, 6, 18, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.terms-inner { position: relative; padding: clamp(24px, 4vw, 40px); }
.terms-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.terms-close:hover { background: rgba(244, 241, 234, .07); color: var(--text); }
.terms-dialog h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.terms-list { display: grid; gap: 12px; margin-top: 20px; }
.terms-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.terms-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-soft); }
.terms-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(4, 11, 29, .5); cursor: pointer; font-size: 15px; }
.terms-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); }
.terms-check a { color: var(--pink-soft); }
.terms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.terms-actions .is-disabled { background: rgba(244, 241, 234, .08); border-color: var(--line-strong); box-shadow: none; color: var(--faint); pointer-events: none; }

/* Route: goals as stops on a dashed sea route */
.route { position: relative; padding-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.route::before { content: ""; position: absolute; left: 48px; right: 48px; top: 29px; border-top: 2px dashed rgba(142, 195, 255, .3); }
.stop { position: relative; padding: 46px 26px 28px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-alt)); transition: border-color .25s, transform .3s var(--ease); }
.stop:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stop-pin { position: absolute; top: -25px; left: 24px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); color: var(--faint); }
.stop-pin svg { width: 22px; height: 22px; }
.stop-amount { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stop h3 { margin-top: 10px; font-size: 18px; font-weight: 600; }
.stop p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.stop-state { display: inline-flex; margin-top: 18px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--faint); }
.stop.is-current { border-color: rgba(142, 195, 255, .45); box-shadow: 0 24px 60px -30px rgba(42, 111, 219, .8); }
.stop.is-current .stop-pin { border-color: var(--pink); background: var(--pink); color: #fff; box-shadow: 0 0 0 6px rgba(42, 111, 219, .22); }
.stop.is-current .stop-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--pink); animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.stop.is-current .stop-state { border-color: rgba(42, 111, 219, .55); background: rgba(42, 111, 219, .16); color: var(--pink-soft); }
.stop.is-done .stop-pin { border-color: #6fe3a4; color: #6fe3a4; }
.stop.is-done .stop-state { border-color: rgba(111, 227, 164, .4); color: #6fe3a4; }

.free-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse 60% 100% at 0% 100%, rgba(42, 111, 219, .2), transparent 60%), var(--surface); }
.free-panel .section-lead { margin-top: 16px; }
.free-list { display: grid; gap: 10px; }
.free-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 11, 29, .5); transition: border-color .25s, transform .3s var(--ease); }
.free-list li:hover { border-color: rgba(142, 195, 255, .35); transform: translateX(4px); }
.free-list strong { display: block; font-size: 16px; }
.free-list span:not(.icon) { display: block; font-size: 14px; color: var(--faint); }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; }
  .route::before { left: 47px; right: auto; top: 30px; bottom: 28px; border-top: 0; border-left: 2px dashed rgba(142, 195, 255, .3); }
  .free-panel { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .goal-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 900px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
}
.hero::before { /* faint grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 10%, transparent 75%);
  opacity: .7;
}
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}
.hero-art {
  position: absolute; z-index: -1; right: 0; top: 0; width: 64%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-art text { font-family: var(--font-display); font-weight: 500; }
.hero-art .map-label { font-size: 13px; letter-spacing: .32em; }
.hero-art .map-wide { letter-spacing: .9em; }
.hero-art .map-italic { font-family: var(--font-body); font-style: italic; font-size: 13px; letter-spacing: .04em; }
.hero-art .map-num text, .hero-art .map-num { font-family: var(--font-body); font-size: 9.5px; letter-spacing: .04em; }
.hero-art .map-frame text { font-size: 9.5px; letter-spacing: .1em; }
.hero-art .map-marker circle:first-child { transform-origin: center; transform-box: fill-box; animation: ping 3s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.hero::before { display: none; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-soft); box-shadow: 0 0 0 4px rgba(142, 195, 255, .15); }
.hero-title { width: min(100%, 560px); margin-top: 28px; }
.hero-sub { margin-top: 30px; max-width: 14ch; font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.hero-text { margin-top: 20px; max-width: 50ch; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.js .intro { animation: intro .9s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * .08s); }
@keyframes intro { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Facts strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -64px; }
.facts-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 30, 64, .82), rgba(8, 18, 40, .9));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(244, 241, 234, .06);
}
.facts-list li { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 26px; border-left: 1px solid var(--line); transition: background-color .25s; }
.facts-list li:first-child { border-left: 0; }
.facts-list li:hover { background: rgba(142, 195, 255, .04); }
.facts-list li::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), transparent); opacity: 0; transition: opacity .25s; }
.facts-list li:hover::after { opacity: 1; }
.facts-list .icon { width: 42px; height: 42px; background: rgba(42, 111, 219, .12); border-color: rgba(142, 195, 255, .22); }
.fact-label { font: 500 11.5px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.fact-value { margin-top: 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.role { padding: 34px 30px 36px; border-left: 1px solid var(--line); transition: background-color .25s; }
.role:first-child { border-left: 0; }
.role:hover { background: rgba(244, 241, 234, .025); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--pink-soft); }
.icon svg { width: 22px; height: 22px; }
.role h3 { margin-top: 28px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.role p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 56px); }
.feature { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.feature h3 svg { width: 20px; height: 20px; color: var(--pink-soft); flex: none; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- Roadmap ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 36px 24px 0 0; border-top: 1px solid var(--line-strong); counter-increment: step; }
.step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--faint); }
.step.is-now { border-top-color: var(--pink); }
.step.is-now::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0 5px rgba(42, 111, 219, .2); }
.step-num { display: block; font: 500 12px/1 var(--font-display); letter-spacing: .22em; color: var(--faint); }
.step-num::before { content: "0" counter(step); }
.step-head { display: grid; gap: 10px; margin: 14px 0 12px; justify-items: start; }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.step { display: flex; flex-direction: column; }
.step > p:not(.step-goal) { margin-bottom: 18px; }
.step-goal { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; font-weight: 600; color: var(--text); }
.step-goal span { display: block; margin-bottom: 4px; font: 500 11px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; color: var(--faint); }
.pill-now { border-color: rgba(42, 111, 219, .55); background: rgba(42, 111, 219, .14); color: var(--pink-soft); }

/* ---------- Servers ---------- */
.server-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.server-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.server-table th, .server-table td { padding: 18px 24px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.server-table thead th { border-top: 0; padding-block: 14px; font: 500 12px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.server-table tbody th { font-weight: 600; }
.server-table td { color: var(--muted); }
.server-tag { display: inline-block; min-width: 3.4em; margin-right: 14px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-strong); font: 500 12.5px/1.4 var(--font-display); letter-spacing: .12em; text-align: center; color: var(--pink-soft); }
.server-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.server-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.server-status.is-soon { color: var(--faint); }
.server-status.is-online { color: #6fe3a4; }
.server-status.is-offline { color: #ff8a8a; }
.server-status.is-full { color: var(--sun); }

/* ---------- About / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(28px, 3.2vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.card p { color: var(--muted); max-width: 52ch; }
.card .fine { font-size: 13.5px; color: var(--faint); }
.card .text-link { margin-top: auto; padding-top: 12px; }

/* ---------- About: spec sheet + path cards ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.spec { border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 12px/1.6 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.spec dd { font-weight: 600; letter-spacing: -.01em; }
.paths { display: grid; gap: 14px; }
.path-card {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 26px 26px 24px;
  border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  text-decoration: none; overflow: hidden; transition: border-color .25s, transform .3s var(--ease);
}
.path-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(42, 111, 219, .18), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.path-card:hover { border-color: rgba(142, 195, 255, .35); transform: translateY(-2px); }
.path-card:hover::after { opacity: 1; }
.path-card .icon { flex: none; }
.path-body { display: grid; gap: 4px; flex: 1; }
.path-kicker { font: 500 11.5px/1.4 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--pink-soft); }
.path-body strong { font-size: 19px; letter-spacing: -.015em; }
.path-body span:last-child { color: var(--muted); font-size: 15px; }
.path-arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; color: var(--text); transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.path-card:hover .path-arrow { background: var(--pink); border-color: var(--pink); transform: translateX(3px); }
.paths .fine { margin-top: 6px; font-size: 13px; color: var(--faint); max-width: 60ch; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .path-card { align-items: flex-start; padding: 22px 18px; gap: 14px; } .path-arrow { display: none; } .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Join ---------- */
.join { padding: 0 0 var(--section-y); }
.join-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(32px, 6vw, 80px); border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(42, 111, 219, .28), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-alt));
}
.join-panel::before { /* coastline texture from the hero map */
  content: ""; position: absolute; z-index: -1; inset: -10% -14% -10% 38%;
  background: url("../assets/coast-lines.svg") center / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.join-copy .hero-actions { margin-top: 0; }
.join-copy .waitlist-card { margin-top: 36px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; max-width: 460px; }
.join-copy .waitlist-card h3 { display: inline; font-size: 14px; }
.join-copy .waitlist-card h3::after { content: " · "; color: var(--faint); }
.join-copy .waitlist-card .card-sub { display: inline; font-size: 14px; color: var(--faint); }

.discord-card {
  position: relative; padding: 26px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgba(4, 11, 29, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(142, 195, 255, .04) inset;
}
.discord-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.discord-head img { width: 44px; height: 44px; border-radius: 12px; }
.discord-head strong { display: block; font-size: 16px; }
.discord-head span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--faint); }
.discord-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fe3a4; }
.discord-list { display: grid; gap: 6px; margin-top: 16px; }
.discord-list li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; transition: background-color .2s; }
.discord-list li:hover { background: rgba(244, 241, 234, .04); }
.discord-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(42, 111, 219, .14); color: var(--pink-soft); font-weight: 600; font-size: 17px; }
.discord-ico svg { width: 18px; height: 18px; }
.discord-list strong { display: block; font-size: 15px; }
.discord-list span:not(.discord-ico) { display: block; font-size: 13.5px; color: var(--faint); }
.discord-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); text-decoration: none; transition: border-color .2s, color .2s; }
.discord-cta svg { width: 16px; height: 16px; }
.discord-cta:hover { color: var(--text); border-color: var(--pink-soft); }
.join-copy p { margin: 18px 0 30px; max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.waitlist-count { margin-top: 24px; color: var(--muted); }
.waitlist-count strong { font-size: 24px; margin-right: 6px; }

.waitlist-card { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: rgba(4, 11, 29, .6); border: 1px solid var(--line-strong); }
.waitlist-card h3 { font-size: 19px; font-weight: 600; }
.card-sub { margin-top: 6px; color: var(--muted); }
.waitlist-form { margin-top: 22px; }
.waitlist-form[hidden] { display: none; }
.waitlist-form > label, .chips legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.waitlist-form input[type="email"] { width: 100%; height: 50px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.waitlist-form input[type="email"]::placeholder { color: var(--faint); }
.waitlist-form input[type="email"]:focus-visible { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(42, 111, 219, .3); }
.waitlist-form input[aria-invalid="true"] { border-color: #ff8a8a; }
.field-error { margin-top: 8px; font-size: 14px; color: #ff9d9d; }
.field-error:empty { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; padding: 0; border: 0; }
.chips legend { width: 100%; padding: 0; }
.optional { font-weight: 400; color: var(--faint); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; transition: background-color .2s, border-color .2s; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: rgba(42, 111, 219, .15); border-color: var(--pink); }
.chip input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-submit { width: 100%; }
.waitlist-submit[disabled] { opacity: .7; cursor: progress; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
.form-note a { color: var(--muted); }
.waitlist-thanks { margin-top: 18px; }
.waitlist-thanks:focus { outline: none; }
.thanks-text { margin: 8px 0 20px; color: var(--muted); }

/* ---------- Investor page extras ---------- */
.points { display: grid; gap: 18px; margin-top: 8px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--pink-soft); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.contact-panel .section-lead + .section-lead { margin-top: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #030817; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: block; width: 140px; border-radius: 6px; }
.footer-about p { margin-top: 18px; max-width: 34ch; font-size: 14px; color: var(--faint); }
.footer-col h2 { font: 500 12px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { display: grid; gap: 10px; margin-top: 18px; }
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------- Reveal on scroll (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * .07s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; }
  .step { padding: 0 0 32px 32px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -5px; top: 2px; }
  .step.is-now { border-left-color: var(--pink); }
  .step-head { margin-top: 10px; }
  .step p { max-width: 70ch; font-size: 15.5px; }
  .header-nav { gap: 22px; }
}
@media (max-width: 860px) {
  .header-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .section-head.split, .join-panel, .cards { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li:nth-child(3) { border-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { margin-top: -40px; }
  .hero { align-items: flex-start; padding-bottom: 300px; }
  .hero-art { opacity: .5; top: auto; bottom: 0; width: 100%; height: 62%; -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent 100%); mask-image: linear-gradient(0deg, #000 40%, transparent 100%); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .roles, .features, .principles { grid-template-columns: 1fr; }
  .role { border-left: 0; }
  .role + .role { border-top: 1px solid var(--line); }
  .facts-list li { padding: 18px 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .server-table { min-width: 0; }
  .server-table th, .server-table td { padding: 14px 12px; }
  .server-table tbody th { white-space: nowrap; }
  .server-table th:nth-child(2), .server-table td:nth-child(2) { display: none; } /* the SWE/ENG tag already says the language */
  .server-tag { margin-right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .intro, .js .reveal { opacity: 1; transform: none; }
}
