/* ============================================================
   TezNet — clean tech minimalism
   ============================================================ */

:root {
  /* Brand accent — mint/teal "signal" */
  --mint: #06C28A;
  --mint-strong: #04976B;
  --mint-ink: #043B2C;
  --mint-soft: #E4F8F1;
  --amber: #E8923A;

  /* Light theme (default) */
  --bg: #FAFBFC;
  --bg-grad: radial-gradient(1200px 600px at 70% -10%, #EAFBF4 0%, rgba(234,251,244,0) 60%);
  --surface: #FFFFFF;
  --surface-2: #F2F5F7;
  --surface-3: #ECF0F3;
  --border: #E6EBEF;
  --border-strong: #D6DEE4;
  --hairline: #EEF2F5;
  --ink: #0A0F1A;
  --ink-2: #2A3340;
  --muted: #5A6573;
  --faint: #8B95A3;
  --on-mint: #042018;
  --shadow-sm: 0 1px 2px rgba(10,15,26,.04), 0 2px 8px rgba(10,15,26,.04);
  --shadow-md: 0 8px 30px rgba(10,15,26,.08), 0 2px 8px rgba(10,15,26,.04);
  --shadow-lg: 0 30px 70px rgba(10,15,26,.12), 0 8px 20px rgba(10,15,26,.06);
  --glow: 0 0 0 rgba(6,194,138,0);
  --phone-bg: #0A0F1A;
  --map-bg: #F4F8F9;
  --map-dot: #C2D2D4;
  --map-land: #DCE6E7;
  --globe-hi: #FCFEFD;
  --globe-lo: #E7EFF0;
  --globe-rim: rgba(6,194,138,.12);
  --color-scheme: light;
}

[data-theme="dark"] {
  --mint: #1EE6A4;
  --mint-strong: #1EE6A4;
  --mint-ink: #BFFCE9;
  --mint-soft: rgba(30,230,164,.12);
  --bg: #05080F;
  --bg-grad: radial-gradient(1100px 560px at 72% -8%, rgba(30,230,164,.13) 0%, rgba(30,230,164,0) 58%);
  --surface: #0B1019;
  --surface-2: #0F1622;
  --surface-3: #141C2A;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --hairline: rgba(255,255,255,.06);
  --ink: #EDF1F6;
  --ink-2: #C4CDD9;
  --muted: #8A94A4;
  --faint: #67717F;
  --on-mint: #042018;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 40px 90px rgba(0,0,0,.6);
  --glow: 0 0 60px rgba(30,230,164,.25);
  --phone-bg: #070B12;
  --map-bg: #0A111B;
  --map-dot: #2B3A4C;
  --map-land: #16202E;
  --globe-hi: #101A28;
  --globe-lo: #070C15;
  --globe-rim: rgba(30,230,164,.20);
  --color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: var(--color-scheme);
  overflow-x: hidden;
}

::selection { background: var(--mint); color: var(--on-mint); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }

.eyebrow {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint-strong);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--mint); border-radius: 2px;
}

.h-display {
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(34px, 6.4vw, 76px);
}
.h-section {
  font-weight: 800; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(28px, 4vw, 48px);
}
.lead {
  font-size: clamp(16px, 1.5vw, 20px); color: var(--muted);
  line-height: 1.6; max-width: 56ch;
}
.section-head { max-width: 720px; }
.section-head .h-section { margin: 18px 0 0; }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 20px; border-radius: 13px;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--mint); color: var(--on-mint);
  box-shadow: 0 6px 22px rgba(6,194,138,.32), var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(6,194,138,.42), var(--glow); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 15px; }
.btn .sub { font-weight: 400; opacity: .72; font-size: 12.5px; }
.btn-stack { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 22px; }
.btn-stack .ttl { font-size: 15px; font-weight: 600; }

