/* ============================================================
   SoloDeck — marketing site
   Design system mirrors the app's native palette (src/theme/themes.ts)
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* App palette — Dark (default) */
  --bg: rgb(10 14 13);
  --bg-2: rgb(8 11 10);
  --surface: rgb(18 23 21);
  --surface-2: rgb(26 33 30);
  --border: rgb(40 51 48);
  --border-soft: rgb(40 51 48 / 0.55);
  --text: rgb(232 239 236);
  --muted: rgb(138 154 148);
  --accent: rgb(45 212 167);
  --accent-soft: rgb(45 212 167 / 0.14);
  --accent-contrast: rgb(4 17 13);
  --live: rgb(52 211 153);
  --offline: rgb(248 113 113);
  --premium: rgb(245 196 81);

  --coin-btc: #f7931a;
  --coin-bch: #8bc74b;
  --coin-dgb: #3399ff;

  --glass: rgb(18 23 21 / 0.6);
  --glass-brd: rgb(255 255 255 / 0.06);
  --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.8);
  --shadow-sm: 0 10px 30px -18px rgb(0 0 0 / 0.7);
  --glow: 0 0 40px -6px rgb(45 212 167 / 0.45);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  /* Soft tinted off-white — pure white (#fff) glares on a full-screen page,
     so the base is a gentle sage-grey and cards sit just above it (not #fff). */
  --bg: rgb(228 234 231);
  --bg-2: rgb(219 226 223);
  --surface: rgb(242 246 244);
  --surface-2: rgb(233 239 236);
  --border: rgb(202 214 209);
  --border-soft: rgb(202 214 209 / 0.7);
  --text: rgb(14 23 20);
  --muted: rgb(91 107 101);
  --accent: rgb(15 157 119);
  --accent-soft: rgb(15 157 119 / 0.12);
  --accent-contrast: rgb(255 255 255);
  --live: rgb(15 157 119);
  --offline: rgb(220 38 38);
  --premium: rgb(192 138 30);
  --glass: rgb(243 247 245 / 0.82);
  --glass-brd: rgb(14 23 20 / 0.06);
  --shadow: 0 24px 60px -30px rgb(20 40 35 / 0.32);
  --shadow-sm: 0 12px 30px -20px rgb(20 40 35 / 0.3);
  --glow: 0 0 36px -8px rgb(15 157 119 / 0.4);
}

/* ---- Reset / base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

/* Section anchor targets clear the 68px sticky header instead of hiding under it. */
[id]:not(.site-header) { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ============================================================
   Ambient background
   ============================================================ */
.bg-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgb(45 212 167 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(45 212 167 / 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  animation: gridDrift 40s linear infinite;
}
[data-theme="light"] .bg-grid {
  /* darker slate-green lines so the grid actually reads on the light base */
  background-image:
    linear-gradient(rgb(18 74 60 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(18 74 60 / 0.08) 1px, transparent 1px);
}
@keyframes gridDrift { to { background-position: 54px 54px; } }

.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-glow--1 {
  width: 620px; height: 620px; top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgb(45 212 167 / 0.28), transparent 65%);
  animation: glowPulse 12s ease-in-out infinite;
}
.bg-glow--2 {
  width: 480px; height: 480px; bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgb(51 153 255 / 0.16), transparent 65%);
  animation: glowPulse 16s ease-in-out infinite reverse;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.65; } }

.bg-scan {
  position: absolute; left: 0; right: 0; height: 180px;
  background: linear-gradient(180deg, transparent, rgb(45 212 167 / 0.05), transparent);
  animation: scanMove 9s linear infinite;
}
@keyframes scanMove { 0% { top: -180px; } 100% { top: 110%; } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-mark { filter: drop-shadow(0 0 8px rgb(45 212 167 / 0.4)); }
.brand-icon {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--glass-brd);
  box-shadow: 0 0 14px -2px rgb(45 212 167 / 0.45);
}
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-accent, .accent-text { color: var(--accent); }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font-size: 0.93rem; color: var(--muted); font-weight: 450;
  position: relative; padding: 4px 0; transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: 1.2rem; }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border-radius: 12px; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn--primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px -4px rgb(45 212 167 / 0.6); }
.btn--ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
/* Pre-launch: the app isn't downloadable yet, so the download CTAs render as a
   non-interactive "coming soon" state. Swap back to a real App Store link on launch. */
