/* ================================================================
   KaproVPN — 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;
}

.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);
  margin-bottom: 28px;
  transition: all 0.2s var(--ease);
}

.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: 40px;
  border-radius: var(--radius-xl);
}

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

/* ---------------- 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-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* per-platform download cards */
.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, 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: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.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;
}

.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;
}

/* 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;
}

/* ---------------- 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; }
}

@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; }
  .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; }
}
