/* ============================================================
   FrogStream — marketing site
   Built on the FrogStream design system (warm-dark, Frog Green / Brook).
   ============================================================ */

:root {
  /* surfaces (dark, warm-neutral) */
  --bg: #16130F;
  --bg-deep: #100E0B;
  --surface: #1F1B15;
  --surface-2: #28231C;
  --surface-3: #322C23;
  --border: #38312A;
  --border-soft: #2C261F;

  /* text */
  --text: #F6F1E9;
  --text-2: #C6BCAE;
  --muted: #8E8475;
  --faint: #645B4E;

  /* brand + semantics (FrogStream — Brook / Frog Green) */
  --green: #34B36B;        /* Frog Green — brand + default accent */
  --green-600: #2A9C5C;
  --green-deep: #1F8A4C;
  --brand-grad: linear-gradient(150deg, #3CC576, #1F8A4C);
  --accent: var(--green);
  --accent-600: var(--green-600);
  --accent-soft: color-mix(in oklab, var(--accent) 17%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 36%, transparent);
  --orange: #F97316;       /* legacy — secondary/state hue only */
  --orange-600: #EA6304;
  --amber: #FBBF24;
  --red: #F2555A;
  --down: #58B6F5;   /* download / swarm */
  --up: #43C9A0;     /* upload / seeding */
  --lan: #9B7BEA;    /* cross-device */
  --track: rgba(255, 255, 255, .08);

  /* radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .7);
  --shadow-xl: 0 48px 110px -30px rgba(0, 0, 0, .82);

  /* type */
  --ui: "Nunito", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.32, .72, 0, 1);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Blazor's FocusOnNavigate programmatically focuses the page <h1> on load,
   which otherwise paints a focus ring. tabindex="-1" elements are only
   script-focusable (never keyboard-reachable), so dropping their ring is
   safe; real keyboard focus elsewhere still shows :focus-visible. */
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--accent-soft); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.center { text-align: center; }

.overline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.overline::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.overline.lan { color: var(--lan); }
.overline.lan::before { background: var(--lan); }
.center .overline::before { display: none; }

h1, h2, h3 { font-weight: 900; letter-spacing: -.02em; margin: 0; line-height: 1.04; text-wrap: balance; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--pill);
  font-size: 13.5px; font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in oklab, var(--up) 22%, transparent); }

.lead { color: var(--text-2); font-size: 19px; line-height: 1.62; font-weight: 600; }