.btn--soon {
  background: var(--surface); color: var(--muted); border-color: var(--border);
  box-shadow: none; cursor: default; pointer-events: none;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; width: 40px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.8rem 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
/* `display: flex` above would defeat the [hidden] attribute — keep it closed
   until the hamburger opens it, and never show it on desktop at all. */
.mobile-nav[hidden] { display: none; }
@media (min-width: 981px) { .mobile-nav { display: none; } }
.mobile-nav a { padding: 0.7rem 0.4rem; color: var(--muted); font-weight: 500; border-radius: 8px; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ============================================================
   Shared section pieces
   ============================================================ */
section { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; }

.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.85rem); max-width: 16ch; }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 52ch; margin-top: 1rem; }

.block-head { max-width: 640px; margin-bottom: 3rem; }
.block-head--center { margin-inline: auto; text-align: center; }
.block-head--center .section-title, .block-head--center .section-lead { max-width: none; margin-inline: auto; }

.dot-live {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 rgb(52 211 153 / 0.6);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0.55); }
  70% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); }
}

.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-family: var(--font-mono);
}
.chip--live { color: var(--live); border-color: rgb(52 211 153 / 0.35); background: rgb(52 211 153 / 0.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Coin badges
   ============================================================ */
[data-coin] {
  display: grid; place-items: center; font-weight: 700;
  width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem;
}
[data-coin="btc"] { color: var(--coin-btc); background: rgb(247 147 26 / 0.12); border: 1px solid rgb(247 147 26 / 0.3); }
[data-coin="bch"] { color: var(--coin-bch); background: rgb(139 199 75 / 0.12); border: 1px solid rgb(139 199 75 / 0.3); }
[data-coin="dgb"] { color: var(--coin-dgb); background: rgb(51 153 255 / 0.12); border: 1px solid rgb(51 153 255 / 0.3); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
  padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin-top: 1.4rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.hero-platforms { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; font-size: 0.86rem; }
.platform { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.platform--live { color: var(--text); }
.platform--soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); display: inline-block; }

/* ---- Hero device stage ---- */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 540px; }
.stage-rings {
  position: absolute; inset: 0; margin: auto;
  width: min(460px, 86vw); height: min(460px, 86vw); max-width: 100%;
  border-radius: 50%; border: 1px solid var(--border-soft);
  box-shadow: 0 0 0 60px rgb(45 212 167 / 0.03), 0 0 0 120px rgb(45 212 167 / 0.02);
  background: radial-gradient(circle, rgb(45 212 167 / 0.08), transparent 60%);
}

/* Floating panels */
.float-panel {
  position: absolute; z-index: 3; padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
}
.float-panel--health { top: 4%; left: -4%; width: 200px; animation: floatA 7s ease-in-out infinite; }
.float-panel--alert { bottom: 8%; right: -6%; width: 215px; display: flex; gap: 0.7rem; align-items: center; animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

.fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.fp-title { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.fp-bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; }
.fp-bars span {
  flex: 1; height: var(--h); min-height: 3px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(var(--accent), rgb(45 212 167 / 0.4));
}
.fp-bars span.is-off { background: rgb(248 113 113 / 0.5); height: 5px; }
.alert-icon { color: var(--premium); font-size: 1.3rem; }
.fp-alert-title { font-size: 0.82rem; font-weight: 600; }
.fp-alert-sub { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }

/* ============================================================
   Device frame — wraps REAL app screenshots (shots/*.png)
   ============================================================ */
.device {
  position: relative; z-index: 2; margin: 0;
  width: 290px; padding: 10px 10px 12px;
  background: linear-gradient(160deg, #1c2320, #0a0e0d);
  border-radius: 44px; border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(0 0 0 / 0.55);
}
.device-screen {
  position: relative; border-radius: 34px; overflow: hidden;
  /* matches the app's dark background so the status strip blends with the
     screenshot — kept fixed (screenshots are always dark) regardless of site theme */
  background: #0a0e0d; border: 1px solid rgb(255 255 255 / 0.05);
}
.device-bar { height: 40px; background: #0a0e0d; }
.device img { width: 100%; display: block; }
.device-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; background: #05080a; border-radius: 999px; z-index: 5;
}
.device--sm .device-bar { height: 34px; }
.device--sm .device-island { width: 78px; height: 21px; top: 8px; }
.device figcaption {
  position: absolute; left: 0; right: 0; bottom: -2.2rem; text-align: center;
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
}
.device--hero { animation: deviceFloat 9s ease-in-out infinite; }
@keyframes deviceFloat { 0%, 100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-16px) rotate(0.4deg); } }

/* New floating panel content (network odds) */
.fp-odds { display: flex; gap: 1.1rem; }
.fp-odds div { display: flex; flex-direction: column; gap: 0.1rem; }
.fpo-k { font-size: 0.66rem; color: var(--muted); }
.fpo-v { font-size: 0.95rem; font-weight: 600; color: var(--accent); }

/* ============================================================
   Phone frame (shared) — legacy HTML mockups (unused after real shots)
   ============================================================ */
.phone { position: relative; z-index: 2; }
.phone-frame {
  position: relative; width: 290px; padding: 11px;
  background: linear-gradient(160deg, #1c2320, #0c100e);
  border-radius: 42px; border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(0 0 0 / 0.5);
}
.phone--hero .phone-frame { animation: deviceFloat 9s ease-in-out infinite; }
@keyframes deviceFloat { 0%, 100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-16px) rotate(0.4deg); } }

