/* ================================================================
   KaproTUN — landing page
   Palette matches the app (kapro_vpn/gui/styles.py)
   ================================================================ */

:root {
  --bg:        #08080a;
  --bg-2:     #0c0c0f;
  --surface:   #161618;
  --surface-2: #1c1c20;
  --surface-3: #232327;
  --border:    #28282c;
  --border-2:  #38383d;

  --text:      #fafafa;
  --text-2:    #a8a8b0;
  --text-3:    #71717a;
  --text-4:    #52525b;

  --accent:    #f59e0b;
  --accent-hi: #fbbf24;
  --accent-lo: #78350f;
  --accent-glow: rgba(245, 158, 11, 0.25);

  --danger:    #ef4444;
  --success:   #16a34a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 32px 80px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 80px var(--accent-glow);

  --container: 1240px;
  --gutter: 24px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Consolas", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------- reset ---------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  color: var(--accent-hi);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

::selection { background: var(--accent); color: #1a1209; }

/* ---------------- layout primitives ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--accent); }
.accent-text { color: var(--accent); font-weight: 700; }

.hl {
  color: var(--accent-hi);
  font-weight: 600;
  background: linear-gradient(transparent 62%, rgba(245, 158, 11, 0.18) 62%);
  padding: 0 2px;
}

.grad {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 60%, var(--accent-lo) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px var(--accent-glow);
}

/* ---------------- scroll progress (top of viewport) ---------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-hi) 0%, var(--accent) 60%, var(--accent-lo) 100%);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  transition: width 0.08s linear, opacity 0.3s var(--ease);
  opacity: 0;
}

.scroll-progress.active { opacity: 1; }

/* ---------------- word-by-word hero title reveal ---------------- */

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.hero-title.words-in .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Preserve gradient on .grad even when JS wraps inner text in .word spans */
.hero-title .grad .word {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 60%, var(--accent-lo) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- card spotlight (Linear-style) ---------------- */

.feature,
.stack-card,
.download-platform,
.protocol,
.problem-card {
  position: relative;
  isolation: isolate;
}

.feature::after,
.stack-card::after,
.download-platform::after,
.protocol::after,
.problem-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 158, 11, 0.10),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {
  .feature:hover::after,
  .stack-card:hover::after,
  .download-platform:hover::after,
  .protocol:hover::after,
  .problem-card:hover::after {
    opacity: 1;
  }
}

/* ---------------- magnetic CTA helper ---------------- */

.btn-primary.btn-lg,
.btn-primary.btn-xl,
.download-platform-btn {
  will-change: transform;
  transition: background 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When ~hovered with mouse, the JS adds .magnetic-active and updates --tx/--ty */
.btn-primary.btn-lg.magnetic-active,
.btn-primary.btn-xl.magnetic-active,
.download-platform-btn.magnetic-active {
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}

/* ---------------- background atmosphere ---------------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245, 158, 11, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 30%, rgba(245, 158, 11, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(120, 53, 15, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------------- navigation ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: rgba(8, 8, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(8, 8, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
}

.nav-logo-text { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  color: #1a1209;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 20px rgba(245, 158, 11, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fcd34d 0%, var(--accent-hi) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 12px 32px rgba(245, 158, 11, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}

.btn-icon { padding-left: 14px; padding-right: 14px; }

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 18px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
  text-align: left;
}

.btn-xl svg { flex-shrink: 0; }

.btn-line-1 { display: block; font-weight: 700; }
.btn-line-2 { display: block; font-size: 12px; font-weight: 500; opacity: 0.7; margin-top: 2px; }

/* ---------------- section headers ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 8px;
  animation: pulse 2.5s ease-in-out infinite;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.eyebrow-light::before { background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,0.5); }

.section-head {
  text-align: center;
  margin-bottom: 88px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lead {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 20px;
  font-weight: 400;
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  padding: 100px 0 160px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.badge.badge-android {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.22);
}

.badge.badge-android .badge-dot {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.badge.badge-android .badge-icon {
  color: #93c5fd;
}

.badge.badge-android .badge-version {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}

.badge.badge-android:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.4);
}

.badge:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.badge-text { color: var(--text-2); }
.badge-version {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-hi);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-3);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  color: var(--accent);
}

/* ---- hero visual ---- */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-window {
  width: 100%;
  max-width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Windows-style title bar */
.hero-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 36px;
}

.hero-window-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-window-icon {
  width: 16px;
  height: 16px;
}

.hero-window-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.hero-window-bar-right {
  display: flex;
  align-items: center;
}

.hero-window-btn {
  width: 38px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
  user-select: none;
}

.hero-window-body {
  padding: 18px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Big connect circle */
.hero-circle {
  width: 230px;
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.hero-circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 40px rgba(245, 158, 11, 0.12);
  animation: spin 14s linear infinite;
}

.hero-circle-ring.r2 {
  inset: 0;
  border: 1.5px solid var(--accent);
  border-color: var(--accent) transparent transparent transparent;
  opacity: 0.5;
  box-shadow: none;
  animation: spin 8s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-circle-label {
  position: relative;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* Status line under circle */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.status-time, .status-mode {
  font-feature-settings: "tnum";
}

/* Bypass count line */
.hero-bypass {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  margin-top: -4px;
}

.hero-bypass strong {
  color: var(--text);
  font-weight: 700;
}

/* Config card */
.hero-window-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.hero-window-card-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.hero-window-card-bottom {
  margin-top: 6px;
}

.hero-window-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.flag-nl {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.hero-window-card-badge {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--surface-3);
  color: var(--text-2);
  border-radius: 3px;
  font-family: var(--font-sans);
}

.hero-window-card-host {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex: 1;
}

.hero-window-card-arrow {
  font-size: 10px;
  color: var(--text-3);
  margin-left: auto;
}

/* Bottom nav bar */
.hero-window-nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin: 4px -22px -8px;
  padding: 12px 22px 4px;
  width: calc(100% + 44px);
}

.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: var(--text-3);
  font-family: "Segoe UI Symbol", sans-serif;
  line-height: 1;
}

.hero-nav-btn.active {
  color: var(--accent);
}

/* ---- hero flow (split routing diagram) ---- */

/* hero-flow: flex row — Вы | SVG | label-column */
.hero-flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  height: 130px;
  margin-top: 8px;
  font-family: var(--font-sans);
}

.hero-flow-you {
  flex: 0 0 auto;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

.hero-flow-svg {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: visible;
}

/* labels stack: top (direct) + bottom (proxy) */
.hero-flow-label {
  flex: 0 0 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
}

.hero-flow-label strong,
.hero-flow-label small {
  display: block;
}

.hero-flow-label strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.hero-flow-label small {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
  margin-top: 2px;
}

.hero-flow-direct strong { color: var(--accent-hi); }

.flow-line {
  stroke-dasharray: 4 4;
  animation: flow-dash 2.5s linear infinite;
}

.flow-line-2 { animation-delay: 1.25s; }

@keyframes flow-dash {
  to { stroke-dashoffset: -80; }
}

/* ---------------- PROBLEM ---------------- */

.problem {
  padding: 140px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lo);
  background: var(--surface-2);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.problem-arrow {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.solution {
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent-lo);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.solution-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.solution p {
  color: var(--text-2);
  font-size: 16px;
}

/* ---------------- SPLIT ROUTING ---------------- */

.split {
  padding: 140px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-text .eyebrow { margin-bottom: 16px; }

.split-text .section-title {
  text-align: left;
  font-size: clamp(28px, 3.5vw, 40px);
}

.split-text .section-lead { margin-bottom: 28px; }

.split-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-list li {
  position: relative;
  padding: 16px 16px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s var(--ease);
}

.split-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.split-list li strong { color: var(--text); font-weight: 600; }

.split-list li:hover { border-color: var(--accent-lo); }

.split-visual {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  padding: 32px;
  border-radius: var(--radius-xl);
}

.split-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(245, 158, 11, 0.25));
}

/* ---- animated split-routing viz (replaces hero.png) ---- */

.split-viz {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.15));
}

/* hub: outer ring slow spin */
.viz-hub-outer {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-spin 30s linear infinite;
}

/* hub: inner ring reverse fast */
.viz-hub-inner {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-spin 14s linear infinite reverse;
}

/* mid ring breathing */
.viz-hub-breathe {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-breathe 3.2s ease-in-out infinite;
}

/* core disc gentle pulse */
.viz-hub-core {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-pulse 2.4s ease-in-out infinite alternate;
}

/* center bright spark twinkle */
.viz-hub-spark {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-spark 1.6s ease-in-out infinite alternate;
}

/* flowing dashed lines along trunk + branches */
.viz-flow {
  animation: viz-flow-dash 2s linear infinite;
}

.viz-flow-up { animation-delay: 0.5s; }
.viz-flow-down {
  animation-duration: 2.8s;
  animation-delay: 1.2s;
}

/* twinkling background dots */
.viz-twinkle {
  animation: viz-twinkle 2.6s ease-in-out infinite;
}

/* small ring inside service/globe circles — gentle rotation */
.viz-ring-spin {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-spin 24s linear infinite;
}

.viz-ring-spin-rev {
  transform-origin: center;
  transform-box: fill-box;
  animation: viz-spin 24s linear infinite reverse;
}

@keyframes viz-spin {
  to { transform: rotate(360deg); }
}

@keyframes viz-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.12); opacity: 0.85; }
}