/* ---------- logo mark ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; display: block; box-shadow: 0 4px 14px -4px rgba(31, 138, 76, .5); flex: none; }
.logo-mark.sm { width: 30px; height: 30px; border-radius: 8px; }
.logo-mark.lg { width: 64px; height: 64px; border-radius: 16px; }
.logo-word { font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.fg { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  font-family: var(--ui); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s var(--ease-out), background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 19px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px var(--accent-line); }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn-lg { height: 54px; font-size: 16.5px; padding: 0 26px; }

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 13px;
  height: 60px; padding: 0 22px 0 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform .16s var(--ease-out), border-color .18s, background .18s;
}
.store:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--surface-2); }
.store:active { transform: translateY(0) scale(.98); }
.store .glyph { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.store .glyph svg { width: 28px; height: 28px; display: block; }
.store .lbl { display: flex; flex-direction: column; line-height: 1.12; }
.store .lbl small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.store .lbl b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg-deep) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: color-mix(in oklab, var(--bg-deep) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 700; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -10% 0 auto 0; height: 720px; z-index: 0;
  background:
    radial-gradient(680px 420px at 50% 0%, rgba(52, 179, 107, .22), transparent 62%),
    radial-gradient(520px 360px at 78% 16%, rgba(155, 123, 234, .12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 540px at 50% 8%, #000 25%, transparent 78%);
  mask-image: radial-gradient(900px 540px at 50% 8%, #000 25%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); margin: 22px auto 0; max-width: 16ch; }
.hero h1 .ink { color: var(--accent); }
.hero .lead { max-width: 56ch; margin: 22px auto 0; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.hero-note { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-note i { color: var(--up); font-size: 16px; }

/* device cluster */
.cluster { position: relative; z-index: 2; margin-top: 72px; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.cluster .desk-wrap { position: relative; z-index: 1; }
.cluster .phone-wrap { position: relative; z-index: 3; margin-left: -78px; margin-bottom: -6px; }

/* ============================================================
   App mockup — shared chrome (recreates the real app UI)
   ============================================================ */
.appwin {
  width: 760px; border-radius: 16px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.appwin .titlebar {
  height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: var(--bg-deep); border-bottom: 1px solid var(--border-soft);
}
.appwin .tb-left { display: flex; align-items: center; gap: 9px; }
.appwin .tb-title { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.appwin .tb-win { display: flex; gap: 20px; color: var(--muted); }
.appwin .tb-win i { font-size: 13px; }
.appbody { display: flex; height: 430px; }

/* sidebar */
.side {
  width: 190px; flex: none; background: var(--bg-deep);
  border-right: 1px solid var(--border-soft);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 12px;
}
.side .brand { display: flex; align-items: center; gap: 9px; padding: 2px 4px 6px; }
.side .brand b { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.side .add {
  height: 38px; border-radius: var(--r-sm); background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 800; box-shadow: 0 6px 14px -6px var(--accent-line);
}
.side .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700; color: var(--text-2);
}
.side .nav-item i { font-size: 16px; color: var(--muted); width: 18px; }
.side .nav-item .ct { margin-left: auto; font-size: 11px; font-family: var(--mono); color: var(--muted); background: var(--surface-2); border-radius: var(--pill); padding: 1px 7px; }
.side .nav-item.active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.side .nav-item.active i { color: var(--accent); }
.side .nav-item.active .ct { color: var(--accent); background: color-mix(in oklab, var(--accent) 16%, transparent); }
.side .grp { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 6px 10px 0; }
.side .spacer { flex: 1; }
.side .agg {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: 10px 12px; display: flex; gap: 14px;
}
.side .agg .col { display: flex; flex-direction: column; gap: 1px; }
.side .agg .v { font-family: var(--mono); font-size: 13px; font-weight: 800; }
.side .agg .v.dn { color: var(--down); }
.side .agg .v.up { color: var(--up); }
.side .agg .k { font-size: 9.5px; color: var(--muted); font-weight: 700; }

/* main */
.main { flex: 1; padding: 16px 16px 0; overflow: hidden; display: flex; flex-direction: column; gap: 13px; }
.main .topbar { display: flex; align-items: center; gap: 10px; }
.main .topbar h3 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.main .topbar .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: var(--pill); padding: 2px 8px; }
.main .topbar .search { margin-left: auto; height: 32px; width: 170px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-sm); display: flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--muted); font-size: 12px; }

