/* HenyaVPN website: the app's look (dark, amber, Unbounded + Manrope). */

@font-face { font-family: "Unbounded"; src: url("../fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0e1012;
  --bg-2: #111316;
  --surface: #16191c;
  --surface-2: #1b1f23;
  --border: #22272b;
  --line: #2a2f34;
  --text: #f3f0ea;
  --text-2: #a9a49b;
  --muted: #8c877e;
  --amber: #f2b544;
  --amber-2: #ffcf6e;
  --amber-ink: #17120a;
  --amber-tint: #1b1a14;
  --green: #4fd18b;
  --green-ink: #0c2a1b;
  --danger: #e5795f;
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(242, 181, 68, 0.35); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* Background: two soft glows and a faint grid that fades out. */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before, .backdrop::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.backdrop::before { width: 720px; height: 720px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(242, 181, 68, 0.28), transparent 65%); animation: roam0 30s ease-in-out infinite alternate; }
.backdrop::after { width: 640px; height: 640px; right: -240px; top: 30%; background: radial-gradient(circle, rgba(79, 209, 139, 0.14), transparent 65%); animation: roam2 38s ease-in-out infinite alternate; }
.orb-bg { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.orb-bg.o1 { left: 35%; top: 55%; background: radial-gradient(circle, rgba(242, 181, 68, 0.18), transparent 65%); animation: roam1 44s ease-in-out infinite alternate; }
.orb-bg.o2 { left: -10%; top: 85%; background: radial-gradient(circle, rgba(79, 209, 139, 0.12), transparent 65%); animation: roam0 52s ease-in-out infinite alternate-reverse; }
@keyframes roam0 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes roam1 { to { transform: translate(-26vw, -38vh) scale(1.2); } }
@keyframes roam2 { to { transform: translate(-22vw, 30vh) scale(0.9); } }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--amber); border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 700; margin-top: 16px; }
.lead { color: var(--text-2); font-size: 19px; max-width: 620px; }
.accent { color: var(--amber); }
.accent-gradient {
  background: linear-gradient(100deg, var(--amber) 10%, var(--amber-2) 45%, var(--amber) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Telegram Star, ∞, and cards that lean in 3D (as in the app) ---- */
.star {
  display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; overflow: visible;
  filter: drop-shadow(0 0 0.3em rgba(255, 190, 60, 0.6));
  animation: star-rock 3s ease-in-out infinite;
}
.star.ink { filter: none; }
/* A big star rocks as a whole, its sparkle a clipped element on top. */
.star-box { position: relative; display: inline-block; animation: star-rock 3s ease-in-out infinite; }
.star-box > .star { display: block; animation: none; }
.star-spark {
  position: absolute; left: 19.5%; top: 13.5%; width: 19%; height: 19%; background: #fff; pointer-events: none;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  opacity: 0; animation: star-spark 2.6s ease-in-out infinite; animation-delay: inherit;
}
@keyframes star-rock { 0%, 100% { transform: rotate(-7deg) scale(1); } 50% { transform: rotate(8deg) scale(1.1); } }
@keyframes star-spark { 0%, 62%, 100% { opacity: 0; transform: scale(0.2); } 76% { opacity: 1; transform: scale(1.15); } }

.inf { width: 1.9em; height: 0.95em; overflow: visible; vertical-align: middle; }
.inf path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5.5; }
.inf-base { stroke: currentColor; }
.inf-comet { stroke: #fff4d6; stroke-dasharray: 24 76; opacity: 0.55; animation: inf-run 3.2s linear infinite; }
.inf-head { stroke-dasharray: 3 97; opacity: 1; filter: drop-shadow(0 0 3px #fff); animation: inf-head 3.2s linear infinite; }
@keyframes inf-run { to { stroke-dashoffset: -100; } }
@keyframes inf-head { from { stroke-dashoffset: -21; } to { stroke-dashoffset: -121; } }

.holo {
  transform: perspective(1000px) translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s var(--ease);
}
.holo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at calc(40% - var(--px, 0) * 40%) calc(10% - var(--py, 0) * 40%), rgba(255, 244, 214, 0.07), transparent 55%),
    linear-gradient(105deg, transparent 40%, rgba(255, 244, 214, 0.05) 50%, transparent 60%) no-repeat;
  background-size: 100% 100%, 250% 100%;
  background-position: 0 0, 160% 0;
  animation: holo-shine 9s ease-in-out infinite;
  animation-delay: var(--shine-delay, 0s);
}
/* A faint warm sheen crosses the card now and then; the cards take turns. */
@keyframes holo-shine { 0% { background-position: 0 0, 160% 0; } 30%, 100% { background-position: 0 0, -60% 0; } }
.holo.off::before { display: none; }
.holo > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .star, .star-box, .star-spark, .inf path, .holo::before { animation: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 18px; border: 1px solid transparent;
  font: 700 16px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 12px 30px -12px rgba(242, 181, 68, 0.7); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(242, 181, 68, 0.85); background: #f5c05c; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a4046; background: rgba(255, 255, 255, 0.06); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; }

/* ---- header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.scrolled { background: rgba(14, 16, 18, 0.72); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--border); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 20px/1 var(--display); }
.brand img { width: 38px; height: 38px; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.header .actions { margin-left: auto; display: flex; gap: 10px; }
.menu, .menu-in { display: contents; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.menu-btn svg { margin: auto; }
/* The three lines turn into a cross. */
.menu-btn path { transform-origin: 12px 12px; transition: transform 0.4s var(--ease), opacity 0.25s ease; }
.header.open .menu-btn .l1 { transform: rotate(45deg) translateY(5px); }
.header.open .menu-btn .l2 { opacity: 0; transform: scaleX(0.2); }
.header.open .menu-btn .l3 { transform: rotate(-45deg) translateY(-5px); }

/* ---- hero ---- */
.hero { padding: 40px 0 80px; position: relative; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.04; font-weight: 800; margin: 22px 0 22px; }
.hero .lead { font-size: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 15px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(22, 25, 28, 0.7);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.pill b { background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; }

/* The stage: the live app in a phone (demo.js), rings and floating chips.
   Its colour follows the app: amber when off, green when connected. */
.stage { position: relative; height: 690px; display: grid; place-items: center; --st: 242, 181, 68; }
.stage[data-state="on"] { --st: 79, 209, 139; }
.stage .ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--st), 0.18); transform: translate(-50%, -50%); transition: border-color 0.9s;
}
.stage .ring.r1 { width: 470px; height: 470px; }
.stage .ring.r2 { width: 640px; height: 640px; border-color: rgba(var(--st), 0.08); }
.stage .glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
  background-color: rgb(var(--st)); opacity: 0.2;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
  transition: background-color 0.9s; animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.14; } }