@keyframes viz-pulse {
  0%   { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes viz-spark {
  0%, 100% { transform: scale(0.85); opacity: 0.8; }
  50%      { transform: scale(1.2); opacity: 1; }
}

@keyframes viz-flow-dash {
  to { stroke-dashoffset: -42; }
}

@keyframes viz-twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .viz-hub-outer, .viz-hub-inner, .viz-hub-breathe, .viz-hub-core, .viz-hub-spark,
  .viz-flow, .viz-twinkle, .viz-ring-spin, .viz-ring-spin-rev {
    animation: none !important;
  }
}

/* ---------------- FEATURES ---------------- */

.features {
  padding: 140px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature:hover {
  border-color: var(--accent-lo);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.feature p strong { color: var(--text); font-weight: 600; }

/* ---------------- HOW IT WORKS ---------------- */

.how {
  padding: 140px 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.how-steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-lo) 20%, var(--accent-lo) 80%, transparent);
  z-index: 0;
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.how-step:hover {
  border-color: var(--accent-lo);
  transform: translateY(-2px);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-step p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.how-step code {
  font-size: 12px;
}

/* ---------------- PROTOCOLS ---------------- */

.protocols {
  padding: 140px 0;
}

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.protocol {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: all 0.3s var(--ease);
}

.protocol:hover {
  border-color: var(--accent-lo);
  background: var(--surface-2);
}

.protocol-name {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  padding: 3px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.protocol p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------------- FRIENDS (GmailVPN) ---------------- */

.friends {
  padding: 60px 0 60px;
}

.friends-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  overflow: hidden;
}

.friends-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, var(--accent-lo) 40%, var(--accent) 60%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.friends-card-glow {
  position: absolute;
  bottom: -240px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.friends-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.friends-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.friends-brand {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 70%, var(--accent-lo) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(245, 158, 11, 0.4);
}

.friends-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
}

.friends-sub strong { color: var(--text); font-weight: 600; }

.friends-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.friends-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.friends-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}

.friends-stat-lbl {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
}

.friends-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.friends-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.friends-chip svg {
  color: var(--accent);
  flex-shrink: 0;
}

.friends-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.friends-tagline {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

.friends-asterisk {
  color: var(--accent);
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 2px;
  top: -0.8em;
}

.friends-disclaimer {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 560px;
}

.friends-disclaimer sup {
  color: var(--accent);
  font-weight: 700;
}

.friends-disclaimer a {
  color: var(--text-2);
  border-bottom: 1px dashed var(--text-3);
}

.friends-disclaimer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Visual mock card on the right */
.friends-visual {
  display: flex;
  justify-content: center;
}

.friends-mock {
  width: 100%;
  max-width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(245, 158, 11, 0.08);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease);
}

.friends-mock:hover {
  transform: rotate(0deg) translateY(-4px);
}

.friends-mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.friends-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.friends-mock-title {
  font-size: 11px;
  color: var(--text-2);
}

.friends-mock-body {
  padding: 28px 22px 22px;
  text-align: center;
}

.friends-mock-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.friends-mock-tag {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 22px;
}

.friends-mock-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
}

.friends-mock-from {
  font-size: 12px;
  color: var(--text-3);
}

.friends-mock-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  font-feature-settings: "tnum";
  letter-spacing: -0.03em;
}