.phone-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #05080a; border-radius: 999px; z-index: 5;
}
.phone-screen {
  position: relative; border-radius: 32px; overflow: hidden;
  background: var(--bg); min-height: 540px;
  display: flex; flex-direction: column;
  border: 1px solid rgb(255 255 255 / 0.04);
}

.app-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.3rem 0.3rem; font-size: 0.72rem; font-weight: 600;
  font-family: var(--font-mono); color: var(--text);
}
.sb-right { display: inline-flex; align-items: center; gap: 5px; }
.sb-bars, .sb-wifi { width: 15px; height: 11px; background: currentColor; border-radius: 2px; opacity: 0.85; }
.sb-wifi { -webkit-mask: radial-gradient(circle at 50% 100%, #000 38%, transparent 40%); mask: radial-gradient(circle at 50% 100%, #000 38%, transparent 40%); }
.sb-batt { font-size: 0.64rem; padding: 1px 4px; border: 1px solid currentColor; border-radius: 3px; opacity: 0.8; }

.app-header {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.08rem; padding: 0.5rem 0 0.7rem; border-bottom: 1px solid var(--border-soft);
}
.app-header.sm { font-size: 0.98rem; padding-top: 0.9rem; }

.app-tabline { display: flex; gap: 1.1rem; padding: 0.75rem 1.1rem 0.4rem; }
.app-tabline .tab { font-size: 0.78rem; color: var(--muted); font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.app-tabline .tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.app-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.6rem 0.9rem 1rem; flex: 1; }
.app-body.sm { padding-top: 0.9rem; gap: 0.55rem; }

.ui-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 0.8rem 0.85rem;
}
.ui-card--lead { background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.ui-card--tight { padding: 0.55rem 0.7rem; display: flex; flex-direction: column; gap: 0.45rem; }
.ui-off { opacity: 0.62; }

.uc-top { display: flex; align-items: center; gap: 0.6rem; }
.uc-title { font-size: 0.84rem; font-weight: 600; }
.uc-sub { font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); }
.uc-top .chip { margin-left: auto; }

.uc-luck { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.85rem; }
.luck-ring {
  --p: 38; position: relative; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background:
    radial-gradient(closest-side, var(--surface) 70%, transparent 71%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
}
.luck-val { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; }
.luck-val small { font-size: 0.6rem; color: var(--muted); }
.luck-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.luck-label { font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.luck-detail { font-size: 0.68rem; color: var(--muted); font-family: var(--font-mono); }

.uc-row { display: flex; align-items: center; justify-content: space-between; }
.uc-k { font-size: 0.74rem; color: var(--muted); }
.uc-v { font-size: 0.92rem; font-weight: 600; }
.uc-v small { font-size: 0.62rem; color: var(--muted); font-weight: 500; }


.wk-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; }
.wk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wk-dot.is-live { background: var(--live); box-shadow: 0 0 6px var(--live); }
.wk-dot.is-off { background: var(--offline); }
.wk-name { font-weight: 500; }
.wk-rate { margin-left: auto; }
.wk-temp { color: var(--muted); width: 34px; text-align: right; }
.is-muted { color: var(--muted); }

.app-tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 0.55rem 0.5rem 0.8rem; border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.app-tabbar .tb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1rem; color: var(--muted); }
.app-tabbar .tb small { font-size: 0.58rem; }
.app-tabbar .tb.is-active { color: var(--accent); }

/* hardware / notif rows in small phones */
.hw-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.hw-row .mono { margin-left: auto; }
.hw-sub { font-size: 0.66rem; color: var(--muted); font-family: var(--font-mono); margin-top: 0.25rem; padding-left: 1rem; }
.celebrate {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-size: 0.8rem; font-weight: 600; color: var(--coin-dgb);
  padding: 0.7rem; border-radius: 12px;
  background: rgb(51 153 255 / 0.1); border: 1px solid rgb(51 153 255 / 0.3);
}
.notif {
  display: flex; gap: 0.6rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 0.6rem 0.7rem;
}
.notif-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); font-size: 0.8rem; flex-shrink: 0; }
.notif-i.gold { color: var(--premium); }
.notif-i.red { color: var(--offline); }
.notif b { font-size: 0.78rem; display: block; }
.notif small { font-size: 0.66rem; color: var(--muted); font-family: var(--font-mono); }