.phone {
  position: relative; z-index: 2; width: 312px; padding: 11px; border-radius: 52px;
  background: linear-gradient(160deg, #2e3338, #121417 40%, #1d2125);
  box-shadow: 0 60px 100px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 0 0 2px #0a0b0d;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2deg);
  transition: transform 0.7s var(--ease);
  animation: float 7s ease-in-out infinite;
  will-change: transform, translate; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
@keyframes float { 50% { translate: 0 -12px; } }
.display {
  position: relative; aspect-ratio: 390 / 844; border-radius: 41px; overflow: hidden; background: #0e1012;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* The app's screen at its own size (390×844), scaled to the phone. */
.screen {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden;
  transform: scale(var(--k, 0.79)); transform-origin: 0 0;
  background: #0e1012; color: var(--text); font: 500 15px/1.35 var(--body); text-align: left;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  --glow: var(--amber);
}
.screen[data-state="on"] { --glow: var(--green); }
.screen button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.screen svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen h3, .screen p { margin: 0; }

.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; background-color: var(--glow); transition: background-color 0.9s;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.aurora .a1 { width: 585px; height: 585px; left: -214px; top: -191px; opacity: 0.16; animation: au1 24s ease-in-out infinite; }
.aurora .a2 { width: 468px; height: 468px; left: 97px; top: 120px; opacity: 0.07; background-color: var(--amber); animation: au2 24s ease-in-out infinite; }
.aurora .a3 { width: 546px; height: 546px; left: -78px; top: 529px; opacity: 0.08; animation: au3 24s ease-in-out infinite; }
@keyframes au1 { 25% { transform: translateX(47px); } 75% { transform: translateX(-47px); } }
@keyframes au2 { 33% { transform: translate(-39px, 20px); } 66% { transform: translate(20px, -20px); } }
@keyframes au3 { 50% { transform: translateX(78px); } }

.statusbar {
  position: absolute; z-index: 7; top: 0; left: 0; right: 0; height: 52px; padding: 6px 30px 0 44px;
  display: flex; align-items: center; justify-content: space-between; font: 700 16px/1 var(--body); pointer-events: none;
}
.island { position: absolute; left: 50%; top: 12px; width: 114px; height: 34px; margin-left: -57px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { fill: currentColor; stroke: none; height: 12px; width: 18px; }
.sb-icons svg:nth-child(2) { width: 16px; }
.sb-icons svg.battery { width: 27px; height: 13px; }

.views { position: absolute; inset: 0; }
.view {
  position: absolute; inset: 0; padding: 62px 20px 118px; overflow: hidden auto; scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: translateX(22px);
  transition: opacity 0.22s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.view.left { transform: translateX(-22px); }
.view::-webkit-scrollbar { display: none; }
.view.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease 0.06s, transform 0.5s var(--ease), visibility 0s; }

/* Home */
.home { text-align: center; }
.app-head { display: flex; align-items: center; gap: 10px; height: 36px; text-align: left; }
.app-head img { width: 32px; height: 32px; transform-origin: 50% 100%; }
.app-head img.hop { animation: hop 0.7s var(--ease); }
@keyframes hop { 0% { transform: none; } 45% { transform: translateY(-8px); } 100% { transform: none; } }
.app-head b { font: 600 18px/1 var(--display); }
.safe {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(79, 209, 139, 0.12); color: var(--green); font: 600 13px/1.2 var(--body);
  opacity: 0; transform: scale(0.85); transition: opacity 0.35s, transform 0.45s var(--ease);
}
.safe svg { width: 16px; height: 16px; }
.home[data-state="on"] .safe { opacity: 1; transform: none; }
.home .title { position: relative; z-index: 1; margin-top: 30px; min-height: 34px; font: 600 27px/1.25 var(--display); transition: color 0.4s; }
.home[data-state="on"] .title { color: var(--green); }
.home[data-state="busy"] .title { color: var(--amber); }
.home .sub { position: relative; z-index: 1; margin-top: 6px; min-height: 21px; color: var(--text-2); font-size: 15px; }
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; }
.swap .cur { animation: swap-in 0.32s var(--ease) 0.1s both; }
.swap .old { animation: swap-out 0.16s ease-in forwards; }
@keyframes swap-in { from { opacity: 0; transform: translateY(25%); } }
@keyframes swap-out { to { opacity: 0; } }
.orb { position: relative; width: 262px; height: 262px; margin: 22px auto 0; }
.orb canvas { position: absolute; left: -104px; top: -104px; width: 470px; height: 470px; max-width: none; pointer-events: none; }
.screen .orb-hit {
  position: absolute; left: 50%; top: 50%; width: 173px; height: 173px; margin: -86.5px 0 0 -86.5px;
  border-radius: 50%; touch-action: manipulation;
}
.screen .orb-hit:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }
.uptime { margin-top: 16px; font: 500 17px/1 var(--mono); letter-spacing: 0.6px; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; text-align: left; }
.stat {
  position: relative; overflow: hidden; padding: 12px 12px 30px; border-radius: 16px; background: #16191c; border: 1px solid #22272b;
  --c: var(--muted); transition: border-color 0.6s, box-shadow 0.6s;
}
.stat span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.stat span svg { width: 14px; height: 14px; transition: color 0.6s; }
.stat b { display: block; margin-top: 6px; font: 500 16px/1.2 var(--mono); white-space: nowrap; transition: color 0.6s; }
.stat b small { font-size: 12px; }
.stat.lit { border-color: color-mix(in srgb, var(--c) 38%, transparent); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 14%, transparent); }
.stat.lit b, .stat.lit .si { color: var(--c); }
.stat.lit[data-stat="down"] .si { animation: st-down 1.4s ease-in-out infinite; }
.stat.lit[data-stat="up"] .si { animation: st-up 1.4s ease-in-out infinite; }
.stat.lit[data-stat="ping"] .si { animation: st-beat 1.4s ease-in-out infinite; }
@keyframes st-down { 50% { transform: translateY(2.2px); } }
@keyframes st-up { 50% { transform: translateY(-2.2px); } }
@keyframes st-beat { 25% { transform: scale(1.14); } 50% { transform: none; } }
.screen .stat .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 28px; overflow: visible; transition: opacity 0.6s; }
.screen .stat .spark .area { fill: var(--c); fill-opacity: 0.2; stroke: none; }
.screen .stat .spark .line { fill: none; stroke: var(--c); stroke-opacity: 0.65; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.stat:not(.lit) .spark { opacity: 0.35; }

/* Panels, rows and buttons, as in the app */
.screen .panel {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px;
  background: #16191c; border: 1px solid #22272b; transition: background 0.25s, border-color 0.3s, transform 0.15s;
}
.screen button.panel:hover, .screen .row:hover, .screen button.srow:hover { background-color: #1a1d21; }
.screen button.panel:active, .screen .row:active, .screen button.srow:active { transform: scale(0.985); }
.screen .place { margin-top: 14px; }
.screen .ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #1e2226; color: var(--text-2); transition: background 0.3s, color 0.3s; }
.screen .ico svg { width: 20px; height: 20px; }
.screen .ico.auto { background: var(--amber); color: var(--amber-ink); }
.place .ico .bolt, .place .ico.auto .globe { display: none; }
.place .ico .globe, .place .ico.auto .bolt { display: block; }
.screen .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.screen .txt b { font: 600 16px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .txt small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.screen .chev { width: 20px; height: 20px; flex: none; color: var(--muted); }
.screen-title { margin: 8px 4px 16px; font: 600 24px/1.2 var(--display); }
.screen .label { padding: 22px 6px 8px; font: 700 12px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* Locations */
.screen .pick-auto.sel { background: #1b1a14; border-color: var(--amber); }
.screen .check { width: 22px; height: 22px; flex: none; color: var(--amber); transform: scale(0); transition: transform 0.14s ease-in; }
.screen .sel .check { transform: scale(1); transition: transform 0.24s var(--ease); }
.screen .panel.list { display: block; padding: 0; overflow: hidden; }
.screen .row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; border-top: 1px solid #22272b; transition: background 0.25s, transform 0.15s; }
.screen .row:first-child { border-top: 0; }
.screen .row .g { width: 22px; height: 22px; flex: none; color: var(--text-2); transition: color 0.3s; }
.screen .row.sel { background: #1b1a14; }
.screen .row.sel .g { color: var(--amber); }
.screen .foot { margin: 16px 6px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.place-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 12px; }
/* The country's flag, round and under glass, as the app draws it (Flag in
   app/lib/flags.dart); a light passes over it once as the screen opens. */
.place-head .flag {
  position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden;
  border: 1px solid #2a2f34; box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.3);
}
.screen .place-head .flag svg { width: 100%; height: 100%; stroke: none; }
.place-head .flag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.33) 50%, transparent 70%);
}
.view.locs.on .place-head .flag::after { animation: flag-glint 1.1s ease-in-out 0.25s both; }
@keyframes flag-glint { from { opacity: 1; transform: translateX(-110%); } to { opacity: 1; transform: translateX(110%); } }
.place-head .txt b { font-size: 16px; font-weight: 700; }
.screen .row.route { padding-left: 66px; border-top: 1px solid #22272b; }

/* Subscription */
.screen .user { padding: 12px 12px 12px 14px; gap: 12px; }
.user .avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #1e2226; display: grid; place-items: center; color: var(--amber); }
.user .avatar svg { width: 22px; height: 22px; }
.screen .user .txt b { font-size: 15px; font-weight: 700; }
.screen .user .out { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid #2a2f34; color: var(--text-2); font: 600 13px/1 var(--body); }
.pass {
  position: relative; overflow: hidden; margin-top: 12px; padding: 22px 22px 20px; border-radius: 24px; color: var(--amber-ink);
  background: linear-gradient(135deg, #ffd27a, #f2b544 55%, #e39a2e); box-shadow: 0 18px 40px -18px rgba(242, 181, 68, 0.55);
}
.pass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 235, 0.45) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; animation: pass-shine 6s ease-in-out infinite;
}
@keyframes pass-shine { 0% { background-position: 160% 0; } 35%, 100% { background-position: -60% 0; } }
.pass-hen { position: absolute; right: -16px; bottom: -22px; width: 150px; height: 150px; opacity: 0.22; mix-blend-mode: multiply; }
.pass-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.pass-top b { font: 700 18px/1 var(--display); }
.pass .badge { padding: 7px 12px; border-radius: 999px; background: var(--amber-ink); color: var(--amber); font: 700 12px/1 var(--body); }
.pass-days { position: relative; display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.pass-days b { font: 700 44px/1 var(--display); }
.pass-days span { font: 600 16px/1 var(--body); }
.pass-bar { position: relative; height: 8px; margin-top: 18px; border-radius: 4px; background: rgba(23, 18, 10, 0.16); overflow: hidden; }
.pass-bar i { position: absolute; inset: 0 23% 0 0; border-radius: 4px; background: var(--amber-ink); }
.pass-foot { position: relative; display: flex; justify-content: space-between; margin-top: 10px; font: 600 13px/1.2 var(--body); }
.screen .btn1, .screen .btn2 {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 12px;
  border-radius: 18px; font: 600 16px/1 var(--body); transition: transform 0.15s, filter 0.2s;
}
.screen .btn1 { background: var(--amber); color: var(--amber-ink); font-weight: 700; }
.screen .btn2 { background: #16191c; border: 1px solid #2a2f34; }
.screen .btn1 svg, .screen .btn2 svg { width: 20px; height: 20px; }
.screen .btn1:hover { filter: brightness(1.06); }
.screen .btn1:active, .screen .btn2:active { transform: scale(0.98); }
.screen .btn1.small { height: 48px; margin-top: 14px; }
.screen .invite { display: block; margin-top: 12px; background: #1b1a14; border-color: var(--amber); }
.inv-head { display: flex; align-items: center; gap: 12px; }
.inv-head .gift { width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; animation: gift 4s ease-in-out infinite; }
.inv-head .gift svg { width: 22px; height: 22px; }
.screen .inv-head small { color: var(--amber); font-weight: 700; }
.screen .invite p { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
@keyframes gift { 0%, 70%, 100% { transform: none; } 85% { transform: rotate(-6deg) translateY(-2px); } }

/* Settings */
.screen .srow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 10px 14px 16px; border-top: 1px solid #22272b; transition: background 0.25s, transform 0.15s; }
.screen .panel.list > .srow:first-child { border-top: 0; }
.srow .ic { width: 20px; height: 20px; flex: none; color: var(--amber); }
.screen .srow .txt small { color: var(--text-2); font-size: 13.5px; }
.screen .srow .chev { margin-right: 6px; }
.srow.spin .spinme { animation: spin 0.8s var(--ease); }
.screen .switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: #1e2226; border: 2px solid #5a5650; transition: background 0.25s, border-color 0.25s; }
.screen .switch i {
  position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #8c877e;
  transition: left 0.3s var(--ease), top 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), background 0.25s;
}
.screen .switch[aria-checked="true"] { background: var(--amber); border-color: var(--amber); }
.screen .switch[aria-checked="true"] i { left: 22px; top: 2px; width: 24px; height: 24px; background: var(--amber-ink); }

/* The tab bar: glass, with the lit pill that stretches as it moves */
.tabbar {
  position: absolute; z-index: 6; left: 14px; right: 14px; bottom: 20px; height: 70px; padding: 6px; border-radius: 28px;
  background: rgba(17, 19, 22, 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.32);
}
.tabs-in { position: relative; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar .pill {
  position: absolute; top: 0; bottom: 0; left: 3px; width: calc(25% - 6px); border-radius: 22px;
  background: linear-gradient(rgba(242, 181, 68, 0.22), rgba(242, 181, 68, 0.07));
  border: 1px solid rgba(242, 181, 68, 0.3); box-shadow: 0 2px 12px rgba(242, 181, 68, 0.14);
}
.tabbar .pill::before { content: ""; position: absolute; left: 16px; right: 16px; top: 1px; height: 1.2px; background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.4), transparent); }
.tabbar .touch {
  position: absolute; left: var(--x, 12.5%); top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 181, 68, 0.22), transparent); opacity: 0; pointer-events: none;
}
.tabbar .touch.go { animation: touch 0.7s var(--ease); }
@keyframes touch { from { opacity: 1; transform: scale(0.29); } to { opacity: 0; transform: scale(1); } }
.screen .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font: 700 11.5px/1 var(--body); transition: color 0.3s, transform 0.26s var(--ease);
}
.screen .tabbar button:active { transform: scale(0.9); transition-duration: 0.11s; }
.tabbar svg { width: 24px; height: 24px; }
.screen .tabbar .sel { color: var(--amber); }
.tabbar .fillable { transition: fill 0.3s; }
.tabbar .sel .fillable { fill: rgba(242, 181, 68, 0.16); }
.tabbar .knob { fill: #111316; transition: transform 0.6s var(--ease); }
.tabbar .sel .knob { transform: translateX(-3px); }
.tabbar .sel .knob.k2 { transform: translateX(3px); }
.tabbar .sel svg { animation: glyph 0.9s var(--ease); }
@keyframes glyph { 35% { transform: translateY(-2px) scale(1.07); } }

.toast {
  position: absolute; z-index: 8; left: 50%; bottom: 106px; width: max-content; max-width: 320px; padding: 12px 16px;
  border-radius: 14px; background: #2a2f34; font: 600 14px/1.35 var(--body); text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.35s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Chips around the phone, beside the button where the screen is empty. */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: rgba(22, 25, 28, 0.86); border: 1px solid var(--line); border-radius: 18px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  font-weight: 700; font-size: 15px; white-space: nowrap; animation: float-chip 6s ease-in-out infinite; pointer-events: none;
  transition: opacity 0.4s;
}
.stage[data-tab]:not([data-tab="0"]) .chip { opacity: 0; }
.chip small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.chip .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; transition: background 0.6s, color 0.6s; }
.chip .dot svg { width: 18px; height: 18px; }
.chip.c1 { right: calc(50% + 92px); top: 37%; }
.chip.c1 .dot { background: rgba(242, 181, 68, 0.14); color: var(--amber); }
.stage[data-state="on"] .chip.c1 .dot { background: rgba(79, 209, 139, 0.16); color: var(--green); }
.chip.c2 { left: calc(50% + 96px); top: 27%; animation-delay: -2s; }
.chip.c2 .dot { background: rgba(242, 181, 68, 0.14); color: var(--amber); }
.chip.c3 { left: calc(50% + 84px); top: 47%; animation-delay: -4s; }
.chip.c3 .dot { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.chip .mono { font-family: var(--mono); }
@keyframes float-chip { 50% { transform: translateY(-10px); } }
.try {
  position: absolute; z-index: 3; right: calc(50% + 70px); top: 41%; display: flex; align-items: center; gap: 2px;
  color: var(--amber); font: 700 15px/1.25 var(--body); text-align: right; white-space: nowrap;
  transform: translateY(-50%); transition: opacity 0.6s; pointer-events: none;
  text-shadow: 0 2px 12px rgba(14, 16, 18, 0.9);
}
/* Two columns but a narrow stage: the third chip would run off the page. */
@media (min-width: 1021px) and (max-width: 1240px) { .chip.c3 { display: none; } }
.try svg { width: 90px; height: 44px; flex: none; animation: nudge 2.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(242, 181, 68, 0.5)); }
.stage.tried .try { opacity: 0; }
.stage[data-tab]:not([data-tab="0"]) .try { opacity: 0; }
.stage:not(.tried) .chip.c1 { opacity: 0; }
@keyframes nudge { 50% { transform: translateX(7px); } }

/* Feathers drifting across the hero. */
/* They rise by transform only (cqh: the height of their box), which the
   compositor can run without laying the page out every frame. */
.feathers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; }
.feather { position: absolute; top: 105%; width: 16px; opacity: 0; animation: drift 14s linear infinite; }
.feather path { fill: var(--amber); }
.feather.f2 path, .feather.f5 path { fill: var(--green); }
.feather.f1 { left: 8%; animation-delay: 0s; }
.feather.f2 { left: 30%; animation-delay: -3s; width: 12px; }
.feather.f3 { left: 55%; animation-delay: -6s; }
.feather.f4 { left: 78%; animation-delay: -9s; width: 11px; }
.feather.f5 { left: 92%; animation-delay: -11s; width: 14px; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.55; }
  50% { transform: translate(40px, -57.5vh) rotate(160deg); transform: translate(40px, -57.5cqh) rotate(160deg); }
  90% { opacity: 0.35; }
  100% { transform: translate(-20px, -115vh) rotate(320deg); transform: translate(-20px, -115cqh) rotate(320deg); opacity: 0; }
}

/* ---- features ---- */
.head { max-width: 700px; margin-bottom: 56px; }
.head.center { margin: 0 auto 56px; text-align: center; }
.head.center .lead { margin: 18px auto 0; }
.head .lead { margin-top: 18px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: linear-gradient(180deg, rgba(27, 31, 35, 0.9), rgba(22, 25, 28, 0.9));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(242, 181, 68, 0.35); box-shadow: 0 30px 60px -30px rgba(242, 181, 68, 0.25); }
/* A card that leans (the plans) keeps leaning when lifted, following the
   pointer closely. */
.card.holo:hover {
  transform: perspective(1000px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.15s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card .ico {
  position: relative; isolation: isolate; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(242, 181, 68, 0.12); color: var(--amber); margin-bottom: 22px;
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.card .ico svg { width: 26px; height: 26px; }
.card .ico.green { background: rgba(79, 209, 139, 0.12); color: var(--green); }
/* On hover the tile lights up, a ring goes out and the icon draws itself
   anew (site.js replays it); a light sweeps across. */
.card:hover .ico {
  transform: translateY(-3px);
  background: linear-gradient(140deg, rgba(242, 181, 68, 0.34), rgba(242, 181, 68, 0.1));
  box-shadow: 0 0 0 1px rgba(242, 181, 68, 0.42) inset, 0 14px 30px -12px rgba(242, 181, 68, 0.75);
}
.card:hover .ico.green {
  background: linear-gradient(140deg, rgba(79, 209, 139, 0.32), rgba(79, 209, 139, 0.08));
  box-shadow: 0 0 0 1px rgba(79, 209, 139, 0.42) inset, 0 14px 30px -12px rgba(79, 209, 139, 0.65);
}
.card .ico::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 244, 214, 0.38) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
}
.card .ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid currentColor; opacity: 0; pointer-events: none; }
.card .ico.play::before { animation: ico-sweep 0.9s var(--ease); }
.card .ico.play::after { animation: ico-ring 1s var(--ease); }
.card .ico.play .dr { stroke-dasharray: 1; animation: ico-draw 0.9s var(--ease) both; }
.card .ico.play .dr:nth-child(2) { animation-delay: 0.12s; }
.card .ico.play .dr:nth-child(3) { animation-delay: 0.24s; }
@keyframes ico-draw { from { stroke-dashoffset: 1; } }
@keyframes ico-ring { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes ico-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 230px; gap: 30px; align-items: center; padding-bottom: 0; overflow: hidden; }
.card.wide > div { padding-bottom: 30px; }
/* The app screen peeks out of the card's bottom edge. */
.card.wide img { align-self: end; width: 100%; height: 300px; object-fit: cover; object-position: top; border-radius: 26px 26px 0 0; border: 7px solid #22262a; border-bottom: 0; box-shadow: var(--shadow); transition: transform 0.5s var(--ease); }
.card.wide:hover img { transform: translateY(-8px); }
/* Traffic in disguise: amber VPN packets slide into a lens and come out
   the other side as green HTTPS and QUIC (cqw: the width of the lane). */
.disguise-card { display: flex; flex-direction: column; }
.disguise-card > p { margin-bottom: 26px; }
.disguise {
  position: relative; height: 112px; margin-top: auto; overflow: hidden; container-type: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.disguise::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, rgba(242, 181, 68, 0.4), rgba(242, 181, 68, 0.15) 45%, rgba(79, 209, 139, 0.15) 55%, rgba(79, 209, 139, 0.4));
}
.disguise .lens {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.14), rgba(30, 44, 37, 0.9) 48%, rgba(16, 22, 19, 0.96) 72%);
  border: 1px solid rgba(79, 209, 139, 0.4); box-shadow: 0 0 30px -4px rgba(79, 209, 139, 0.35), inset 0 0 16px rgba(79, 209, 139, 0.14);
}
.disguise .lens::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(79, 209, 139, 0.3);
  animation: lens-pulse 3s ease-in-out infinite;
}
@keyframes lens-pulse { 0%, 100% { opacity: 0.2; transform: scale(0.94); } 50% { opacity: 0.8; transform: none; } }
.pkt {
  position: absolute; left: 0; top: 50%; margin-top: -14px; display: grid; justify-items: center;
  animation: pkt-move 6s linear infinite;
}
.pkt.p2 { animation-delay: -2s; }
.pkt.p3 { animation-delay: -4s; }
.pkt b {
  grid-area: 1 / 1; height: 28px; padding: 0 11px; border-radius: 999px; display: grid; place-items: center;
  font: 700 12px/1 var(--mono); letter-spacing: 0.04em;
}
.pkt .raw { color: var(--amber); background: rgba(242, 181, 68, 0.14); border: 1px solid rgba(242, 181, 68, 0.45); animation: pkt-raw 6s linear infinite; animation-delay: inherit; }
.pkt .out { color: var(--green); background: rgba(79, 209, 139, 0.14); border: 1px solid rgba(79, 209, 139, 0.45); opacity: 0; animation: pkt-out 6s linear infinite; animation-delay: inherit; }
@keyframes pkt-move {
  from { transform: translateX(-100%); }
  to { transform: translateX(380px); transform: translateX(100cqw); }
}
@keyframes pkt-raw { 0%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pkt-out { 0%, 50% { opacity: 0; transform: scale(0.9); } 57%, 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pkt { transform: translateX(10cqw); }
  .pkt.p2 { display: none; }
  .pkt.p3 { transform: translateX(calc(90cqw - 100%)); }
  .pkt.p3 .raw { opacity: 0; }
  .pkt.p3 .out { opacity: 1; }
}
.tag { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--green); background: rgba(79, 209, 139, 0.12); border-radius: 999px; padding: 5px 12px; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 181, 68, 0.6), rgba(79, 209, 139, 0.6), transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease) 0.3s;
}
.steps.in::before { transform: scaleX(1); }
.steps .step { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.steps.in .step { opacity: 1; transform: none; }
.steps.in .step:nth-child(2) { transition-delay: 0.25s; }
.steps.in .step:nth-child(3) { transition-delay: 0.5s; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step .num {
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 30px; display: grid; place-items: center;
  font: 800 30px/1 var(--display); color: var(--amber-ink); background: var(--amber);
  box-shadow: 0 20px 40px -18px rgba(242, 181, 68, 0.7);
}
.step:nth-child(2) .num { background: var(--surface-2); color: var(--amber); border: 1px solid var(--line); box-shadow: none; }
.step:nth-child(3) .num { background: var(--green); color: var(--green-ink); box-shadow: 0 20px 40px -18px rgba(79, 209, 139, 0.7); }
/* Now and then a light runs along the line, under the tiles, and each tile
   glows as it passes (the delays follow the light's eased run). */
.steps { container-type: inline-size; }
.steps .step { z-index: 1; }
.steps::after {
  content: ""; position: absolute; left: 12%; top: 42px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; pointer-events: none;
  background: #fff4d6; box-shadow: 0 0 12px 3px rgba(242, 181, 68, 0.7), 0 0 30px 8px rgba(242, 181, 68, 0.22); opacity: 0;
}
.steps.in::after { animation: step-run 5s ease-in-out 1.9s infinite; }
@keyframes step-run {
  0% { transform: translateX(0); opacity: 0; }
  8%, 42% { opacity: 1; }
  50%, 100% { transform: translateX(62vw); transform: translateX(76cqw); opacity: 0; }
}
.step .num { position: relative; }
.step .num::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(255, 244, 214, 0.45), 0 0 38px 4px rgba(242, 181, 68, 0.55);
}
.step:nth-child(3) .num::after { box-shadow: 0 0 0 2px rgba(220, 255, 236, 0.45), 0 0 38px 4px rgba(79, 209, 139, 0.55); }
.steps.in .num::after { animation: num-glow 5s ease-in-out infinite; }
.steps.in .step:nth-child(1) .num::after { animation-delay: 2.22s; }
.steps.in .step:nth-child(2) .num::after { animation-delay: 2.85s; }
.steps.in .step:nth-child(3) .num::after { animation-delay: 3.48s; }
@keyframes num-glow { 0% { opacity: 0; } 6% { opacity: 1; } 24%, 100% { opacity: 0; } }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { margin: 0 auto; color: var(--text-2); max-width: 300px; }

/* ---- screens ---- */
/* Four phones stacked, fanning out as they scroll in. */
.screens { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.shot { width: 228px; text-align: center; position: relative; transition: transform 1.2s var(--ease) 0.15s; }
.shot.s2, .shot.s3 { width: 252px; z-index: 1; }
.shot.s1 { transform: translateX(95%) scale(0.92); }
.shot.s2 { transform: translateX(30%); }
.shot.s3 { transform: translateX(-30%); }
.shot.s4 { transform: translateX(-95%) scale(0.92); }
.screens.in .shot.s1 { transform: translateY(34px) rotate(-6deg); }
.screens.in .shot.s2 { transform: translateY(6px) rotate(-2deg); }
.screens.in .shot.s3 { transform: translateY(6px) rotate(2deg); }
.screens.in .shot.s4 { transform: translateY(34px) rotate(6deg); }
.shot .frame { border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #2a2f34, #121417 45%, #1d2125); box-shadow: var(--shadow); transition: transform 0.5s var(--ease); }
.shot .frame img { border-radius: 27px; }
.shot:hover .frame { transform: translateY(-10px) rotate(-1.5deg); }
.shot p { margin: 18px 0 0; color: var(--text-2); font-weight: 600; font-size: 15px; }

/* ---- pricing ---- */
.trial-banner {
  display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap;
  padding: 22px 26px; margin-bottom: 26px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(79, 209, 139, 0.14), rgba(79, 209, 139, 0.04)); border: 1px solid rgba(79, 209, 139, 0.3);
}
/* A green light runs round its border, like the popular plan's. */
.trial-banner { position: relative; }
.trial-banner::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, rgba(160, 245, 200, 0.95) 310deg, rgba(79, 209, 139, 0.5) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 6s linear infinite;
}
.trial-banner h3 { font-size: 20px; }
.trial-banner p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.addons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.addon { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); white-space: nowrap; transition: border-color 0.2s, transform 0.2s; }
.addon:hover { border-color: var(--amber); transform: translateY(-1px); }
.addon .star { width: 1.1em; height: 1.1em; }
.plan { display: flex; flex-direction: column; padding: 34px 30px 30px; }
.plan .name { font: 700 15px/1 var(--body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.plan .price b { font: 800 52px/1 var(--display); }
.plan .price span { color: var(--amber); font: 700 26px/1 var(--display); }
.plan .price .star { width: 40px; height: 40px; align-self: center; }
.plan .price .star-box { align-self: center; }
.plan .per .star { width: 1em; height: 1em; }
.plan .per { color: var(--muted); font-size: 15px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; color: var(--text-2); font-size: 16px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.best { border-color: rgba(242, 181, 68, 0.55); background: linear-gradient(180deg, rgba(242, 181, 68, 0.1), rgba(22, 25, 28, 0.95) 45%); box-shadow: 0 40px 80px -40px rgba(242, 181, 68, 0.45); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--amber); color: var(--amber-ink); font: 800 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---- download ---- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download { display: flex; flex-direction: column; gap: 6px; }
.download .ico { margin-bottom: 18px; }
.download .meta { color: var(--muted); font-size: 14px; }
.download .btn { margin-top: 22px; }
.download.soon { opacity: 0.8; }
.soon-tag { align-self: flex-start; margin-top: 22px; padding: 10px 16px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---- FAQ ---- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(242, 181, 68, 0.35); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font: 700 18px/1.4 var(--body); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
/* The bottom space is inside the answer's last line, so a height of 0
   really is closed (the slide has nothing left to jump over). */
.faq .answer { padding: 0 26px; color: var(--text-2); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer > :last-child { margin-bottom: 0; padding-bottom: 24px; }
/* Closing: the chevron and the highlight go back with the slide. */
.faq details.closing { border-color: var(--border); background: var(--surface); }
.faq details.closing summary::after { transform: rotate(45deg) translateY(-3px); }

/* ---- final CTA ---- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 70px 30px 64px; border-radius: 34px;
  background: radial-gradient(ellipse at 50% 120%, rgba(242, 181, 68, 0.32), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(79, 209, 139, 0.1), transparent 55%), var(--surface);
  border: 1px solid var(--border);
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 240deg, rgba(242, 181, 68, 0.95) 300deg, rgba(79, 209, 139, 0.9) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 7s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }
.final::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(242, 181, 68, 0.13), transparent 50%);
}
.final:hover::after { opacity: 1; }
.final > :not(.final-floor):not(.feathers) { position: relative; z-index: 1; }
.final-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 58%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242, 181, 68, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 181, 68, 0.2) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
  animation: floor 3.2s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.final .feathers .feather { animation-duration: 11s; }
.final-hen {
  display: grid; place-items: center; width: 160px; height: 160px; margin: 0 auto 18px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.final-hen::before {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 214, 120, 0.32), rgba(242, 181, 68, 0.08) 62%, transparent 72%);
  box-shadow: 0 0 70px rgba(242, 181, 68, 0.3); animation: breathe 4s ease-in-out infinite;
}
.final-hen .rip { position: absolute; inset: 30px; border-radius: 50%; border: 1.5px solid rgba(242, 181, 68, 0.5); animation: rip 3.6s var(--ease) infinite; pointer-events: none; }
.final-hen .rip.r2 { animation-delay: 1.2s; }
.final-hen .rip.r3 { animation-delay: 2.4s; }
@keyframes rip { from { transform: scale(0.8); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.final-hen img { position: relative; width: 96px; height: 96px; margin: 0; transform-origin: 50% 100%; animation: sway 2.8s ease-in-out infinite; }
@keyframes sway { 25% { transform: translateY(-4px) rotate(-2deg); } 75% { transform: translateY(4px) rotate(2deg); } }
.final-hen:hover img { filter: drop-shadow(0 8px 18px rgba(242, 181, 68, 0.55)); }
.final-hen.hop img { animation: hen-up 0.9s var(--ease); }
@keyframes hen-up { 0% { transform: none; } 40% { transform: translateY(-20px) rotate(-5deg); } 100% { transform: none; } }
.final-hen .puff {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 28px; margin: -14px 0 0 -7px; fill: var(--amber); pointer-events: none;
  animation: puff 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.final-hen .puff.g { fill: var(--green); }
.final-hen .puff.w { fill: var(--text); }
@keyframes puff { from { transform: translate(0, 0) rotate(0deg); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.final h2 { margin-top: 0; }
.final .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; animation: btn-shine 4.5s ease-in-out infinite;
}
@keyframes btn-shine { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
.perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 30px 0 0; padding: 0; }
.perks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(14, 16, 18, 0.6); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s, color 0.3s;
}
.perks li svg { width: 16px; height: 16px; color: var(--green); }
.perks li:hover { border-color: rgba(79, 209, 139, 0.45); color: var(--text); }
.final.in .perks li { opacity: 1; transform: none; }
.final.in .perks li:nth-child(1) { transition-delay: 0.35s; }
.final.in .perks li:nth-child(2) { transition-delay: 0.45s; }
.final.in .perks li:nth-child(3) { transition-delay: 0.55s; }
.final.in .perks li:nth-child(4) { transition-delay: 0.65s; }

/* ---- footer ---- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); margin-top: 110px; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a:hover { color: var(--text); }

/* ---- reveal on scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.hero-in > * { animation: rise 0.9s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.08s; }
.hero-in > *:nth-child(3) { animation-delay: 0.16s; }
.hero-in > *:nth-child(4) { animation-delay: 0.24s; }
.hero-in > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.stage.hero-pop { animation: pop 1.1s var(--ease) 0.2s both; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(0.94); } }

/* ---- forms (personal account) ---- */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.input {
  height: 56px; padding: 0 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: 600 17px/1 var(--body); outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.12); }
.input.code { font: 700 26px/1 var(--mono); letter-spacing: 0.5em; text-align: center; }
.error { color: var(--danger); font-size: 15px; font-weight: 600; min-height: 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(242, 181, 68, 0.25); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 700px; }
  .features, .plans, .downloads { grid-template-columns: 1fr 1fr; }
  .screens { gap: 14px; }
  .shot { width: 23%; }
  .shot.s2, .shot.s3 { width: 25%; }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 1099px) {
  .header > .wrap > .nav { display: none; }
  .menu-btn { display: grid; }
  /* The menu drops down from under the bar, over the page (so nothing
     below moves), its links coming in one after another. */
  .menu {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; grid-template-rows: 0fr; visibility: hidden;
    background: var(--bg); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
    transition: grid-template-rows 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .menu-in { display: block; min-height: 0; overflow: hidden; padding: 0 20px; }
  .menu .nav { display: grid; gap: 4px; margin: 0; padding-top: 4px; }
  .menu .nav a { padding: 12px 0; font-size: 18px; }
  .menu .actions { display: flex; margin: 6px 0 0; padding-bottom: 28px; }
  .menu .actions .btn { flex: 1; }
  .menu .nav a, .menu .actions .btn {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.4s var(--ease), color 0.2s, background 0.2s, border-color 0.2s;
  }
  .header.open { background: var(--bg); border-color: var(--border); }
  .header.open .menu { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.45s var(--ease), visibility 0s; }
  .header.open .menu .nav a, .header.open .menu .actions .btn { opacity: 1; transform: none; }
  .header.open .menu .nav a:nth-child(1) { transition-delay: 0.06s; }
  .header.open .menu .nav a:nth-child(2) { transition-delay: 0.1s; }
  .header.open .menu .nav a:nth-child(3) { transition-delay: 0.14s; }
  .header.open .menu .nav a:nth-child(4) { transition-delay: 0.18s; }
  .header.open .menu .nav a:nth-child(5) { transition-delay: 0.22s; }
  .header.open .menu .actions .btn:nth-child(1) { transition-delay: 0.26s; }
  .header.open .menu .actions .btn:nth-child(2) { transition-delay: 0.3s; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 60px; }
  .hero .lead { font-size: 18px; }
  .hero .ctas .btn { width: 100%; }
  .stage { height: auto; padding: 16px 0 24px; }
  .phone { width: min(300px, 100vw - 56px); }
  .stage .ring.r1 { width: 360px; height: 360px; }
  .stage .ring.r2 { display: none; }
  .stage .glow { width: 340px; height: 340px; }
  .chip, .try { display: none; }
  .features, .plans, .downloads, .steps { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .card.wide img { max-width: 240px; justify-self: center; height: 260px; }
  .steps::before, .steps::after { display: none; }
  /* The screenshots in a row to swipe through, one at a time. */
  .screens {
    justify-content: flex-start; align-items: flex-start; gap: 16px; margin: 0 -20px;
    padding: 6px calc(50vw - min(140px, 35vw)) 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .screens::-webkit-scrollbar { display: none; }
  .shot, .shot.s2, .shot.s3 { flex: 0 0 min(280px, 70vw); width: auto; margin: 0; scroll-snap-align: center; }
  .screens .shot, .screens.in .shot.s1, .screens.in .shot.s2, .screens.in .shot.s3, .screens.in .shot.s4 { transform: none; }
  .final { padding: 60px 22px; }
}

/* Sections out of view hold their animations (site.js marks them), so the
   page costs nothing for what nobody sees. */
.idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }

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

/* Anchors below the sticky header land in full view. */
#invite, #plans { scroll-margin-top: 110px; }

/* Phones: as a screenshot comes to the middle of the row it grows to full
   size and brightens; the ones beside it rest a little smaller. */
@supports (animation-timeline: view()) {
  @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .screens .shot { animation: shot-focus both cubic-bezier(0.65, 0, 0.35, 1); animation-timeline: view(inline); }
  }
}
@keyframes shot-focus { 0%, 100% { transform: scale(0.92); opacity: 0.55; } 50% { transform: none; opacity: 1; } }

/* Stagger steps for reveal-on-scroll (no inline styles: the CSP forbids them). */
[data-reveal][data-d="1"] { --d: 0.09s; }
[data-reveal][data-d="2"] { --d: 0.18s; }
.section-tight { padding-top: 0; }
.lead-center { margin: 18px auto 0; }

/* Plans are rendered after /v1/plans answers; they rise in, one after
   another, once their (always present) container has been revealed. */
.plans:not(.in) .plan { opacity: 0; }
.plans.in .plan { animation: rise 0.8s var(--ease) backwards; }
.plans.in .plan:nth-child(2) { animation-delay: 0.09s; }
.plans.in .plan:nth-child(3) { animation-delay: 0.18s; }

/* ---- header: reading progress ---- */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--amber), var(--amber-2), var(--green));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}
a.pill { transition: border-color 0.25s, transform 0.25s var(--ease); }
a.pill:hover { border-color: rgba(242, 181, 68, 0.5); transform: translateY(-1px); }

/* ---- cards: a soft light follows the pointer ---- */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 181, 68, 0.08), transparent 45%);
}
.card:hover::after { opacity: 1; }