.friends-mock-cur {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

.friends-mock-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}

.friends-mock-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.friends-mock-bar-text {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ---------------- DOWNLOAD ---------------- */

.download {
  padding: 140px 0;
}

.download-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--accent-lo) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.download-card-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.download-content { position: relative; z-index: 1; }

.download-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.download-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.download-sub strong { color: var(--text); }

.download-sub a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.4);
  transition: border-color 0.2s var(--ease);
}

.download-sub a:hover { border-bottom-color: var(--accent); }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* Section heads inside the download card (Desktop / Mobile) */
.download-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}

.download-section-head svg {
  color: var(--accent);
}

.download-section-head-mobile {
  margin-top: 36px;
}

.download-section-head-mobile svg {
  color: #60a5fa;
}

/* hero copy tags */
.hero-sub-tag,
.hero-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin-left: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  vertical-align: 2px;
  line-height: 1.2;
}

.hero-meta-tag {
  font-size: 9px;
  padding: 1px 6px;
}

/* per-platform download cards */
.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.download-platform {
  background: rgba(10, 10, 12, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  /* subgrid: head / button / feats align across all 3 cards */
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

/* fallback for browsers without subgrid: enforce equal header heights */
@supports not (grid-template-rows: subgrid) {
  .download-platforms { grid-template-rows: none; }
  .download-platform { grid-template-rows: auto auto 1fr; grid-row: auto; }
  .download-platform-head { min-height: 64px; }
}

.download-platform:hover {
  border-color: var(--accent-lo);
  transform: translateY(-2px);
}

.download-platform-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  align-self: center; /* center head content if subgrid row is taller */
}

.download-platform-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.download-platform-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.download-platform-sub {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.download-platform-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.download-platform-badge.full {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-hi);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.download-platform-badge.new {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.download-platform-btn {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  justify-content: flex-start;
  border-radius: var(--radius-md);
}

.download-platform-btn .btn-line-1 {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.download-platform-btn .btn-line-2 {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 3px;
}

.download-platform-feats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.download-platform-feats li {
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.download-platform-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.download-platform-feats li.muted {
  color: var(--text-3);
  font-style: italic;
}

.download-platform-feats li.muted::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.download-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ===== Mobile (Android) download banner ===== */
.download-mobile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 24px 24px 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, rgba(10, 10, 12, 0.5) 60%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  overflow: hidden;
}

.download-mobile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #60a5fa 0%, rgba(96, 165, 250, 0) 100%);
}

.download-mobile:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(96, 165, 250, 0.1);
}

.download-mobile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93c5fd;
  flex-shrink: 0;
}

.download-mobile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.download-mobile-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-mobile-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.download-mobile-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  line-height: 1.2;
}