/* download row (Bars variant) */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r); padding: 13px;
}
.row.lan-row { box-shadow: inset 3px 0 0 var(--lan); background: color-mix(in oklab, var(--lan) 7%, var(--surface)); }
.badge {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: grid; place-items: center; font-size: 19px;
}
.badge.b-down { background: color-mix(in oklab, var(--down) 15%, var(--surface)); color: var(--down); }
.badge.b-up { background: color-mix(in oklab, var(--up) 15%, var(--surface)); color: var(--up); }
.badge.b-amber { background: color-mix(in oklab, var(--amber) 15%, var(--surface)); color: var(--amber); }
.badge.b-lan { background: color-mix(in oklab, var(--lan) 16%, var(--surface)); color: var(--lan); }
.row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.row .ln1 { display: flex; align-items: center; gap: 9px; }
.row .nm { font-size: 14px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 22px; padding: 0 10px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 800;
}
.chip .liv { width: 7px; height: 7px; border-radius: 50%; }
.chip.c-down { background: color-mix(in oklab, var(--down) 16%, transparent); color: var(--down); }
.chip.c-down .liv { background: var(--down); box-shadow: 0 0 0 0 color-mix(in oklab, var(--down) 60%, transparent); animation: ping 1.8s var(--ease-out) infinite; }
.chip.c-up { background: color-mix(in oklab, var(--up) 16%, transparent); color: var(--up); }
.chip.c-up .liv { background: var(--up); box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 60%, transparent); animation: ping 1.8s var(--ease-out) infinite; }
.chip.c-amber { background: color-mix(in oklab, var(--amber) 16%, transparent); color: var(--amber); }
.chip.c-lan { background: color-mix(in oklab, var(--lan) 18%, transparent); color: var(--lan); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.bar { height: 7px; border-radius: var(--pill); background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: var(--pill); }
.bar .f-down { background: var(--down); }
.bar .f-up { background: var(--up); }
.bar .f-lan { background: linear-gradient(90deg, var(--lan) 0 var(--cap, 60%), var(--down) var(--cap, 60%)); }

.row .meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.row .meta .sep { opacity: .5; }
.row .spd { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.row .spd .s { font-family: var(--mono); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: baseline; gap: 3px; }
.row .spd .s small { font-size: 9px; font-weight: 700; opacity: .7; }
.row .spd .dn { color: var(--down); }
.row .spd .up { color: var(--up); }

/* ---------- phone mockup ---------- */
.phone {
  width: 296px; border-radius: 42px; padding: 11px;
  background: #050403; border: 1px solid #2a2620;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,.03);
}
.phone .screen { border-radius: 32px; overflow: hidden; background: var(--bg); position: relative; height: 632px; display: flex; flex-direction: column; }
.phone .statusbar { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 22px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.phone .statusbar .si { display: flex; gap: 6px; font-size: 12px; }
.phone .notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #050403; border-radius: var(--pill); z-index: 5; }
.phone .ptop { display: flex; align-items: center; gap: 9px; padding: 6px 16px 12px; }
.phone .ptop b { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.phone .ptop .pspd { margin-left: auto; display: flex; gap: 12px; }
.phone .ptop .pspd .s { display: flex; flex-direction: column; align-items: flex-end; }
.phone .ptop .pspd .v { font-family: var(--mono); font-size: 12px; font-weight: 800; }
.phone .ptop .pspd .v.dn { color: var(--down); }
.phone .ptop .pspd .v.up { color: var(--up); }
.phone .ptop .pspd .k { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.phone .chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow: hidden; }
.phone .fchip { flex: none; height: 32px; padding: 0 14px; border-radius: var(--pill); display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-soft); }
.phone .fchip.on { background: var(--accent); color: #fff; border-color: transparent; }
.phone .fchip .ct { font-family: var(--mono); font-size: 10px; opacity: .85; }
.phone .plist { flex: 1; padding: 0 16px 6px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.pcard { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.pcard.lan-row { box-shadow: var(--shadow-sm), inset 3px 0 0 var(--lan); background: color-mix(in oklab, var(--lan) 7%, var(--surface)); }
.ring { width: 50px; height: 50px; flex: none; position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .lab { position: absolute; font-family: var(--mono); font-size: 11px; font-weight: 800; }
.pcard .pbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pcard .pnm { font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pcard .pmeta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.pcard .pside .s { font-family: var(--mono); font-size: 12px; font-weight: 800; display: flex; align-items: baseline; gap: 3px; }
.pcard .pside .s small { font-size: 8px; opacity: .7; }
.pcard .pside .dn { color: var(--down); }
.pcard .pside .up { color: var(--up); }

/* AdMob native ad card (phone in-feed, after row 2) */
.adcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; flex: none; }
.ad-attr { display: flex; align-items: center; gap: 9px; padding: 7px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
.ad-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); border: 1px solid var(--faint); border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.ad-sponsored { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.ad-choices { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.ad-body { display: flex; gap: 11px; padding: 11px 12px 9px; }
.ad-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 21px; }
.ad-txt { min-width: 0; }
.ad-head { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-meta .stars { color: #F0B429; }
.ad-cta { margin: 0 12px 12px; height: 40px; width: calc(100% - 24px); border: none; border-radius: var(--r-sm); color: #fff; font-family: var(--ui); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.phone .tabs { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; border-top: 1px solid var(--border-soft); background: var(--bg-deep); position: relative; }
.phone .tabs .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 800; color: var(--muted); }
.phone .tabs .tab i { font-size: 19px; }
.phone .tabs .tab.on { color: var(--accent); }
.phone .tabs .fab { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 24px; box-shadow: 0 8px 20px -6px var(--accent-line); transform: translateY(-12px); }

/* ============================================================
   Feature sections
   ============================================================ */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Let grid columns shrink below content size so wide children (e.g. the peers
   table) wrap instead of forcing the row past the viewport on mobile. */
.feat-copy, .feat-vis { min-width: 0; }
.feat-vis .panel { max-width: 100%; }
.feat + .feat { margin-top: 130px; }
.feat.flip .feat-copy { order: 2; }
.feat.flip .feat-vis { order: 1; }
.feat h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 18px; }
.feat .lead { margin-bottom: 26px; }
.feat-points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feat-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); font-weight: 600; }
.feat-points li i { font-size: 18px; margin-top: 2px; flex: none; }
.feat-vis { display: flex; align-items: center; justify-content: center; }

/* feature panel (a card surface that holds the mini-ui) */
.panel {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); position: relative;
}
.panel.glow-brand { box-shadow: var(--shadow-lg), 0 0 90px -40px rgba(52, 179, 107, .5); }
.panel.glow-lan { box-shadow: var(--shadow-lg), 0 0 90px -40px rgba(155,123,234,.5); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head .ph-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; }
.panel-head b { font-size: 14px; font-weight: 800; }
.panel-head .tag { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--pill); }

/* cross-platform visual: device tiles */
.devtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.devtile {
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.devtile .dt-top { display: flex; align-items: center; gap: 11px; }
.devtile .dt-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-3); color: var(--text-2); position: relative; }
.devtile .dt-ico .sd { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface-2); }
.devtile .dt-name { font-size: 14px; font-weight: 800; }
.devtile .dt-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.devtile .dt-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); }
.devtile .dt-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; font-family: var(--ui); }
.devtile.me { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent) 8%, var(--surface-2)); }