/* ---- headings come in word by word ---- */
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 0.1s); }
.in [data-words] .w, [data-words].in .w { opacity: 1; transform: none; }

/* ---- facts band ---- */
.band { padding: 0 0 20px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; }
.fact { display: grid; gap: 8px; align-content: start; padding: 28px 26px; background: rgba(17, 19, 22, 0.94); transition: background 0.3s; }
.fact:hover { background: rgba(27, 31, 35, 0.94); }
.fact b { font: 800 44px/1 var(--display); background: linear-gradient(100deg, var(--amber), var(--amber-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact > span { color: var(--text-2); font-size: 15px; line-height: 1.4; }

/* ---- split routing in the features ---- */
.split { display: grid; gap: 10px; margin-top: 20px; }
.split .lane {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2);
}
.split .lane b { margin-left: auto; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.split .direct b { color: var(--green); }
.split .tunnel b { color: var(--amber); }
.split .lane i {
  position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(79, 209, 139, 0.22), transparent) no-repeat;
  background-size: 30% 100%; animation: lane-run 2.8s linear infinite;
}
.split .tunnel i { background-image: linear-gradient(90deg, transparent, rgba(242, 181, 68, 0.25), transparent); animation-delay: -1.4s; }
@keyframes lane-run { from { background-position: -45% 0; } to { background-position: 145% 0; } }

/* ---- four routes ---- */
.routes { max-width: 1000px; margin: 0 auto; }
.routes-map { position: relative; aspect-ratio: 1000 / 520; }
.routes-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lanes path { fill: none; stroke: #2a2f34; stroke-width: 3; stroke-linecap: round; transition: stroke 0.5s, opacity 0.5s; }
.lanes path.on { stroke: url(#lane-on); stroke-width: 4; }
.lanes path.hover:not(.on) { stroke: #59616a; stroke-width: 4; }
.hits path { fill: none; stroke: transparent; stroke-width: 36; pointer-events: stroke; cursor: pointer; }
.lanes path.down { stroke: var(--danger); stroke-dasharray: 8 12; opacity: 0.55; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.packets circle { fill: #fff4d6; }
.packets circle.back { fill: #9cf7c8; }
.node {
  position: absolute; top: 50%; width: 12%; aspect-ratio: 1; margin-top: -6%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #262b30, #121417); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 0 0 10px rgba(242, 181, 68, 0.05), var(--shadow);
}
.node .ill { position: absolute; left: 50%; top: 50%; width: 84%; height: 84%; transform: translate(-50%, -50%); overflow: visible; }
.node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(79, 209, 139, 0.75); opacity: 0; pointer-events: none; }
.node.me::after { border-color: rgba(242, 181, 68, 0.75); }
.node.ping::after { animation: node-ping 0.6s ease-out; }
@keyframes node-ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.22); } }
.ill .ill-wave { animation: ill-wave 2.2s linear infinite; }
@keyframes ill-wave { to { transform: translateX(-16px); } }
.ill .ill-glow { transform-box: fill-box; transform-origin: center; animation: ill-glow 2.6s ease-in-out infinite; }
@keyframes ill-glow { 50% { transform: scale(1.25); opacity: 0.32; } }
.ill .ill-check { stroke-dasharray: 1; animation: ill-check 4s var(--ease) infinite; }
@keyframes ill-check { 0%, 8% { stroke-dashoffset: 1; } 30%, 100% { stroke-dashoffset: 0; } }
.ill .ill-hen { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3s ease-in-out infinite; }
.ill .led { fill: #4fd18b; animation: led 1.6s ease-in-out infinite; }
.ill .led.a { fill: #f2b544; }
.ill .led.l2 { animation-delay: -0.4s; } .ill .led.l3 { animation-delay: -0.9s; } .ill .led.l4 { animation-delay: -1.3s; animation-duration: 1.1s; }
.ill .led.l5 { animation-delay: -0.2s; animation-duration: 2.1s; } .ill .led.l6 { animation-delay: -1.1s; }
@keyframes led { 50% { opacity: 0.25; } }
.node.me { left: 4%; }
.node.srv { right: 4%; box-shadow: 0 0 0 10px rgba(79, 209, 139, 0.06), var(--shadow); animation: srv-pulse 2.6s ease-in-out infinite; }
@keyframes srv-pulse { 50% { box-shadow: 0 0 0 18px rgba(79, 209, 139, 0.02), var(--shadow); } }
.node small { position: absolute; top: 112%; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 14px/1.2 var(--body); color: var(--text-2); }
.lane-tag {
  position: absolute; left: 50%; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: #16191c; border: 1px solid var(--line); font: 700 13px/1 var(--body); color: var(--text-2);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.lane-tag.t0 { top: 18.3%; } .lane-tag.t1 { top: 39.9%; } .lane-tag.t2 { top: 60.1%; } .lane-tag.t3 { top: 81.7%; }
.lane-tag { cursor: pointer; }
.lane-tag.hover:not(.on), .lane-tag:hover:not(.on) { border-color: rgba(242, 181, 68, 0.6); color: var(--text); }
.lane-tag.on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 22px -8px rgba(242, 181, 68, 0.8); }
.routes-map.manual .lane-tag.on { background: var(--green); border-color: var(--green); color: var(--green-ink); box-shadow: 0 8px 22px -8px rgba(79, 209, 139, 0.8); }
.lane-tag.down { color: var(--danger); border-color: rgba(229, 121, 95, 0.5); text-decoration: line-through; }
.route-mode {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: fit-content; margin: 0 auto 30px; padding: 5px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.route-mode button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 13px; background: none; color: var(--text-2); font: 700 15px/1 var(--body); cursor: pointer; transition: color 0.35s;
}
.route-mode button:hover { color: var(--text); }
.route-mode button svg { width: 17px; height: 17px; }
.route-mode button[aria-pressed="true"] { color: var(--amber-ink); }
.route-mode .thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px;
  background: var(--amber); box-shadow: 0 8px 22px -8px rgba(242, 181, 68, 0.85); transition: transform 0.5s var(--ease), background 0.35s, box-shadow 0.35s;
}
.route-mode.is-manual .thumb { transform: translateX(100%); background: var(--green); box-shadow: 0 8px 22px -8px rgba(79, 209, 139, 0.85); }
.route-mode.is-manual button[aria-pressed="true"] { color: var(--green-ink); }
.routes-status {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: min(720px, 100%); margin: 26px auto 0; padding: 13px 20px;
  border-radius: 16px; background: rgba(22, 25, 28, 0.85); border: 1px solid var(--line); color: var(--text-2); font-weight: 600;
  transition: border-color 0.4s, background 0.4s;
}
.routes-status.warn { border-color: rgba(242, 181, 68, 0.4); }
.routes-status.manual { border-color: rgba(79, 209, 139, 0.4); }
.routes-status.manual .led { background: var(--green); box-shadow: 0 0 12px var(--green); }
.routes-status .led { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); transition: background 0.4s, box-shadow 0.4s; }
.routes-status.warn .led { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
[data-route-status] { transition: opacity 0.3s; }
[data-route-status].fade { opacity: 0; }
.routes-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 6px; text-align: center; }
.routes-tip { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 14px; text-align: center; }
.route-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.rc { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s; }
.rc b { font: 700 15px/1.3 var(--display); }
.rc span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.rc.on { border-color: rgba(242, 181, 68, 0.55); background: linear-gradient(180deg, rgba(242, 181, 68, 0.08), var(--surface)); transform: translateY(-4px); }
.rc.down { border-color: rgba(229, 121, 95, 0.4); }

/* ---- invite a friend ---- */
.invite-banner {
  display: flex; align-items: center; gap: 20px; margin-top: 26px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(242, 181, 68, 0.14), rgba(242, 181, 68, 0.03)); border: 1px solid rgba(242, 181, 68, 0.35);
}
.invite-banner h3 { font-size: 20px; }
.invite-banner p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.invite-banner .btn { margin-left: auto; flex: none; }
.gift-box {
  width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink);
  box-shadow: 0 14px 30px -12px rgba(242, 181, 68, 0.8); animation: gift 4s ease-in-out infinite;
}
.gift-box svg { width: 28px; height: 28px; }

/* ---- downloads: the visitor's own platform ---- */
.download { position: relative; }
.download.mine { border-color: rgba(79, 209, 139, 0.45); box-shadow: 0 30px 60px -30px rgba(79, 209, 139, 0.3); }
.yours { position: absolute; top: -12px; right: 24px; padding: 7px 12px; border-radius: 999px; background: var(--green); color: var(--green-ink); font: 800 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- FAQ: answers open smoothly ---- */
.faq .answer { overflow: hidden; }
.faq summary { transition: color 0.2s; }
.faq summary:hover { color: var(--amber-2); }

/* ---- downloads: the phone's QR code, the subscription card ---- */
.download .btn, .download .dl-row { margin-top: auto; }
.download .meta { margin-bottom: 18px; }
.dl-row { display: flex; gap: 10px; }
.dl-row .btn { flex: 1; margin-top: 0; }
.dl-row .qr-btn { flex: none; width: 56px; padding: 0; }
.qr-pane {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px;
  background: rgba(17, 19, 22, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: inherit; text-align: center;
  opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s 0.45s;
}
.download.show-qr .qr-pane { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s; }
.qr-box { width: 172px; height: 172px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -16px rgba(242, 181, 68, 0.6); }
.qr-box svg { width: 100%; height: 100%; }
.qr-box p { margin: 0; color: #333; font-size: 13px; }
.download.show-qr .qr-box { animation: qr-in 0.6s var(--ease); }
@keyframes qr-in { from { transform: scale(0.85) rotate(-4deg); opacity: 0; } }
.qr-pane p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 240px; }
.qr-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.qr-close svg { width: 18px; height: 18px; }
.qr-close:hover { color: var(--text); border-color: #3a4046; }
.mini-steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: ms; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.mini-steps li { counter-increment: ms; display: flex; gap: 12px; align-items: baseline; }
.mini-steps li::before {
  content: counter(ms); flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(242, 181, 68, 0.12); color: var(--amber); font: 800 12px/1 var(--display); transform: translateY(-1px);
}

/* ---- the popular plan: a light runs round its border ---- */
.plan .beam {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, rgba(255, 207, 110, 0.95) 310deg, rgba(242, 181, 68, 0.5) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 5s linear infinite;
}

/* ---- downloads: drawn devices that live ---- */
.dl-art {
  position: relative; height: 150px; margin: 0 0 20px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 50% 62%, rgba(var(--art), 0.16), transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05); --art: 79, 209, 139;
}
.dl-art.amber { --art: 242, 181, 68; }
.dl-art.mixed { --art: 242, 181, 68; background: radial-gradient(ellipse 50% 70% at 30% 70%, rgba(242, 181, 68, 0.13), transparent 70%), radial-gradient(ellipse 40% 70% at 72% 68%, rgba(79, 209, 139, 0.13), transparent 70%), rgba(255, 255, 255, 0.02); }
.dl-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%);
}
.dl-art svg { position: relative; display: block; width: 100%; height: 100%; }
/* The whole picture floats (the outer svg: the compositor moves it). */
.dl-art svg { animation: art-float 6s ease-in-out infinite; }
.art-float { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.6s var(--ease); }
@keyframes art-float { 50% { translate: 0 -4px; } }
.download:hover .art-float { transform: scale(1.06); }
.art-wave { animation: art-wave 2.4s linear infinite; }
@keyframes art-wave { to { transform: translateX(-32px); } }
.art-glow { transform-box: fill-box; transform-origin: center; animation: ill-glow 2.8s ease-in-out infinite; }
.art-tray { animation: led 1.6s ease-in-out infinite; }
.art-flow { animation: art-flow 0.9s linear infinite; }
@keyframes art-flow { to { stroke-dashoffset: -8; } }
.art-badge { transform-box: fill-box; transform-origin: center; animation: art-badge 2.6s ease-in-out infinite; }
@keyframes art-badge { 50% { transform: scale(1.08); } }
.art-window { transform-box: fill-box; transform-origin: 50% 100%; }
.download:hover .art-window { animation: art-window 0.9s var(--ease); }
@keyframes art-window { from { transform: translateY(6px) scale(0.94); opacity: 0.4; } }
.art-bars { stroke-dasharray: 7 20; animation: art-bars 2.4s ease-in-out infinite; }
@keyframes art-bars { 50% { stroke-dashoffset: 3; } }
.dl-feats { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; padding: 0; color: var(--text-2); font-size: 15px; }
.dl-feats li { display: flex; gap: 10px; align-items: flex-start; }
.dl-feats svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.download .meta { margin-bottom: 16px; }

@media (max-width: 1020px) {
  .route-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .downloads .download:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 18px; }
  .fact b { font-size: 34px; }
  .route-cards { grid-template-columns: 1fr; }
  .lane-tag { font-size: 10px; padding: 4px 7px; }
  .node small { font-size: 11px; }
  .invite-banner { flex-wrap: wrap; }
  .invite-banner .btn { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-words] .w, .steps .step, .perks li { opacity: 1; transform: none; }
  .steps::before { transform: none; }
  .phone { transform: none; }
}