.download-mobile-sub {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.download-mobile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.download-mobile-feats {
  margin: 0;
  padding: 0;
}

.download-mobile-feats li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.download-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.download-mobile-btn {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(96, 165, 250, 0.25);
}

.download-mobile-btn:hover {
  background: linear-gradient(180deg, #7eb3fc 0%, #4d8ef5 100%);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.35);
}

.download-mobile-guide {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

.download-mobile-guide:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
}

.download-mobile-ios-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-3);
  background: rgba(113, 113, 122, 0.06);
  border: 1px dashed rgba(113, 113, 122, 0.22);
  border-radius: var(--radius-md);
}

.download-mobile-ios-note svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.download-mobile-ios-note strong {
  color: var(--text-2);
  font-weight: 600;
}

@media (max-width: 640px) {
  .download-mobile {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .download-mobile-icon {
    width: 48px;
    height: 48px;
  }
  .download-mobile-actions {
    flex-direction: column;
  }
  .download-mobile-actions .btn {
    width: 100%;
  }
}

/* small "Windows" tag on TUN feature */
.feature-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-hi);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  vertical-align: middle;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.download-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-meta-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.download-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.install-note svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.install-note strong { color: var(--text); }

/* ---------------- STACK ---------------- */

.stack {
  padding: 140px 0 100px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stack-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.stack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-lo), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.stack-card:hover {
  border-color: var(--accent-lo);
  transform: translateY(-3px);
}

.stack-card:hover::before { opacity: 1; }

.stack-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.stack-card-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stack-card-role {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
}

.stack-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-3);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.stack-card-link:hover {
  color: var(--accent);
  border-color: var(--accent-lo);
  background: rgba(245, 158, 11, 0.06);
}

.stack-card-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}

.stack-card-desc code {
  font-size: 12px;
  padding: 1px 5px;
}

.stack-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.stack-card-tags .tag {
  font-size: 10.5px;
  padding: 2px 7px;
}

