/* ============================================
   YourApp — Enhanced terminal for Windows
   Dual theme: light (default) + dark.
   Theme is applied via [data-theme="light|dark"] on <html>.
   ============================================ */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-muted: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --surface-3: rgba(31, 45, 61, 0.04);
  --border: rgba(31, 45, 61, 0.12);
  --border-strong: rgba(31, 45, 61, 0.22);

  --text: #333333;
  --text-muted: #999999;
  --text-dim: #999999;

  --primary: #4fc3d9;       /* cyan/turquoise — brand accent */
  --primary-2: #3fb0c5;     /* hover */
  --primary-soft: rgba(79, 195, 217, 0.12);
  --primary-text: #1f2d3d;

  --accent: #f39c12;        /* orange — CTA */
  --accent-2: #e08a0c;
  --accent-soft: rgba(243, 156, 18, 0.12);

  --warning: #f39c12;
  --danger: #e74c3c;
  --link: #3498db;          /* link blue (body copy hyperlinks) */

  --shadow-sm: 0 1px 2px rgba(31, 45, 61, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 45, 61, 0.10);
  --shadow-lg: 0 24px 48px rgba(31, 45, 61, 0.14);
  --shadow-xl: 0 32px 64px rgba(31, 45, 61, 0.20);

  --navbar-bg: #1f2d3d;
  --navbar-text: #ffffff;
  --navbar-brand: #4fc3d9;
  --footer-bg: #1f2d3d;
  --footer-text: #ffffff;

  --code-bg: #1f2d3d;
  --code-text: #4fc3d9;

  --grid-line: rgba(31, 45, 61, 0.06);
}