/* send-files transfer visual */
.xfer { display: flex; align-items: center; gap: 0; padding: 8px 0; }
.xfer .node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.xfer .node .nico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-2); }
.xfer .node .nl { font-size: 13px; font-weight: 800; }
.xfer .node .ns { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.xfer .link { flex: none; width: 120px; height: 2px; position: relative; background: var(--track); border-radius: 2px; overflow: visible; }
.xfer .link::after {
  content: ""; position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--lan), transparent);
  animation: flow 1.5s linear infinite;
}
@keyframes flow { 0% { left: -46px; } 100% { left: 120px; } }
.xfer .pk { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 10px; font-family: var(--mono); color: var(--lan); font-weight: 700; white-space: nowrap; }
.xfer-files { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.xfer-file { display: flex; align-items: center; gap: 11px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.xfer-file i { font-size: 17px; color: var(--lan); }
.xfer-file .xf-nm { font-size: 12.5px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xfer-file .xf-sz { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.xfer-file .xf-ck { color: var(--up); font-size: 15px; }

/* offload / remote visual: banner + battery */
.remote-banner {
  display: flex; gap: 13px; align-items: flex-start;
  background: color-mix(in oklab, var(--lan) 12%, var(--surface-2));
  border: 1px solid color-mix(in oklab, var(--lan) 34%, transparent);
  border-radius: var(--r); padding: 14px 15px;
}
.remote-banner .rb-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--lan) 22%, transparent); color: var(--lan); font-size: 18px; }
.remote-banner .rb-t { font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.remote-banner .rb-d { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.battery-row { display: flex; gap: 12px; margin-top: 14px; }
.stat-mini { flex: 1; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 13px 14px; }
.stat-mini .sm-k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 7px; }
.stat-mini .sm-v { font-family: var(--mono); font-size: 21px; font-weight: 800; display: flex; align-items: baseline; gap: 4px; }
.stat-mini .sm-v small { font-size: 11px; color: var(--muted); }
.stat-mini.up .sm-v { color: var(--up); }
.stat-mini.lan .sm-v { color: var(--lan); }

/* peers table */
.ptable { width: 100%; border-collapse: collapse; font-size: 12px; }
.ptable th { text-align: left; font-family: var(--mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--border-soft); }
.ptable th.r, .ptable td.r { text-align: right; }
.ptable td { padding: 11px 10px; border-bottom: 1px solid var(--border-soft); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.ptable tr:last-child td { border-bottom: none; }
.ptable .ip { color: var(--text); font-weight: 700; }
.ptable .dn { color: var(--down); font-weight: 700; }
.ptable .up { color: var(--up); font-weight: 700; }
.ptable .flag { display: inline-block; width: 16px; height: 11px; border-radius: 2px; margin-right: 7px; vertical-align: middle; background: var(--surface-3); }
.ptable .lan-tag { font-family: var(--ui); font-size: 9px; font-weight: 800; letter-spacing: .05em; color: var(--lan); background: color-mix(in oklab, var(--lan) 18%, transparent); padding: 2px 6px; border-radius: var(--pill); margin-left: 7px; }
.ptable tr.lan-peer td { background: color-mix(in oklab, var(--lan) 8%, transparent); }
.ptable tr.lan-peer .ip { color: var(--lan); }

/* ============================================================
   Essentials grid
   ============================================================ */
.essentials { background: var(--bg); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.ess-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.ess {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 24px; transition: border-color .2s, transform .2s var(--ease-out);
}
.ess:hover { border-color: var(--border); transform: translateY(-3px); }
.ess .ess-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); color: var(--accent); margin-bottom: 16px; }
.ess h4 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 7px; }
.ess p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ============================================================
   Download CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta-card {
  position: relative; border-radius: var(--r-xl); padding: 70px 56px; text-align: center;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(52,179,107,.22), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { font-size: clamp(30px, 4.5vw, 46px); max-width: 18ch; margin: 18px auto 0; }
.cta-card .lead { max-width: 50ch; margin: 18px auto 30px; }
.cta-card .stores { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.foot { border-top: 1px solid var(--border-soft); padding: 60px 0 40px; background: var(--bg-deep); }
.foot-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 0; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 16px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14.5px; font-weight: 600; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.foot-bottom p { color: var(--muted); font-size: 13px; margin: 0; }
.foot-bottom .legal { display: flex; gap: 22px; }
.foot-bottom .legal a { color: var(--muted); font-size: 13px; }
.foot-bottom .legal a:hover { color: var(--text-2); }

/* ============================================================
   Content pages (privacy / contact)
   ============================================================ */
.page-hero { padding: 70px 0 30px; position: relative; }
.page-hero .overline { }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 16px; }
.page-hero .lead { max-width: 60ch; margin-top: 18px; }
.page-hero .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 40px 0 110px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h5 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 14px; }
.toc a { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 6px 0; transition: color .15s; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

.doc-body { max-width: 740px; }
.doc-body section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 96px; }
.doc-body h2 { font-size: 25px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.doc-body h2 .n { font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 700; }
.doc-body h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.doc-body p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.doc-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.doc-body ul li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.doc-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.doc-body ul li b { color: var(--text); }
.doc-body a.inline { color: var(--accent); font-weight: 700; }
.doc-body a.inline:hover { text-decoration: underline; }
.callout {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent); border-radius: var(--r); padding: 16px 18px; margin: 0 0 18px;
}
.callout.lan { border-left-color: var(--lan); }
.callout.up { border-left-color: var(--up); }
.callout i { font-size: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.callout.lan i { color: var(--lan); }
.callout.up i { color: var(--up); }
.callout p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.callout p b { color: var(--text); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 30px 0 110px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; }
.contact-card .cc-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.contact-card.lan .cc-ico { background: color-mix(in oklab, var(--lan) 16%, transparent); color: var(--lan); }
.contact-card h3 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; }
.contact-card p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; line-height: 1.6; }
.email-pill {
  display: inline-flex; align-items: center; gap: 11px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text);
  transition: border-color .18s, background .18s;
}
.email-pill:hover { border-color: var(--accent-line); background: var(--surface-3); }
.email-pill i { font-size: 19px; color: var(--accent); }
.email-pill .cp { margin-left: auto; font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--muted); }