.stack-bottom {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.stack-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.stack-bottom-link:hover {
  border-color: var(--accent-lo);
  color: var(--text);
  background: var(--surface-2);
}

.stack-bottom-link svg:last-child {
  color: var(--accent);
}

/* ---------------- FAQ ---------------- */

.faq {
  padding: 80px 0 120px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item:hover { border-color: var(--border-2); }

.faq-item[open] {
  border-color: var(--accent-lo);
  background: var(--surface-2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chev {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}

.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.faq-body strong { color: var(--text); }

/* ---------------- FOOTER ---------------- */

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.footer-logo img { width: 28px; height: 28px; }

.footer-desc {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-3);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-credit a {
  color: var(--accent);
}

.footer-credit a:hover { color: var(--accent-hi); }

/* ---------------- scroll reveal (Apple-style: blur+scale+fade) ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(8px);
  transition: opacity 1.0s var(--ease-out),
              transform 1.0s var(--ease-out),
              filter 0.85s var(--ease-out);
  will-change: transform, opacity, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---------------- premium grain texture overlay ---------------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ---------------- premium section dividers ---------------- */

section:not(.hero):not(.faq):not(.stack) {
  position: relative;
}

/* ---------------- Knowledge Base button in nav ---------------- */

.btn-kb {
  /* slightly tighter than other ghost buttons */
  padding-left: 12px;
  padding-right: 12px;
  font-weight: 500;
}

.btn-kb svg { color: var(--accent); flex-shrink: 0; }

/* No active-state highlight — keep ghost styling consistent across pages */

/* ---------------- User Guide page ---------------- */

.guide {
  padding: 64px 0 100px;
}

.guide-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sticky TOC sidebar */
.guide-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.guide-toc::-webkit-scrollbar { width: 4px; }
.guide-toc::-webkit-scrollbar-track { background: transparent; }
.guide-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.guide-toc-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.guide-toc-version {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.guide-toc nav ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-toc nav ol li {
  counter-increment: toc;
}

.guide-toc nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 6px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  line-height: 1.35;
}

.guide-toc nav a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  font-weight: 600;
  flex-shrink: 0;
}

.guide-toc nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.guide-toc nav a.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
  border-left-color: var(--accent);
}

.guide-toc nav a.active::before {
  color: var(--accent);
}

/* Main guide content */
.guide-content {
  max-width: 760px;
  min-width: 0;
}

.guide-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.guide-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 10px 0 16px;
}

.guide-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 24px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guide-meta-item svg { color: var(--accent); }

.guide-meta-link {
  color: var(--text-2);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.guide-meta-link:hover { color: var(--accent); }

.guide-meta-inline {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.guide-meta-inline strong { color: var(--text); }

/* Section */
.guide-section {
  margin-bottom: 64px;
  scroll-margin-top: 90px;
}

.guide-h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.guide-num {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0;
  flex-shrink: 0;
}

.guide-h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 32px 0 14px;
  color: var(--text);
}

.guide-h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--text);
}

.guide-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 16px;
}

.guide-content p strong,
.guide-content li strong { color: var(--text); font-weight: 600; }

.guide-content a:not(.btn):not(.guide-meta-link) {
  color: var(--accent-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.guide-content a:not(.btn):not(.guide-meta-link):hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent-hi);
}

/* Buttons inside guide-content keep their own button styling */
.guide-content a.btn {
  border-bottom: none;
}

.guide-content a.btn-primary {
  color: #1a1209;
}

.guide-content a.btn-primary:hover {
  color: #1a1209;
}

.guide-content code {
  font-size: 13.5px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-hi);
  font-family: var(--font-mono);
  cursor: default;
}

.guide-content kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

/* Lists */
.guide-ul, .guide-ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-ul li, .guide-ol li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.guide-ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.guide-ol {
  counter-reset: guide-ol;
}

.guide-ol li {
  counter-increment: guide-ol;
}

.guide-ol li::before {
  content: counter(guide-ol);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
}

/* Table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-table th,
.guide-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.guide-table tr:last-child td { border-bottom: none; }

.guide-table th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.guide-table td { color: var(--text-2); }

.apk-size {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  color: var(--accent);
}

/* Code blocks */
.guide-code {
  margin: 16px 0 24px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.guide-code code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  cursor: text;
}

/* Callouts */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  margin: 20px 0 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
}

.callout-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.callout-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.callout p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 0;
}

.callout p + p { margin-top: 8px; }