/* ============================================================
   3. CAPABILITIES (bento)
   ============================================================ */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  grid-auto-rows: 1fr;
}
.bento-cell {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento-cell:hover { transform: translateY(-4px); border-color: rgb(45 212 167 / 0.5); }
.bento-cell::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.bento-cell:hover::after { opacity: 1; }
.bento-cell--wide { grid-column: span 2; }
.bento-cell h3 { font-size: 1.2rem; margin-bottom: 0.6rem; position: relative; }
.bento-cell p { color: var(--muted); font-size: 0.95rem; position: relative; }

.cap-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  padding: 0.25rem 0.6rem; border: 1px solid rgb(45 212 167 / 0.3);
  border-radius: 999px; background: var(--accent-soft); margin-bottom: 1rem;
}
.cap-ico {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; background: var(--accent-soft);
  border: 1px solid rgb(45 212 167 / 0.2); margin-bottom: 1.1rem;
}

.cap-control { display: flex; flex-direction: column; }
.cap-control-ui { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.3rem; position: relative; }
.mode-pill {
  font-family: var(--font-mono); font-size: 0.74rem; padding: 0.4rem 0.8rem;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
  background: var(--surface-2);
}
.mode-pill.is-active { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.mode-pill--lvl.is-active { background: var(--premium); border-color: var(--premium); }
.mode-sep { width: 1px; align-self: stretch; background: var(--border); margin: 0 0.2rem; }

.alert-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; position: relative; }
.achip {
  font-size: 0.76rem; padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); background: var(--surface-2);
}
.achip--gold { color: var(--premium); border-color: rgb(245 196 81 / 0.35); background: rgb(245 196 81 / 0.08); }

/* ============================================================
   4. HOW IT WORKS
   ============================================================ */
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.how-intro { position: sticky; top: 100px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: flex; gap: 1.3rem; padding: 1.5rem; position: relative;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--accent); transform: translateX(4px); }
.step-num {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600;
  color: var(--accent); flex-shrink: 0; width: 56px;
  -webkit-text-stroke: 0; opacity: 0.9;
}
.step-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-body p { color: var(--muted); font-size: 0.96rem; }
.step::before {
  content: ""; position: absolute; left: 33px; bottom: -1rem; height: 1rem; width: 1px;
  background: var(--border);
}
.step:last-child::before { display: none; }

/* ============================================================
   5. WHY
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.why-list li { display: flex; gap: 1rem; }
.why-mark {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; margin-top: 2px;
  background: var(--accent-soft); border: 1px solid rgb(45 212 167 / 0.35); position: relative;
}
.why-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-1px) rotate(-45deg);
}
.why-list h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.why-list p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   6. MONITORING
   ============================================================ */
.mon-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

.mon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem 2.4rem; }
.mon-item { display: flex; gap: 0.9rem; }
.mon-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mon-item b { font-size: 1.02rem; }
.mon-item p { color: var(--muted); font-size: 0.93rem; margin-top: 0.2rem; }

/* ============================================================
   7. MOBILE EXPERIENCE
   ============================================================ */
.phone-trio {
  display: flex; justify-content: center; align-items: center; gap: 0;
  perspective: 1600px; margin-top: 1rem; padding-bottom: 2.5rem;
}
.device--sm { width: 238px; }
.device--back { z-index: 1; }
.device--front { z-index: 3; }
.phone-trio .device--back:first-child { transform: scale(0.84) rotateY(17deg) translateX(46px); transform-origin: right; opacity: 0.92; }
.phone-trio .device--back:last-child { transform: scale(0.84) rotateY(-17deg) translateX(-46px); transform-origin: left; opacity: 0.92; }
.phone-trio .device--front { transform: translateY(-14px); }