[data-theme="dark"] {
  /* MobaXterm-style dark palette (user-supplied) */
  --bg: #0f1923;            /* Base Background */
  --bg-soft: #1a2838;       /* Surface */
  --bg-muted: #2a3b52;      /* Elevated Surface */
  --surface: #1a2838;       /* Surface (cards, panels) */
  --surface-2: #2a3b52;     /* Elevated (alt cards, plan featured) */
  --surface-3: #3a4d68;     /* derived next step up */
  --border: #2f4257;        /* Border */
  --border-strong: #3f5b7a; /* derived stronger Border */

  --text: #e6edf3;          /* Primary Text */
  --text-muted: #8a9ba8;    /* Secondary Text */
  --text-dim: #5a6b7a;      /* Disabled / placeholder */

  --primary: #5dd4ed;       /* Cyan brand */
  --primary-2: #73dcef;     /* lighter for hover on dark */
  --primary-soft: rgba(93, 212, 237, 0.16);
  --primary-text: #0f1923;  /* dark text on cyan */

  --accent: #f5a623;        /* Orange CTA */
  --accent-2: #ffb840;      /* lighter for hover */
  --accent-soft: rgba(245, 166, 35, 0.16);

  --warning: #f5a623;
  --danger: #ef4444;
  --link: #5dadE2;          /* Link Blue */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.55);

  --navbar-bg: #2a3b52;     /* Elevated Surface */
  --navbar-text: #e6edf3;
  --navbar-brand: #5dd4ed;
  --footer-bg: #2a3b52;
  --footer-text: #e6edf3;

  --code-bg: #0f1923;       /* deepest bg for code blocks */
  --code-text: #5dd4ed;

  --grid-line: rgba(255, 255, 255, 0.04);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  /* the body transition handles theme color shifts smoothly */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body, body * { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease; }

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

::selection { background: var(--primary); color: white; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.serif { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.brand-logo svg { width: 18px; height: 18px; color: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Theme switcher */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme-switch button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-dim);
  transition: all 0.15s;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.theme-switch button svg { width: 15px; height: 15px; }

.footer-theme-switch { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.eyebrow .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 1px 6px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
}

.hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-trust .item { display: flex; align-items: start; gap: 10px; }
.hero-trust .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.hero-trust .item strong { color: var(--text); font-size: 0.92rem; font-weight: 600; display: block; }
.hero-trust .item span { color: var(--text-dim); font-size: 0.82rem; }

/* ============================================
   CONNECTION CARD (hero visual)
   ============================================ */
.conn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.conn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.conn-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.conn-status .indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.conn-status .indicator .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: conn-pulse 1.6s ease-in-out infinite;
}
@keyframes conn-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.conn-status .time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.conn-globe {
  position: relative;
  height: 200px;
  margin: 20px 0 24px;
  display: grid;
  place-items: center;
}

.conn-globe .ring {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  opacity: 0.4;
}
.conn-globe .ring.r1 { width: 200px; height: 200px; }
.conn-globe .ring.r2 { width: 150px; height: 150px; border-color: var(--primary); opacity: 0.3; }
.conn-globe .ring.r3 { width: 100px; height: 100px; border-color: var(--accent); opacity: 0.4; }

.conn-globe .core {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  box-shadow: 0 0 32px rgba(30, 58, 138, 0.4);
  position: relative;
  z-index: 2;
}

.conn-globe .node {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: node-pulse 2.4s ease-in-out infinite;
}
.conn-globe .node.n1 { top: 12%; left: 50%; animation-delay: 0s; }
.conn-globe .node.n2 { top: 50%; left: 12%; animation-delay: 0.4s; }
.conn-globe .node.n3 { top: 80%; left: 30%; animation-delay: 0.8s; }
.conn-globe .node.n4 { top: 60%; right: 15%; animation-delay: 1.2s; }
.conn-globe .node.n5 { top: 20%; right: 20%; animation-delay: 1.6s; background: var(--primary); }

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

.conn-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.conn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.conn-row .label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}
.conn-row .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface-2);
}

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

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.trust-bar .label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-logos .logo {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  color: var(--text-dim);
  height: 48px;
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.trust-logos .logo:hover { opacity: 1; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 72px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  gap: 24px;
}
.section-row .h-block { max-width: 600px; }
.section-row h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-row .eyebrow { margin-bottom: 12px; }

/* ============================================
   FEATURE GRID
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s;
}
.feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.feature ul {
  margin-top: 12px;
  list-style: none;
  font-size: 0.88rem;
}
.feature ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.feature ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   SERVER LOCATIONS
   ============================================ */
.locations {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.locations-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.locations-head h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.locations-head .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.locations-head .stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}
.locations-head .stat .lbl {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.location {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  transition: all 0.15s;
  cursor: pointer;
}
.location:hover { background: var(--surface-3); }
.location .flag {
  width: 32px; height: 24px;
  border-radius: 4px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.location-info { flex: 1; min-width: 0; }
.location .name { font-size: 0.92rem; font-weight: 600; }
.location .meta { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--text-dim); }
.location .ping { color: var(--accent); font-weight: 600; }

/* ============================================
   PLANS
   ============================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.plan.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
}

.plan h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.plan .blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.plan-price .num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.plan-price .per {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.plan-billed {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.plan .btn { width: 100%; margin-bottom: 24px; }

.plan-features { list-style: none; flex: 1; }
.plan-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--border);
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.plan-features li.muted { color: var(--text-dim); }
.plan-features li.muted::before { content: '—'; color: var(--text-dim); }

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background: var(--primary);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.stat-tile { text-align: center; }
.stat-tile .num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-tile .lbl {
  margin-top: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* ============================================
   ABOUT
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-block h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.story-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.principle {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.principle .num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}
.principle h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.principle p { color: var(--text-muted); font-size: 0.92rem; }

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 auto 16px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-category {
  margin-bottom: 44px;
}
.faq-cat-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-item p a { color: var(--primary); }

/* ============================================
   BLOG
   ============================================ */
.post-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.posts { display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.post:first-child { padding-top: 0; }

.post-thumb {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--primary);
}

.post-cat {
  display: inline-block;
  padding: 3px 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 10px;
}
.post h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.post p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.post-byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.sidebar-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.sidebar-card input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.sidebar-card input:focus {
  outline: none;
  border-color: var(--primary);
}
.sidebar-card .tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-card .tag-cloud a {
  font-size: 0.82rem;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.sidebar-card .tag-cloud a:hover { color: var(--primary); border-color: var(--primary); }

/* Single post */
.post-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}
.post-hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 18px 0 24px;
  max-width: 820px;
  line-height: 1.15;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}
.post-author .avatar { width: 44px; height: 44px; font-size: 1rem; margin: 0; }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.post-body p { margin-bottom: 20px; }
.post-body h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.post-body h3 { color: var(--text); font-size: 1.3rem; margin: 28px 0 10px; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  font-style: italic;
}
.post-body code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', monospace;
}
.post-body a { color: var(--primary); border-bottom: 1px solid var(--border-strong); }

