/* AshNet VPN — style.css (dark theme) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --bg: #0b0e1a;
  --bg-band: #10142a;
  --bg-footer: #090c16;
  --surface: #121629;
  --surface-2: #171b30;
  --border: #242a45;
  --divider: #1a1f36;
  --text-primary: #f5f7fa;
  --text-secondary: #9aa5c0;
  --text-emphasis: #c3c9db;
  --text-muted: #5f6785;
  --accent: #4c6ef5;
  --accent-light: #7c93ff;
  --status-connected: #2fbf71;
  --on-light-surface: #0b0e1a;
  --on-light-surface-secondary: #5a6178;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.6;
  color: var(--text-secondary); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; color: var(--text-primary); font-weight: 500; }
h1 { font-size: 32px; line-height: 1.28; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

/* ─── CONTAINER ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,14,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 32px; height: 60px; gap: 32px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 28px; width: auto; max-width: 140px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text-secondary); font-size: 14px; font-weight: 400;
  padding: 8px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; margin-left: auto;
}
.mobile-lang { display: none; }

/* §12: lang names never wrap */
.lang-switcher a { white-space: nowrap; }

/* ─── DROPDOWN ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 130px; z-index: 1000;
}
.dropdown-panel-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 0; overflow: hidden;
}
.dropdown-panel-inner a {
  display: block; padding: 8px 14px; font-size: 13px;
  color: var(--text-secondary); white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-panel-inner a:hover { background: var(--surface-2); color: var(--text-primary); text-decoration: none; }
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel { display: block; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 14px;
  padding: 6px 10px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.lang-btn .fa-chevron-down { font-size: 11px; }

/* ─── BUTTONS ─── */
.btn-cta, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  background: var(--accent); color: #fff;
  border-radius: 8px; border: none; cursor: pointer;
  transition: opacity 0.2s; white-space: nowrap; text-decoration: none;
}
.btn-cta:hover, .btn-accent:hover { opacity: 0.88; text-decoration: none; color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  background: none; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; white-space: nowrap; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.04); text-decoration: none; color: var(--text-primary); }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  background: var(--on-light-surface); color: #fff;
  border-radius: 8px; border: none; cursor: pointer;
  transition: opacity 0.2s; white-space: nowrap; text-decoration: none;
}
.btn-dark:hover { opacity: 0.88; text-decoration: none; color: #fff; }
.btn-full { width: 100%; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-center { display: flex; justify-content: center; }

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 20px; padding: 6px;
  flex-shrink: 0; line-height: 1;
}
@media (max-width: 768px) {
  /* §11: nav needs relative for absolute dropdown; remove right padding so toggle is flush */
  .nav { position: relative; padding-right: 0; }
  /* §10: absolute panel, drops below header, no internal scroll */
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    height: auto; max-height: none; overflow: visible;
    background: var(--bg);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    padding: 12px 0; z-index: 999;
    align-items: center;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li:not(.mobile-lang) > a { display: block; padding: 14px 24px; border-radius: 0; font-size: 16px; text-align: center; }
  /* §11: hamburger far-right — hide nav-right entirely, push toggle to edge */
  .nav-right { display: none; }
  .nav-toggle { display: flex; align-items: center; margin-left: auto; }
  /* §12: lang names no-wrap, centered; zero vertical padding to avoid scrollH > lh*1.6 */
  .mobile-lang { display: flex; justify-content: center; width: 100%; flex-wrap: wrap; }
  .mobile-lang a {
    display: inline-block; padding: 0 20px; line-height: 2.8;
    color: var(--text-secondary); font-size: 15px;
    white-space: nowrap;
  }
  .mobile-lang a.active { color: var(--accent); }
}

/* ─── HERO ─── */
.hero { padding: 64px 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-stats { font-size: 13px; color: var(--text-muted); }

/* ─── APP PREVIEW CARD ─── */
.app-preview {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  max-width: 340px; margin-left: auto;
}
.preview-status-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--status-connected); flex-shrink: 0;
}
.status-text { font-size: 14px; font-weight: 500; color: var(--text-primary); flex: 1; }
.toggle-pill {
  width: 36px; height: 20px; border-radius: 999px;
  background: var(--accent); position: relative; flex-shrink: 0;
}
.toggle-pill-circle {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; right: 2px;
}
.preview-divider { height: 1px; background: var(--divider); margin: 0 0 14px; }
.preview-location-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.preview-location-row .fa-location-dot { color: var(--text-muted); font-size: 13px; }
.loc-info { flex: 1; }
.loc-name { font-size: 14px; font-weight: 500; color: var(--text-primary); display: block; }
.loc-ping { font-size: 12px; color: var(--text-muted); display: block; }
.preview-location-row .fa-chevron-down { color: var(--text-muted); font-size: 11px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-block {
  background: var(--surface-2); border-radius: 8px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.stat-block .fa-arrow-down, .stat-block .fa-arrow-up { color: var(--accent-light); font-size: 13px; margin-top: 2px; }
.stat-value { font-size: 13px; font-weight: 500; color: var(--text-primary); display: block; }
.stat-label { font-size: 11px; color: var(--text-muted); display: block; }
.nearby-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.nearby-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-top: 1px solid var(--divider);
}
.nearby-name { font-size: 13px; color: var(--text-emphasis); }
.nearby-ping { font-size: 13px; color: var(--text-muted); }

/* ─── UNLOCKS STRIP ─── */
.unlocks-strip {
  background: var(--bg-band);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 14px 0;
}
.unlocks-strip .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-start; }
.unlocks-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.unlocks-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.unlock-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.unlock-logo:hover { opacity: 1; }
/* Per-logo height tuning for balanced visual weight */
.unlock-logo[data-brand="chatgpt"]   { height: 28px; }  /* square icon — slightly taller */
.unlock-logo[data-brand="youtube"]   { height: 22px; }  /* very wide — reduce height */
/* Disney+ is dark teal — lighten so it reads on the dark strip */
.unlock-logo[data-brand="disney-plus"] { filter: brightness(1.8); }
@media (max-width: 640px) {
  .unlocks-logos { gap: 16px; }
  .unlock-logo                           { height: 22px; }
  .unlock-logo[data-brand="chatgpt"]     { height: 24px; }
  .unlock-logo[data-brand="youtube"]     { height: 18px; }
}