.callout-list {
  margin: 8px 0 0 0;
  padding: 0;
  counter-reset: callout-ol;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.callout-list li {
  counter-increment: callout-ol;
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.callout-list li::before {
  content: counter(callout-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.callout-tip { border-left-color: var(--accent); }
.callout-tip .callout-icon { background: rgba(245, 158, 11, 0.12); color: var(--accent); }

.callout-warning { border-left-color: #f97316; }
.callout-warning .callout-icon { background: rgba(249, 115, 22, 0.12); color: #fb923c; }

.callout-info { border-left-color: #60a5fa; }
.callout-info .callout-icon { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }

/* Pros / Cons two-column */
.guide-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}

.guide-pros,
.guide-cons {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.guide-pros { border-left: 3px solid var(--accent); }
.guide-cons { border-left: 3px solid var(--text-3); }

.guide-pros h4,
.guide-cons h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--text-3);
}

.guide-pros h4 { color: var(--accent); }

.guide-pros ul,
.guide-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-pros li,
.guide-cons li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.guide-pros li::before,
.guide-cons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.guide-pros li::before { background: var(--accent); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.guide-cons li::before { background: var(--text-4); }

/* Collapsible details (FAQ-style) */
.guide-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.guide-detail:hover {
  border-color: var(--border-2);
}

.guide-detail[open] {
  border-color: var(--accent-lo);
  background: var(--surface-2);
}

.guide-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px 14px 42px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.15s var(--ease);
}

.guide-detail summary::-webkit-details-marker { display: none; }

.guide-detail summary::before {
  content: "+";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.guide-detail[open] summary::before {
  content: "−";
}

.guide-detail summary:hover {
  color: var(--accent-hi);
}

.guide-detail > *:not(summary) {
  padding-left: 42px;
  padding-right: 18px;
}

.guide-detail > p,
.guide-detail > ul,
.guide-detail > ol {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 14px;
}

.guide-detail > p:last-child,
.guide-detail > ul:last-child,
.guide-detail > ol:last-child {
  margin-bottom: 16px;
}

.guide-detail .guide-code {
  margin-left: 42px;
  margin-right: 18px;
  margin-bottom: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
}

/* ---- Changelog timeline ---- */

.changelog {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin: 16px 0 32px;
}

.changelog-band {
  position: relative;
  padding-left: 28px;
}

.changelog-band::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-lo) 0%, transparent 100%);
}

.changelog-band-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  position: relative;
  color: var(--text);
}

.changelog-band-title::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(245, 158, 11, 0.5);
}

.changelog-band-version {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
}

.changelog-band-theme {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.changelog-entry {
  position: relative;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: border-color 0.2s var(--ease);
}

.changelog-entry:hover {
  border-color: var(--accent-lo);
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
}

.changelog-entry-minor::before {
  border-color: var(--text-3);
  background: var(--bg-2);
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.changelog-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  letter-spacing: -0.01em;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.changelog-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.changelog-badge-feature {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-hi);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.changelog-badge-fix {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.changelog-badge-security {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.changelog-badge-minor {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.changelog-entry p {
  font-size: 13.5px !important;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 !important;
}

.changelog-entry p strong { color: var(--text); font-weight: 600; }

.changelog-entry p + .changelog-list { margin-top: 8px !important; }

.changelog-list {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.changelog-list li {
  position: relative;
  padding-left: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.changelog-list li::before { display: none; }

.changelog-list li strong { color: var(--text); font-weight: 600; }

.changelog-footer {
  font-size: 13.5px !important;
  color: var(--text-3) !important;
  margin: 20px 0 0 !important;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

/* Inline partner ad inside guide (soft, doc-tone) */
.guide-ad {
  position: relative;
  margin: 24px 0 28px;
  padding: 24px 26px;
  background:
    radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.guide-ad::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.guide-ad-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  border-radius: 50%;
}

.guide-ad-body {
  position: relative;
  z-index: 1;
}

.guide-ad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.guide-ad-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}

.guide-ad-text {
  font-size: 14px !important;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 16px !important;
}

.guide-ad-text strong { color: var(--text); }

.guide-ad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guide-ad-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-ad-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  line-height: 1.1;
}

.guide-ad-stat-lbl {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-ad-cta {
  font-size: 14px;
  padding: 10px 18px;
}

@media (max-width: 560px) {
  .guide-ad { padding: 20px 18px; }
  .guide-ad-stats { grid-template-columns: repeat(2, 1fr); }
  .guide-ad-title { font-size: 17px; }
}

/* Bottom CTA row */
.guide-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .guide-toc {
    position: static;
    max-height: none;
    padding-right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
  }
  .guide-toc nav ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .guide-toc nav ol { grid-template-columns: 1fr; }
  .guide-h2 { flex-wrap: wrap; gap: 6px; }
  .guide-pros-cons { grid-template-columns: 1fr; }
}

/* ---------------- Knowledge Base page ---------------- */

.kb-hero {
  position: relative;
  padding: 100px 0 140px;
  min-height: calc(100vh - 68px - 200px); /* nav + footer-ish */
  display: flex;
  align-items: center;
}

.kb-hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.kb-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.kb-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 40px;
}

/* Platform picker — 3 cards: Desktop / iOS / Android */
.picker-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px auto 32px;
  text-align: left;
  max-width: 980px;
}

.picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
  overflow: hidden;
  min-height: 360px;
}

.picker-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.picker-card-active:hover {
  border-color: var(--accent-lo);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(245, 158, 11, 0.1);
}

.picker-card-active:hover::before { opacity: 1; }

.picker-card-soon {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(45%);
}

.picker-card-soon:hover { opacity: 0.72; }

.picker-card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.picker-card-status {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.picker-card-status-ready {
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.picker-card-status-soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.picker-card-status-beta {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.picker-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
}

.picker-card-platforms {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.picker-card-platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.picker-card-platforms li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.picker-card-soon .picker-card-platforms li svg { color: var(--text-3); }

.picker-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 20px;
  flex-grow: 1;
}

.picker-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
  margin-top: auto;
}

.picker-card-active:hover .picker-card-cta {
  color: var(--accent-hi);
}

.picker-card-soon .picker-card-cta {
  color: var(--text-3);
}

.picker-back {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .picker-cards { grid-template-columns: 1fr; }
  .picker-card { min-height: auto; }
}

/* Platform tag under desktop guide title */
.guide-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin: -8px 0 16px;
}

/* Two big cards for choosing docs section */
.kb-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 auto 48px;
  text-align: left;
  max-width: 880px;
}

.kb-card {
  position: relative;
  display: block;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.kb-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.kb-card-active:hover {
  border-color: var(--accent-lo);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(245, 158, 11, 0.1);
}

.kb-card-active:hover::before { opacity: 1; }

.kb-card-soon {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.kb-card-soon:hover {
  opacity: 0.78;
}

.kb-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.kb-card-status {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.kb-card-status-ready {
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.kb-card-status-soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.kb-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.kb-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 18px;
}

.kb-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  list-style: none;
}

.kb-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
}

.kb-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.kb-card-soon .kb-card-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.kb-card-picker .kb-card-prompt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.kb-platform-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-platform-btn {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.kb-platform-btn {
  cursor: pointer;
}

.kb-platform-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-2);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.kb-platform-btn-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kb-platform-btn-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.2;
}

.kb-platform-btn-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.kb-platform-btn-tag-soon {
  background: rgba(113, 113, 122, 0.12);
  color: var(--text-3);
  border-color: rgba(113, 113, 122, 0.25);
}

.kb-platform-btn-meta {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.kb-platform-btn-meta [data-release-version] {
  color: var(--text-2);
  font-weight: 600;
}

.kb-platform-btn-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

/* Desktop variant */
.kb-platform-btn-desktop .kb-platform-btn-icon {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.kb-platform-btn-desktop:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.kb-platform-btn-desktop:hover .kb-platform-btn-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.kb-platform-btn-desktop:hover .kb-platform-btn-arrow {
  color: #fbbf24;
  transform: translateX(3px);
}

/* Android variant */
.kb-platform-btn-android .kb-platform-btn-icon {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.22);
  color: #93c5fd;
}

.kb-platform-btn-android:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.08);
}

.kb-platform-btn-android:hover .kb-platform-btn-icon {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.38);
  color: #bfdbfe;
}

.kb-platform-btn-android:hover .kb-platform-btn-arrow {
  color: #93c5fd;
  transform: translateX(3px);
}

/* Soon (iOS) variant */
.kb-platform-btn-soon {
  cursor: not-allowed;
  opacity: 0.65;
}

.kb-platform-btn-soon .kb-platform-btn-title {
  color: var(--text-2);
}

.kb-platform-btn-soon .kb-platform-btn-icon {
  color: var(--text-3);
}

.kb-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}