/* ============================================
   DOWNLOADS
   ============================================ */
.dl-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.dl-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.dl-card.featured { border-color: var(--primary); background: var(--surface); }

.dl-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dl-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dl-meta {
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.dl-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 580px;
}
.platform-pills {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pill-btn {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.pill-btn:hover { color: var(--text); }
.pill-btn.active {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.info-card {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}
.info-card .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.info-card p { font-size: 0.9rem; color: var(--text-muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 72px 56px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--primary-soft), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 100%, var(--primary-soft), transparent 70%),
    var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.25;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
}
.cta h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
}
.cta p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
}
.cta .actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  position: relative;
}
.cta-video {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.cta-video::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 70%;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--primary-soft), transparent 70%);
  filter: blur(20px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.cta-video video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 720px) {
  .cta-video { border-radius: 0; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 18px 0 22px;
  max-width: 360px;
  line-height: 1.6;
}
.footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s; }
.footer a:hover { color: var(--text); }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.15s;
}
.socials a:hover { border-color: var(--primary); color: var(--primary); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { color: var(--text-dim); }
.footer-bottom .legal a:hover { color: var(--text); }
.compliance-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.compliance-row .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  line-height: 1.1;
}
.page-hero p.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features, .principles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: inline-flex; }
  .nav-cta .nav-cta-label { display: inline; }
  .nav-cta { padding: 10px 20px; gap: 6px; }
  .navbar .nav-links.open a { color: var(--text-muted); }
  .navbar .nav-links.open a:hover { color: var(--text); }
  .navbar .nav-links.open a.active { color: var(--primary); }
  .nav-links.open a.active::after { display: none; }
  .hero { padding: 72px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: inline-flex; }
  .nav-links.open a.active::after { display: none; }
  .nav-actions .theme-switch { display: none; }
  .footer-theme-switch { display: flex; justify-content: center; }
  .nav-links.open .nav-cta { width: 100%; justify-content: center; }

  .hero { padding: 60px 0 50px; }
  .hero-grid, .split, .contact-grid, .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-trust { grid-template-columns: 1fr; gap: 14px; }

  .features, .principles, .locations-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .conn-details { grid-template-columns: 1fr; }

  .dl-card { grid-template-columns: auto 1fr; }
  .dl-card .btn { grid-column: 1 / -1; }
  .post { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .locations { padding: 28px; }
  .cta { padding: 48px 28px; }

  .locations-head { flex-direction: column; align-items: start; }
  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PALETTE OVERRIDES — terminal product
   Navbar + footer always sit on dark navy, both themes.
   ============================================ */

/* Navbar — solid navy bg, light text */
.navbar { backdrop-filter: none; border-bottom-color: rgba(255, 255, 255, 0.06); }
.navbar .brand,
.navbar .brand .brand-name { color: var(--navbar-text); font-weight: 700; letter-spacing: -0.01em; }
.navbar .brand-logo {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.navbar .brand-logo img { width: 22px; height: 22px; display: block; object-fit: contain; }
.navbar .brand-logo svg { width: 18px; height: 18px; color: #ffffff; }

.navbar .nav-links a { color: rgba(255, 255, 255, 0.72); }
.navbar .nav-links a:hover { color: #ffffff; }
.navbar .nav-links a.active { color: var(--primary); }
.navbar .nav-links a.active::after { background: var(--primary); }

.navbar .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.navbar .theme-switch button { color: rgba(255, 255, 255, 0.6); }
.navbar .theme-switch button:hover { color: #ffffff; }
.navbar .theme-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--primary);
  box-shadow: none;
}

.navbar .menu-toggle {
  color: var(--navbar-text);
  border-color: rgba(255, 255, 255, 0.18);
}

/* CTAs use ORANGE (palette: Orange = call-to-action) */
.nav-cta { background: var(--accent); color: #ffffff !important; }
.nav-cta:hover { background: var(--accent-2); }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); }

/* Secondary buttons — cyan-outline ghost */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* Text selection — readable */
::selection { background: var(--primary); color: var(--primary-text); }

/* Footer — always navy in both themes */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer .brand,
.footer .brand .brand-name { color: var(--footer-text); font-weight: 700; }
.footer .brand-logo {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.footer .brand-logo img { width: 22px; height: 22px; display: block; object-fit: contain; }
.footer .brand-logo svg { width: 18px; height: 18px; color: #ffffff; }
.footer-brand p { color: rgba(255, 255, 255, 0.65); }
.footer h5 { color: rgba(255, 255, 255, 0.5); }
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: #ffffff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); }
.footer-bottom .legal a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom .legal a:hover { color: #ffffff; }
.footer .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.footer .theme-switch button { color: rgba(255, 255, 255, 0.6); }
.footer .theme-switch button:hover { color: #ffffff; }
.footer .theme-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--primary);
  box-shadow: none;
}
.socials a {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}
.socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.compliance-row .badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Body-copy links inherit the brand link blue */
.post-body a,
.info-card p a,
.faq-item p a,
.lead a {
  color: var(--link);
}
.post-body a:hover,
.info-card p a:hover,
.faq-item p a:hover,
.lead a:hover { color: var(--primary); }

/* Hero terminal mockup (replaces VPN connection card) */
.terminal-window {
  background: #1f2d3d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #16212e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #f39c12; }
.terminal-dots span:nth-child(3) { background: #28c941; }
.terminal-title {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
.terminal-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  background: #16212e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.terminal-tab {
  padding: 9px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid transparent;
  user-select: none;
}
.terminal-tab.active {
  color: var(--primary);
  background: rgba(79, 195, 217, 0.07);
  border-bottom-color: var(--primary);
}
.terminal-mock {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #e6e6e6;
  padding: 20px 22px;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
  margin: 0;
}
.terminal-mock .term-prompt { color: var(--primary); }
.terminal-mock .term-host { color: var(--accent); }
.terminal-mock .term-cmd { color: #ffffff; }
.terminal-mock .term-out { color: rgba(255, 255, 255, 0.62); }
.terminal-mock .term-key { color: var(--primary); }
.terminal-mock .term-val { color: var(--accent); }
.terminal-mock .term-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--primary);
  vertical-align: text-bottom;
  animation: term-blink 1s steps(2) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* Three high-level pillars on the home page */
.pillars-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}
.pillars-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.pillars-viewport::before,
.pillars-viewport::after {
  display: none;
}
.pillars {
  display: flex;
  gap: 24px;
  margin-top: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.pillar {
  flex: 0 0 320px;
  padding: 36px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  box-sizing: border-box;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}
.carousel-btn:active { transform: scale(0.96); }
.carousel-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .pillars-carousel { gap: 8px; }
  .pillar { padding: 36px 24px; }
}
.pillar .pillar-ico {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pillar p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.pillars-carousel-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-dot:hover {
  background: var(--primary-soft);
}
.carousel-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.carousel-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Group label that spans the full feature grid row */
.feature-group-title {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feature-group-title:first-child { margin-top: 0; }

/* Product spotlight (replaces server-locations section) */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px;
}
.spotlight h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.spotlight p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.65; }
.spotlight ul { list-style: none; padding: 0; }
.spotlight ul li {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 0;
}
.spotlight ul li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}

/* ============================================
   REAL ASSETS — logo + screenshot
   ============================================ */

/* Drop the cyan-square chrome so the real PNG logo can stand on its own */
.navbar .brand-logo,
.footer .brand-logo {
  background: transparent;
  box-shadow: none;
}
.navbar .brand-logo img,
.footer .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Frame around the product screenshot in the spotlight section */
.screenshot-frame {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  background: var(--surface);
}
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   DARK-MODE TEXT OVERRIDES (user-supplied palette)
   The earlier overrides hardcode rgba(255,255,255,*) which is fine in
   light mode (navbar bg is also dark navy), but in dark mode we want
   the exact Primary / Secondary / Disabled Text values.
   ============================================ */

[data-theme="dark"] .navbar .brand,
[data-theme="dark"] .navbar .brand .brand-name,
[data-theme="dark"] .footer .brand,
[data-theme="dark"] .footer .brand .brand-name { color: var(--text); }

[data-theme="dark"] .navbar .nav-links a { color: var(--text-muted); }
[data-theme="dark"] .navbar .nav-links a:hover { color: var(--text); }
[data-theme="dark"] .navbar .nav-links a.active { color: var(--primary); }

[data-theme="dark"] .navbar .theme-switch {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
[data-theme="dark"] .navbar .theme-switch button { color: var(--text-dim); }
[data-theme="dark"] .navbar .theme-switch button:hover { color: var(--text); }
[data-theme="dark"] .navbar .theme-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
}

[data-theme="dark"] .navbar .menu-toggle {
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .footer-brand p { color: var(--text-muted); }
[data-theme="dark"] .footer h5 { color: var(--text-dim); }
[data-theme="dark"] .footer a { color: var(--text-muted); }
[data-theme="dark"] .footer a:hover { color: var(--text); }
[data-theme="dark"] .footer-bottom {
  color: var(--text-dim);
  border-top-color: var(--border);
}
[data-theme="dark"] .footer-bottom .legal a { color: var(--text-dim); }
[data-theme="dark"] .footer-bottom .legal a:hover { color: var(--text); }
[data-theme="dark"] .socials a {
  color: var(--text-muted);
  border-color: var(--border);
}
[data-theme="dark"] .socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
[data-theme="dark"] .compliance-row .badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Brand logo: square corners (per user request) */
.navbar .brand-logo,
.footer .brand-logo,
.navbar .brand-logo img,
.footer .brand-logo img { border-radius: 0; }

/* ============================================
   WINDOWS APP WINDOW MOCKUP (about.html)
   ============================================ */
.windows-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.windows-titlebar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  height: 34px;
}
.windows-titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.windows-titlebar-left img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.windows-controls {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.windows-controls button {
  width: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}
.windows-controls button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
[data-theme="dark"] .windows-controls button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.windows-controls .win-close:hover {
  background: #e81123;
  color: #ffffff;
}
.windows-content {
  padding: 28px 28px 18px;
}
.windows-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.windows-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.windows-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
}
.windows-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 9px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
}
.windows-statusbar {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  background: var(--bg-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ============================================
   BLOG FEATURE ADDITIONS — cover images, author photo,
   post engagement bar, list stats, mobile CTA, carousel dimming
   ============================================ */

/* Cover image on list cards (fills the existing .post-thumb box) */
.post-thumb { overflow: hidden; }
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* View / like stats in the list byline */
.post-stat { display: inline-flex; align-items: center; gap: 4px; }
.post-stat svg { opacity: 0.75; }

/* Hero cover image atop a post — matched to the body text column, square corners */
.post-cover-wrap {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.post-cover {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 0;
}

/* Author photo replaces the initials avatar when one is uploaded */
.avatar.avatar-img { object-fit: cover; padding: 0; }

/* Post engagement bar (like / view / share) */
.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
span.post-action { cursor: default; }
button.post-action:hover { color: var(--text); border-color: var(--text-muted); }
.post-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.post-action .pa-ico { display: inline-flex; }
.post-action[data-like-btn].is-liked { color: #e0245e; border-color: #e0245e; }
.post-action[data-like-btn].is-liked svg { fill: #e0245e; }
.post-action[data-share-btn].is-copied { color: var(--primary); border-color: var(--primary); }

/* Navbar CTA: icon-only on mobile to save space */
@media (max-width: 767px) {
  .nav-cta .nav-cta-label { display: none; }
  .nav-cta { padding: 10px; gap: 0; }
}

/* Carousel: lighten the before/after pillars, highlight the centered one */
.pillar {
  opacity: 0.45;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.pillar.is-active { opacity: 1; }

/* Cookie consent banner — fades in on first visit, fades out on choice */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.85rem; }

@media (max-width: 768px) {
  /* The open mobile menu sits on the theme background (var(--bg)), so its links
     must use theme-aware colors — the navbar bar itself is always dark navy. */
  .navbar .nav-links.open a { color: var(--text-muted); }
  .navbar .nav-links.open a:hover { color: var(--text); }
  .navbar .nav-links.open a.active { color: var(--primary); }
}