/* ─── FEATURES ─── */
.features { padding: 56px 0; }
.features-eyebrow { margin-bottom: 32px; }
.features-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.feature-card-large {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.feature-card-large h3 { margin-bottom: 10px; }
.feature-card-large p { font-size: 14px; }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 48px; margin: 20px 0 6px; }
.mini-chart .bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 8px; }
.mini-chart .bar.accent-bar { background: var(--accent); }
.mini-chart .bar.dim-bar { background: var(--border); }
.chart-caption { font-size: 11px; color: var(--text-muted); }
.feature-stack { display: flex; flex-direction: column; gap: 12px; }
.feature-card-small {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
}
.feature-icon { font-size: 18px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.feature-card-small h3 { font-size: 14px; margin-bottom: 4px; }
.feature-card-small p { font-size: 13px; margin: 0; }

/* ─── SERVERS ─── */
.servers { padding: 56px 0; }
.servers-eyebrow { margin-bottom: 20px; }
.location-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-emphasis);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 12px; white-space: nowrap;
}
.chip-flag {
  width: 20px; height: 20px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0; display: block;
}
.chip-muted { color: var(--text-muted); }

/* ─── PRICING ─── */
.pricing { padding: 56px 0; }
.pricing-heading { text-align: center; margin-bottom: 32px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 860px; margin: 0 auto;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.recommended {
  background: #fff; border: 2px solid var(--accent);
  color: var(--on-light-surface);
}
.pricing-card.recommended h3 { color: var(--on-light-surface); }
.pricing-card.recommended .price-amount { color: var(--on-light-surface); }
.pricing-card.recommended .price-suffix { color: var(--on-light-surface-secondary); }
.pricing-card.recommended .plan-features { color: var(--on-light-surface-secondary); }
.pricing-card.recommended .plan-features li::before { background: var(--accent); }
.recommended-badge {
  position: absolute; top: -11px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 999px;
}
.pricing-card h3 { font-size: 15px; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 16px; }
.price-amount { font-size: 28px; font-weight: 500; color: var(--text-primary); }
.price-suffix { font-size: 13px; color: var(--text-muted); padding-left: 2px; }
.plan-features {
  list-style: none; padding: 0; margin: 0 0 20px 0;
  font-size: 13px; color: var(--text-secondary);
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.plan-features li { display: flex; align-items: center; gap: 8px; }
.plan-features li::before {
  content: ""; display: block; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ─── FAQ ─── */
.faq { padding: 56px 0; }
.faq-eyebrow { margin-bottom: 20px; }
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item:first-child { border-top: 1px solid var(--divider); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 0; text-align: left;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-primary);
}
.faq-q .fa-chevron-down { color: var(--text-muted); font-size: 13px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .fa-chevron-down { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: 16px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--divider);
  padding: 48px 0 24px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer-brand .logo-footer { height: 24px; width: auto; max-width: 120px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 13px; color: var(--text-muted);
  display: block; padding: 4px 0;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text-secondary); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 24px 32px 0;
  border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); margin: 0; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-muted); font-size: 16px; transition: color 0.2s; }
.footer-social a:hover { color: var(--text-secondary); text-decoration: none; }

/* ─── INNER PAGE HERO ─── */
.page-hero { padding: 56px 0; border-bottom: 1px solid var(--divider); }
.page-hero h1 { font-size: 28px; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: var(--text-secondary); }

/* ─── PROSE / LEGAL ─── */
.prose { padding: 48px 0; }
.prose-inner { max-width: 700px; }
.prose-inner p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.prose-inner h2 { font-size: 18px; margin: 32px 0 12px; }
.prose-inner h3 { font-size: 15px; margin: 20px 0 8px; }
.prose-inner ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose-inner ul li { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }

/* ─── DOWNLOAD PAGE ─── */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
.download-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.download-card i { font-size: 32px; color: var(--accent-light); margin-bottom: 12px; }
.download-card h3 { font-size: 14px; margin-bottom: 6px; }
.download-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.setup-steps { margin-top: 48px; }
.setup-steps h2 { font-size: 20px; margin-bottom: 28px; }
.setup-step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent); font-weight: 500; flex-shrink: 0;
}
.step-content h3 { font-size: 14px; margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-muted); margin: 0; }
.dl-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; margin: 32px 0; }

/* ─── CONTACT PAGE ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.contact-card i { font-size: 24px; color: var(--accent-light); margin-bottom: 14px; }
.contact-card h3 { font-size: 15px; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }

/* ─── PRICING PAGE FEATURES ─── */
.pricing-page { padding: 56px 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pf-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  display: flex; gap: 14px;
}
.pf-card i { font-size: 18px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.pf-card h3 { font-size: 14px; margin-bottom: 4px; }
.pf-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .app-preview { max-width: 100%; margin: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .container { padding: 0 20px; }
  .nav { padding: 0 0 0 20px; }  /* §11: keep left pad only, right=0 so toggle is flush */
  .hero { padding: 40px 0 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-cta, .hero-actions .btn-ghost { justify-content: center; text-align: center; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .pricing-grid { max-width: 100%; }
  .download-grid { grid-template-columns: 1fr; }
}