.kb-card-active:hover .kb-card-cta {
  color: var(--accent-hi);
}

.kb-card-soon .kb-card-cta {
  color: var(--text-3);
}

@media (max-width: 768px) {
  .kb-cards { grid-template-columns: 1fr; }
}

.kb-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 48px;
  text-align: left;
  max-width: 640px;
}

.kb-plan li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.kb-plan li:hover {
  border-color: var(--accent-lo);
  transform: translateY(-2px);
}

.kb-plan-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}

.kb-plan-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kb-plan-body strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.kb-plan-body small {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.45;
}

.kb-plan-status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 10px;
  background: var(--surface-3);
  border-radius: 999px;
  white-space: nowrap;
}

.kb-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.kb-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin: 0 auto;
}

.kb-note svg { color: var(--accent); flex-shrink: 0; }

.kb-note a {
  color: var(--text);
  border-bottom: 1px dashed var(--text-3);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.kb-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .kb-plan li {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .kb-plan-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .kb-actions { flex-direction: column; align-items: stretch; }
  .kb-actions .btn { width: 100%; justify-content: center; }
}

/* ---------------- GmailVPN promo popup ---------------- */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
}

.promo-popup.open {
  opacity: 1;
  visibility: visible;
}

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.promo-popup-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  /* Hide scrollbar fully — content can still scroll via wheel/touch but no visible bar */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge / IE */
  background:
    radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.10), transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 28px 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(245, 158, 11, 0.12);
  transform: scale(0.94) translateY(20px);
  filter: blur(8px);
  transition: transform 0.55s var(--ease-spring),
              filter 0.45s var(--ease-out);
}

/* WebKit (Chrome/Safari/Edge) — completely hide scrollbar */
.promo-popup-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.promo-popup.open .promo-popup-card {
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.promo-popup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent-lo) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.promo-popup-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 60%);
  filter: blur(36px);
  pointer-events: none;
  border-radius: 50%;
}