.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: 16px 18px; transition: border-color .18s, transform .16s var(--ease-out), background .18s;
}
.link-row:hover { border-color: var(--border); transform: translateX(3px); background: var(--surface-2); }
.link-row .lr-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); color: var(--text-2); flex: none; }
.link-row .lr-t { display: block; font-size: 15px; font-weight: 800; }
.link-row .lr-d { display: block; font-size: 13px; color: var(--muted); }
.link-row > span:not([class]) { min-width: 0; }
.link-row .lr-go { margin-left: auto; color: var(--muted); font-size: 18px; flex: none; }

.faq { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 12px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { margin-left: auto; transition: transform .2s var(--ease-out); color: var(--muted); font-size: 18px; }
.faq details[open] summary i { transform: rotate(180deg); color: var(--accent); }
.faq .ans { padding: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .cluster { transform: scale(.86); transform-origin: top center; }
}
@media (max-width: 920px) {
  .section { padding: 84px 0; }
  .nav-links { display: none; }
  .feat { grid-template-columns: 1fr; gap: 40px; }
  .feat.flip .feat-copy { order: 1; }
  .feat.flip .feat-vis { order: 2; }
  .feat + .feat { margin-top: 84px; }
  .ess-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cluster { flex-direction: column; align-items: center; gap: 0; transform: none; }
  /* Shrink the whole fixed-pixel canvas with zoom (scales layout too, so it
     stays centred, never clips its internals, and reserves no overflow). */
  .cluster .desk-wrap { zoom: .72; transform: none; margin-bottom: 0; }
  .cluster .phone-wrap { margin-left: 0; margin-top: -10px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 60px; }
  .ess-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; }
  .foot-top { gap: 36px; }
  .foot-cols { gap: 40px; }
  .cluster .desk-wrap { zoom: .42; }
  .stores { width: 100%; flex-direction: column; }
  .store { width: 100%; }
  /* Keep the peers table inside its panel on narrow screens. */
  .ptable { table-layout: fixed; }
  .ptable td, .ptable th { overflow: hidden; text-overflow: ellipsis; }
}