.badge-soon {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px;
  background: var(--surface-3); color: var(--faint);
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 9px 13px; border-radius: 10px; transition: color .18s, background-color .18s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.lang-switch button {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500;
  padding: 6px 9px; border-radius: 7px; color: var(--faint); transition: all .18s;
}
.lang-switch button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; background: var(--surface-2); color: var(--ink-2);
  transition: background-color .18s, color .18s, transform .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 132px; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-grad); pointer-events: none; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 { margin: 0; }
.hero h1 .accent { color: var(--mint-strong); }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--mint-strong); flex: none; }

.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat .lbl { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.floaty {
  position: absolute; z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* ---------- Phone ---------- */
.phone {
  position: relative; width: 290px; border-radius: 42px;
  background: var(--phone-bg); padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.phone-screen {
  position: relative; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0B1320 0%, #070B12 100%);
  color: #EAF2EE; aspect-ratio: 9 / 19.2;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #05080d; border-radius: 14px; z-index: 5;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 0; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 11px; color: #aeb8c2; }
.phone-status .sig { display: flex; gap: 4px; align-items: center; }

/* connect screen */
.scr { padding: 22px 22px 24px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scr-top { display: flex; align-items: center; justify-content: space-between; }
.scr-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.scr-sub { font-size: 11.5px; color: #8b97a4; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#1EE6A4,#0a8f6c); }

.connect-core { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.power-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.power-ring .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(30,230,164,.18);
}
.power-ring .ring.r2 { inset: 16px; border-color: rgba(30,230,164,.12); }
.power-ring .ring.r3 { inset: 32px; border-color: rgba(30,230,164,.08); }
.power-ring.on .pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(30,230,164,.5);
  animation: ringPulse 2.2s ease-out infinite;
}
@keyframes ringPulse { 0% { transform: scale(.6); opacity: .8;} 100% { transform: scale(1.25); opacity: 0;} }
.power-btn {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: #11202a; color: #1EE6A4; border: 1px solid rgba(30,230,164,.25);
  transition: all .4s ease;
}
.power-ring.on .power-btn {
  background: radial-gradient(circle at 50% 35%, #1EE6A4, #0a9d72);
  color: #042018; box-shadow: 0 0 26px rgba(30,230,164,.32), 0 0 0 1px rgba(30,230,164,.6);
}
.connect-status { text-align: center; }
.connect-status .st { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #8b97a4; }
.connect-status .st .dot { width: 7px; height: 7px; border-radius: 50%; background: #5a6573; box-shadow: 0 0 0 0 rgba(30,230,164,0); }
.connect-status .st.on { color: #1EE6A4; }
.connect-status .st.on .dot { background: #1EE6A4; box-shadow: 0 0 0 3px rgba(30,230,164,.18); animation: dotBlink 2s ease-in-out infinite; }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.bigtime { margin-top: 6px; display: flex; justify-content: center; align-items: baseline; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .02em; }
.bigtime .dg { font-size: 28px; color: #EAF2EE; min-width: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.bigtime .cl { font-size: 24px; color: #56636f; padding: 0 3px; transform: translateY(-1px); }

/* server selector pill */
.srv-select {
  display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 18px;
  padding: 11px 13px; border-radius: 15px; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .2s, background-color .2s;
}
.srv-select:hover { border-color: rgba(30,230,164,.4); background: rgba(30,230,164,.06); }
.srv-select .ssf { width: 34px; height: 26px; flex: none; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.srv-select .ssm { flex: 1; min-width: 0; line-height: 1.25; }
.srv-select .ssm .nm { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #EAF2EE; }
.srv-select .ssm .cy { display: block; font-size: 11px; color: #8b97a4; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-select .ssc { flex: none; color: #6b7682; display: grid; place-items: center; }

/* globe glow behind ring */
.scr-home { position: relative; overflow: hidden; }
.globe-glow {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 210px; height: 210px; border-radius: 50%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(30,230,164,.10), rgba(30,230,164,.03) 45%, transparent 66%),
    conic-gradient(from 210deg, rgba(30,230,164,.06), transparent 40%, rgba(13,140,104,.06) 70%, transparent);
  filter: blur(2px);
}
.scr-home > .scr-top, .scr-home > .srv-select, .scr-home > .connect-core, .scr-home > .speed-card { position: relative; z-index: 1; }

/* speed (download/upload) card */
.speed-card {
  display: flex; align-items: stretch; gap: 0; margin-top: 4px;
  padding: 13px 6px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.speed-card .sp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.speed-card .sp-div { width: 1px; background: rgba(255,255,255,.09); margin: 4px 0; }
.speed-card .sp .k { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #8b97a4; }
.speed-card .sp .k svg { color: #1EE6A4; }
.speed-card .sp .v { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 600; color: #EAF2EE; font-variant-numeric: tabular-nums; }
.speed-card .sp .v small { font-size: 10px; color: #6b7682; margin-left: 3px; font-weight: 500; }

.stat-row { display: flex; gap: 10px; margin-top: 14px; }
.stat-box { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.stat-box .v { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; }
.stat-box .k { font-size: 10.5px; color: #8b97a4; margin-top: 2px; }

/* subscription screen */
.plan { padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); margin-bottom: 11px; }
.plan.hot { border-color: rgba(30,230,164,.45); background: rgba(30,230,164,.07); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; }
.plan .nm { font-weight: 700; font-size: 15px; }
.plan .pr { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 16px; }
.plan .pr small { font-size: 11px; color: #8b97a4; }
.plan .ft { font-size: 11.5px; color: #9aa5b1; margin-top: 5px; }
.tag-best { font-size: 9px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #042018; background: #1EE6A4; padding: 2px 6px; border-radius: 5px; }

/* profile screen */
.prow { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.prow .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #1EE6A4; }
.prow .lb { flex: 1; font-size: 13.5px; font-weight: 500; }
.prow .vl { font-size: 12px; color: #8b97a4; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }
.toggle-mini { width: 38px; height: 22px; border-radius: 999px; background: #1EE6A4; position: relative; }
.toggle-mini::after { content:""; position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; background:#fff; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-cell { padding: 30px 24px; border-right: 1px solid var(--hairline); }
.trust-cell:last-child { border-right: none; }
.trust-cell .ic { color: var(--mint-strong); margin-bottom: 12px; }
.trust-cell .t { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.trust-cell .d { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Features (uniform grid) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 52px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .ic-wrap {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--mint-strong); margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.card p { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.card.feat-1tap { grid-column: span 3; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.feat-hero {
  grid-column: span 3; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 280px;
}
.card.feat-hero h3 { color: var(--bg); font-size: 26px; }
.card.feat-hero p { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 15.5px; }
.card.feat-hero .ic-wrap { background: rgba(255,255,255,.1); color: var(--mint); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.step { position: relative; padding-top: 26px; }
.step .stepline { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.step .stepline::after { content:""; position:absolute; inset:0; width: 36px; background: var(--mint); border-radius: 2px; }
.step .n { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--mint-strong); font-weight: 500; }
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.step .big-n { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--surface-3); line-height: 1; position: absolute; top: 14px; right: 4px; z-index: -0; }

/* ---------- Servers (real map) ---------- */
.srv-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 2.4vw, 36px); align-items: stretch; margin-top: 44px; }

.map-card {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: var(--shadow-md); min-height: 520px;
}
.leaflet-map { position: absolute; inset: 0; }
.leaflet-container { background: var(--map-bg); font: inherit; }
.leaflet-control-zoom { border: none !important; box-shadow: var(--shadow-md) !important; margin: 0 16px 16px 0 !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a {
  background: var(--surface) !important; color: var(--ink-2) !important;
  border: none !important; border-bottom: 1px solid var(--border) !important;
  width: 34px !important; height: 34px !important; line-height: 34px !important; font-size: 18px !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--surface-3) !important; color: var(--ink) !important; }

/* pins */
.srv-pin { pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.pin-dot {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px var(--surface), 0 1px 5px rgba(0,0,0,.28);
  transition: transform .18s ease;
}
.pin.fast .pin-dot { background: var(--mint); }
.pin.mid  .pin-dot { background: #E8923A; }
.pin.slow .pin-dot { background: #E2607A; }
.pin:hover .pin-dot { transform: scale(1.25); }
.pin-pulse {
  position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: var(--mint); opacity: .55; animation: pinPulse 1.8s ease-out infinite;
}
.pin.is-active .pin-dot { width: 16px; height: 16px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--mint), 0 2px 8px rgba(0,0,0,.32); }
@keyframes pinPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(4.2); opacity: 0; } }

.pin-label {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  padding: 5px 10px; border-radius: 9px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; transform-origin: bottom center;
  pointer-events: none;
}
.pin-label i { font-style: normal; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--mint-strong); font-weight: 500; }
.pin-label::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--surface);
}
.pin:hover .pin-label, .pin.is-active .pin-label { opacity: 1; visibility: visible; }
.pin.is-active .pin-label { background: var(--ink); color: var(--bg); border-color: transparent; }
.pin.is-active .pin-label i { color: var(--mint); }
.pin.is-active .pin-label::after { border-top-color: var(--ink); }

/* floating active-server card */
.map-feature {
  position: absolute; left: 16px; top: 16px; z-index: 500;
  display: flex; align-items: center; gap: 13px; max-width: min(340px, calc(100% - 32px));
  padding: 13px 15px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.map-feature .ff { width: 46px; height: 35px; flex: none; object-fit: cover; border-radius: 7px; box-shadow: 0 0 0 1px var(--border) inset; }
.map-feature .fmeta { min-width: 0; }
.map-feature .fmeta .nm { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.map-feature .fmeta .ct { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-feature .fping { text-align: right; flex: none; padding-left: 4px; }
.map-feature .fping .pv { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--mint-strong); }
.map-feature .fping .pv span { font-size: 11px; color: var(--faint); font-weight: 500; margin-left: 2px; }
.fbadge { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-strong); }

/* legend */
.map-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 500;
  display: flex; gap: 14px; padding: 8px 12px; border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .lg { width: 8px; height: 8px; border-radius: 50%; }
.map-legend .lg.fast { background: var(--mint); }
.map-legend .lg.mid { background: #E8923A; }
.map-legend .lg.slow { background: #E2607A; }

.fbadge-old, .srv-feature, .srv-head { /* retained for safety */ }
.srv-rows { display: flex; flex-direction: column; gap: 2px; max-height: 432px; overflow-y: auto; padding-right: 4px; }

.server-list { display: flex; flex-direction: column; }
.auto-row {
  display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 16px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px;
  transition: border-color .18s, background-color .18s;
}
.auto-row:hover { border-color: var(--border-strong); }
.auto-row.on { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.auto-row .ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--surface-3); color: var(--mint-strong); display: grid; place-items: center; transition: background-color .18s, color .18s; }
.auto-row.on .ic { background: var(--mint); color: var(--on-mint); }
.auto-row .tx { flex: 1; min-width: 0; }
.auto-row .tx .t { display: block; font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.auto-row .tx .d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.srv-rows::-webkit-scrollbar { width: 6px; }
.srv-rows::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.srv {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; width: 100%; text-align: left;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.srv:hover { background: var(--surface-2); }
.srv.active { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.srv .flag { width: 38px; height: 28px; flex: none; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--border) inset; }
.srv .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.srv .nm small { display: block; font-weight: 400; font-size: 12.5px; color: var(--faint); }
.srv .ping { display: flex; align-items: center; gap: 9px; flex: none; }
.srv .ms { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.srv .ms em { font-style: normal; color: var(--faint); font-size: 10.5px; margin-left: 2px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { width: 3px; border-radius: 2px; background: var(--border-strong); }
.bars i.on { background: var(--mint); }

/* ---------- Interface showcase ---------- */
.iface { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; align-items: end; }
.iface-item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.iface-item .cap { text-align: center; }
.iface-item .cap .t { font-weight: 700; font-size: 16px; }
.iface-item .cap .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.iface-item.mid { transform: translateY(-26px); }

/* ---------- Security ---------- */
.sec-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; margin-top: 40px; }
.sec-list { display: flex; flex-direction: column; gap: 4px; }
.sec-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.sec-item:last-child { border-bottom: none; }
.sec-item .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--mint-soft); color: var(--mint-strong); display: grid; place-items: center; }
.sec-item h4 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.sec-item p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.sec-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.shield-card {
  background: var(--ink); color: var(--bg); border-radius: 26px; padding: 38px;
  width: 100%; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.shield-card .lock { color: var(--mint); margin-bottom: 22px; }
.shield-card .lines { display: flex; flex-direction: column; gap: 9px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.shield-card .lines span { display: flex; align-items: center; gap: 9px; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.shield-card .lines .ok { color: var(--mint); }
.shield-card .enc { margin-top: 22px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 11px; color: rgba(30,230,164,.55); word-break: break-all; line-height: 1.7; }

/* ---------- Download ---------- */
.download-card {
  background: var(--ink); color: var(--bg); border-radius: 30px;
  padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-card::before {
  content:""; position:absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(30,230,164,.22), transparent 65%); pointer-events:none;
}
.dl-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.download-card .h-section { color: var(--bg); }
.download-card .lead { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.dl-stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.dl-stat { padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.dl-stat .v { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 17px; }
.dl-stat .k { font-size: 11.5px; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-top: 2px; }
.dl-note { margin-top: 22px; font-size: 13px; color: color-mix(in srgb, var(--bg) 58%, transparent); max-width: 44ch; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.qr {
  width: 200px; height: 200px; border-radius: 20px; background: #fff; padding: 14px;
  box-shadow: var(--shadow-md);
}
.qr svg { width: 100%; height: 100%; }
.qr-block .hint { font-size: 13px; color: color-mix(in srgb, var(--bg) 62%, transparent); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left; font-size: 18px; font-weight: 600; letter-spacing: -.015em;
  transition: color .18s;
}
.faq-q:hover { color: var(--mint-strong); }
.faq-q .pm { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; transition: transform .3s ease, background-color .2s; }
.faq-item.open .faq-q .pm { background: var(--mint); color: var(--on-mint); transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-a .inner { padding: 0 4px 26px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }

/* ---------- Smart routing (split tunneling) ---------- */
.rt-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.rt-copy .eyebrow { margin-bottom: 16px; }
.rt-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.rt-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.rt-list .chk { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-strong); margin-top: 1px; }
.rt-list b { color: var(--ink); font-weight: 700; }
.rt-visual { display: flex; justify-content: center; }
.rt-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); }
.rt-mode { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 15px; background: linear-gradient(135deg, var(--mint-soft), transparent); border: 1px solid var(--border); margin-bottom: 14px; }
.rt-mode-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--on-mint); }
.rt-mode-tx { flex: 1; min-width: 0; }
.rt-mode-tx b { display: block; font-size: 14.5px; color: var(--ink); }
.rt-mode-tx span { font-size: 11.5px; color: var(--faint); }
.rt-switch { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--mint); position: relative; }
.rt-switch .knob { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rt-apps { display: flex; flex-direction: column; gap: 8px; }
.rt-app { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); }
.rt-app-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface-3); }
.rt-app-nm { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.rt-tag .d { width: 6px; height: 6px; border-radius: 50%; }
.rt-tag.vpn { background: var(--mint-soft); color: var(--mint-strong); }
.rt-tag.vpn .d { background: var(--mint); }
.rt-tag.direct { background: var(--surface-3); color: var(--muted); }
.rt-tag.direct .d { background: var(--faint); }

/* animated routing diagram */
.rt-flow { width: 100%; height: auto; display: block; }
.rt-dev { fill: var(--surface-3); stroke: var(--border-strong); stroke-width: 1.6; }
.rt-dev-scr { fill: var(--surface-2); stroke: var(--border); stroke-width: 1; }
.rt-dot { fill: var(--mint); }
.rt-wire { stroke: var(--border-strong); stroke-width: 2; }
.rt-node { fill: var(--mint); }
.rt-pulse { fill: var(--mint); opacity: 0; transform-box: fill-box; transform-origin: center; }
.rt-lane { fill: none; stroke: var(--border); stroke-width: 2; }
.rt-pkt { fill: none; stroke: var(--mint); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 0.1 15; }
.rt-shield-bg { fill: var(--mint); }
.rt-shield-ck { fill: none; stroke: var(--on-mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rt-end { fill: var(--surface-3); stroke: var(--border-strong); stroke-width: 1.5; }
.rt-end.vpn { fill: var(--mint-soft); stroke: none; }
.rt-end-ic { fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rt-end-ic.globe, .rt-end.vpn ~ .rt-end-ic { stroke: var(--mint-strong); }
.rt-lbl { fill: var(--faint); font-size: 11px; font-weight: 600; text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .rt-pkt { animation: rtFlow 2.2s linear infinite; }
  .rt-pkt.dn { animation-delay: .5s; }
  .rt-pulse { animation: rtPulse 2.4s ease-out infinite; }
}
@keyframes rtFlow { to { stroke-dashoffset: -15.1; } }
@keyframes rtPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.rt-cap { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; background: var(--surface-2); margin: 6px 0 14px; }

@media (max-width: 960px) {
  .rt-grid { grid-template-columns: 1fr; gap: 34px; }
  .rt-visual { order: -1; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 30ch; line-height: 1.6; }
.footer-col h5 { font-size: 12px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--mint-strong); }
.footer-col a.ftr-contact { display: flex; align-items: center; gap: 9px; width: fit-content; }
.ftr-contact svg { flex: none; }
.footer-col a.ftr-contact.tg:hover { color: #229ED9; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--faint); flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal — one-shot CSS entrance on load (no JS, no scroll dependency) ----------
   Content always ends visible (fill: both -> opacity:1) and never hides again.
   React rebuilding classNames (FAQ open, language switch) does NOT restart the
   animation, because `.reveal` and the animation-name stay unchanged. Bulletproof. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealIn .7s cubic-bezier(.16,1,.3,1) both; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .12s; }
  .reveal.d3 { animation-delay: .18s; }
  .reveal.d4 { animation-delay: .24s; }
  .reveal.d5 { animation-delay: .30s; }
}
@keyframes revealIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hard off-switch for captures / print: never leave content hidden */
html[data-reveal-off] .reveal,
html[data-reveal-off] .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }

@media print {
  .reveal, .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .floaty, .power-ring.on .pulse, .globe-pin.active .pin-ping { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: auto; order: -1; }
  .hero-visual .floaty { display: none; }
  .sec-items { grid-template-columns: 1fr; gap: 4px; }
  .srv-grid { grid-template-columns: 1fr; gap: 36px; }
  .srv-head { position: static; }
  .dl-grid { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .card.feat-1tap, .card.span-3, .card.feat-hero { grid-column: span 4; }
  .card.span-2 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header .lang-switch { display: none; }
  .menu-toggle { display: grid; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(2) { border-right: none; }
  .trust-cell:nth-child(1), .trust-cell:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .iface { grid-template-columns: 1fr; gap: 40px; }
  .iface-item.mid { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .card.feat-1tap, .card.span-3, .card.span-2, .card.feat-hero { grid-column: span 1; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-cell { border-right: none; border-bottom: 1px solid var(--hairline); }
  .iface { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* mobile menu sheet */
.msheet { position: fixed; inset: 0; z-index: 200; display: none; }
.msheet.open { display: block; }
.msheet .scrim { position: absolute; inset: 0; background: rgba(5,8,15,.5); backdrop-filter: blur(4px); }
.msheet .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px);
  background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateX(100%);} to { transform: none;} }
.msheet .panel a { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.msheet .panel a:hover { background: var(--surface-2); }
.msheet .panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