.promo-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s var(--ease);
}

.promo-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border-2);
  transform: rotate(90deg);
}

.promo-popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
}

.promo-popup-eyebrow svg { flex-shrink: 0; }

.promo-popup-title {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  position: relative;
}

.promo-brand {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 70%, var(--accent-lo) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-popup-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
  font-style: italic;
  letter-spacing: -0.005em;
}

.promo-popup-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 16px;
  position: relative;
}

.promo-popup-trial {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
}

.promo-popup-trial-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-hi);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.promo-popup-trial-lbl {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.promo-popup-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
}

.promo-price {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.promo-price:hover {
  border-color: var(--accent-lo);
  transform: translateY(-2px);
}

.promo-price.popular {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), var(--bg-2));
}

.promo-price-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: var(--accent);
  color: #1a1209;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-price-period {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
  margin-top: 2px;
}

.promo-price-val small {
  font-size: 13px;
  font-weight: 600;
  margin-left: 1px;
  color: var(--text-2);
}

.promo-price-old {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.6);
  text-decoration-thickness: 1.5px;
  margin-top: -1px;
}

.promo-price-day {
  font-size: 10.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.promo-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
}

.promo-popup-cta {
  flex: 1;
  justify-content: center;
  font-weight: 700;
}

/* Lock the popup CTA in place — no magnetic drift, no spring transform */
.promo-popup-cta.magnetic-active,
.promo-popup .btn-primary.btn-lg.magnetic-active {
  transform: none !important;
}

.promo-popup-cta {
  transition: background 0.2s var(--ease),
              box-shadow 0.2s var(--ease) !important;
}

.promo-popup-skip {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.promo-popup-skip:hover { color: var(--text); }

.promo-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 11.5px;
  color: var(--text-3);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  position: relative;
}

.promo-popup-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-popup-meta svg { color: var(--accent); flex-shrink: 0; }

/* Lock scroll when promo open */
body.promo-open { overflow: hidden; }

@media (max-width: 560px) {
  .promo-popup-card { padding: 28px 22px 22px; }
  .promo-popup-title { font-size: 24px; }
  .promo-popup-trial { padding: 12px 14px; }
  .promo-popup-trial-num { font-size: 22px; }
  .promo-popup-pricing { grid-template-columns: 1fr; }
  .promo-price { flex-direction: row; justify-content: space-between; }
  .promo-price.popular { order: -1; }
  .promo-price-badge { left: 14px; transform: none; top: -10px; }
  .promo-popup-actions { flex-direction: column-reverse; }
  .promo-popup-cta { width: 100%; }
  .promo-popup-skip { width: 100%; padding: 10px; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links a {
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps::before { display: none; }

  .protocols-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .friends-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .friends-card { padding: 40px 32px; }

  .friends-visual { order: -1; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-platforms {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .download-platform {
    grid-template-rows: auto auto 1fr;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .nav-links { display: none; }

  .nav-actions .btn-ghost span:not(.sr-only) {
    display: none;
  }

  .nav-actions .btn-ghost {
    padding: 10px;
  }

  .nav-burger { display: flex; }

  .nav-burger[aria-expanded="true"] + .nav-mobile,
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links a {
    padding: 14px;
    border-radius: 8px;
  }

  .hero { padding: 48px 0 64px; }

  .hero-title { font-size: clamp(32px, 9vw, 48px); }

  .hero-cta { flex-direction: column; }

  .hero-cta .btn { width: 100%; }

  .problem,
  .split,
  .features,
  .how,
  .protocols,
  .friends,
  .download {
    padding: 64px 0;
  }

  .friends-card { padding: 32px 20px; }
  .friends-stats { grid-template-columns: repeat(2, 1fr); }
  .friends-actions { flex-direction: column; align-items: stretch; }
  .friends-actions .btn { width: 100%; }
  .friends-tagline { text-align: center; }

  .section-head { margin-bottom: 40px; }

  .problem-grid,
  .features-grid,
  .how-steps,
  .protocols-grid {
    grid-template-columns: 1fr;
  }

  .download-card { padding: 36px 24px; }

  .download-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .download-actions { flex-direction: column; }

  .download-actions .btn { width: 100%; }

  .download-platforms {
    grid-template-columns: 1fr;
    grid-template-rows: none; /* subgrid only matters when cards are side-by-side */
  }
  .download-platform {
    grid-template-rows: auto auto 1fr;
    grid-row: auto;
  }
  .download-actions-secondary { flex-direction: column; }
  .download-actions-secondary .btn { width: 100%; justify-content: center; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .solution { padding: 32px 20px; }
  .solution-title { font-size: 22px; }

  .hero-flow { display: none; }
}

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