/* ============================================================
   8. FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 0 1.2rem; transition: border-color 0.25s var(--ease);
}
.faq-item[open] { border-color: rgb(45 212 167 / 0.4); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600;
  font-family: var(--font-display); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-chev::before, .faq-chev::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-chev::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { color: var(--muted); font-size: 0.95rem; padding-bottom: 1.2rem; max-width: 60ch; }

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.cta { padding-bottom: clamp(4rem, 9vw, 8rem); scroll-margin-top: 88px; }
.cta-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 3.4rem);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow);
}
.cta-glow {
  position: absolute; top: -30%; right: -10%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(45 212 167 / 0.16), transparent 62%);
  pointer-events: none;
}
/* Pin only the two real columns above the glow — must NOT hit .cta-glow itself,
   or its `position: absolute` gets overridden to relative, dropping a 520px box
   into the grid flow (empty card + page-wide horizontal overflow on mobile). */
.cta-copy, .donate { position: relative; }
.cta-copy { grid-column: 1; grid-row: 1; }
.donate { grid-column: 2; grid-row: 1; }
.cta-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-sub { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin-top: 1rem; }
.cta-actions { display: flex; margin-top: 1.7rem; }
.cta-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.1rem; font-family: var(--font-mono); }

/* ---- Donation ---- */
.donate { position: relative; }
.donate-head { margin-bottom: 1.3rem; }
.donate-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.donate-text { color: var(--muted); font-size: 0.94rem; margin-top: 0.6rem; max-width: 44ch; }
.donate-card {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 1rem;
}
.qr { background: #fff; border-radius: 12px; padding: 8px; line-height: 0; flex-shrink: 0; }
.qr img { width: 134px; height: 134px; display: block; }
.donate-addr { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.donate-coin {
  font-size: 0.72rem; color: var(--accent); font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.addr {
  font-size: 0.76rem; color: var(--text); word-break: break-all; line-height: 1.5;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 9px;
  padding: 0.5rem 0.6rem;
}
.copy-btn { align-self: flex-start; }
.copy-btn.is-copied { color: var(--live); border-color: var(--live); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 36ch; }
.footer-platforms { display: inline-block; margin-top: 1rem; font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-h { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft);
  font-size: 0.8rem; color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  /* .nav (display:none here) used to carry margin-left:auto and push the
     controls right; with it gone, pin the actions to the right edge. */
  .header-actions { margin-left: auto; }
  .header-actions .btn--sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 480px; order: 2; margin-top: 1rem; }
  .how-grid, .why-grid, .mon-grid, .faq-grid, .cta-inner { grid-template-columns: 1fr; }
  /* stack the two CTA columns instead of forcing them into one cell */
  .cta-copy, .donate { grid-column: 1; grid-row: auto; }
  .donate { margin-top: 0.5rem; }
  .how-intro, .faq-intro { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell--wide { grid-column: span 1; }
  /* centre the hero call-to-action + platform line on phones */
  .hero-cta, .hero-platforms { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .phone-trio { flex-direction: column; gap: 3rem; }
  .phone-trio .device--back:first-child,
  .phone-trio .device--back:last-child { transform: scale(0.96); opacity: 1; }
  .phone-trio .device--front { transform: none; }
  .float-panel--health { left: -2%; width: 168px; }
  .float-panel--alert { right: -2%; width: 188px; }
  .section { padding: 3.5rem 0; }
  .donate-card { flex-direction: column; align-items: flex-start; }
  .qr { align-self: center; }
}

@media (max-width: 380px) {
  .float-panel { display: none; }
}

/* ============================================================
   Legal / document pages (privacy · terms · contact)
   ============================================================ */
.doc {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}
.doc-head {
  max-width: 760px;
  margin-bottom: 2.6rem;
}
.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.doc-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.doc-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}
.doc-body {
  max-width: 760px;
}
.doc-body section {
  margin-top: 2.4rem;
}
.doc-body h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.doc-body h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.5rem;
}
.doc-body p,
.doc-body li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.doc-body p + p {
  margin-top: 0.9rem;
}
.doc-body ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.doc-body li::marker {
  color: var(--accent);
}
.doc-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-body strong {
  color: var(--text);
  font-weight: 600;
}
.doc-callout {
  margin-top: 1.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.doc-callout p {
  margin: 0;
}
.doc-tldr {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2.6rem;
  max-width: 760px;
}
.doc-tldr .doc-tldr-h {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.doc-tldr p {
  color: var(--text);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
  max-width: 760px;
}
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.contact-card .cc-k {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .cc-v {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact-card a.cc-v {
  color: var(--accent);
  text-decoration: none;
}
.contact-card .cc-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
