/* mullvad.world — style.css — Mullvad VPN dark theme */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  /* ─── Mullvad brand tokens ─── */
  --primary:       #ffcc00;   /* Mullvad yellow */
  --primary-dark:  #e6b800;
  --primary-text:  #191919;   /* text on yellow */
  --bg:            #191919;   /* body background */
  --surface:       #2e2e2e;   /* card/section background */
  --surface-2:     #3a3a3a;   /* slightly lighter surface */
  --header-bg:     #191919;
  --text:          #f0f0f0;
  --text-muted:    #aaaaaa;
  --text-dim:      #777777;
  --border:        rgba(255,255,255,.1);
  --success:       #44ad4d;
  --danger:        #e34039;
  /* ─── Spacing ─── */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  /* ─── Radii — Mullvad uses very minimal rounding ─── */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;
  /* ─── Typography ─── */
  --font-mono:  'Source Code Pro', 'Courier New', monospace;
  --font-body:  'Open Sans', Arial, sans-serif;
  --font-display: 'Source Code Pro', 'Open Sans', monospace;
  /* ─── Motion ─── */
  --transition: 0.18s ease;
  --shadow-card: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-top: 72px;
}
@media (max-width: 768px) { body { padding-top: 60px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 10px var(--space-sm);
  min-height: 72px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 36px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a,
.nav-links > li > button {
  color: rgba(240,240,240,.88);
  font-size: 15px; font-weight: 600;
  font-family: var(--font-display);
  padding: 8px 14px;
  border: none; background: none; cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--primary); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}
.mobile-lang { display: none; }

/* ─── DROPDOWN ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel::before {
  /* invisible bridge so cursor can travel to menu without it closing */
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown-panel-inner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; color: var(--primary); }

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: rgba(240,240,240,.88);
  padding: 7px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary);
  color: var(--primary-text);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn-cta:hover {
  background: var(--primary-dark);
  color: var(--primary-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,204,0,.35);
}
.btn-cta.btn-lg { padding: 14px 32px; font-size: 16px; }

/* CTA pulse animation on hero */
@media (prefers-reduced-motion: no-preference) {
  .hero .btn-cta {
    animation: cta-pulse 3s ease-in-out infinite;
  }
  @keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,204,0,0); }
    50%       { box-shadow: 0 0 0 8px rgba(255,204,0,.18); }
  }
}

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--surface);
    padding: var(--space-md) var(--space-sm) var(--space-lg);
    gap: 0; justify-content: flex-start;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a,
  .nav-links > li > button { padding: 14px var(--space-sm); width: 100%; text-align: left; }
  .nav-links .dropdown { width: 100%; }
  .nav-links .dropdown-panel {
    position: static; display: none;
    padding-top: 0; min-width: 100%;
  }
  .nav-links .dropdown.open .dropdown-panel { display: block; }
  .nav-links .dropdown-panel::before { display: none; }
  .nav-links .dropdown-panel-inner { border: none; box-shadow: none; border-radius: 0; background: transparent; }
  .nav-links .dropdown-panel a { padding: 10px var(--space-md); color: var(--text-muted); font-size: 14px; }
  .mobile-lang { display: flex !important; flex-wrap: nowrap; gap: var(--space-sm); padding: var(--space-sm) var(--space-sm) 0; border-top: 1px solid var(--border); overflow: hidden; }
  .mobile-lang a { color: var(--text-muted); font-size: 14px; white-space: nowrap; width: auto !important; padding: 0 !important; }
  .mobile-lang a.active { color: var(--primary); font-weight: 600; }
  .nav-right .lang-switcher { display: none; }
  .nav-links .dropdown:hover .dropdown-panel,
  .nav-links .dropdown:focus-within .dropdown-panel { display: none; }
  .nav-links .dropdown.open .dropdown-panel { display: block; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle {
    display: flex !important; align-items: center; justify-content: center;
    background: none; border: none; color: var(--text); font-size: 22px;
    cursor: pointer; padding: 8px; margin-left: auto;
  }
}
.nav-toggle { display: none; }
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #191919 0%, #2a2a2a 50%, #1e1e1e 100%);
  padding: var(--space-xl) 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,204,0,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 760px; margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,204,0,.12);
  color: var(--primary);
  border: 1px solid rgba(255,204,0,.3);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}
.hero p {
  font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto var(--space-md);
  line-height: 1.7;
}
.hero-cta-group { display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: hero-slide-up .6s cubic-bezier(.25,0,.3,1) both;
  }
  @keyframes hero-slide-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); margin-bottom: var(--space-xs); }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 600px; margin: 0 auto var(--space-md); }

/* ─── SECTIONS ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--surface); }
.section-title { font-size: clamp(22px, 3vw, 36px); text-align: center; margin-bottom: var(--space-xs); }
.section-sub { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,204,0,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(255,204,0,.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 20px; color: var(--primary);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.section-alt .feature-card { background: var(--surface-2); }

/* ─── SCROLL REVEAL ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ─── BULLETS ─── */
.bullets { list-style: none; padding: 0; }
.bullets li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-muted); font-size: 14px;
}
.bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  max-width: 600px; margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pricing-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.pricing-price { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.pricing-period { font-size: 13px; color: var(--text-dim); margin-bottom: var(--space-md); }
.pricing-cta { margin-top: var(--space-md); }
.pricing-card .bullets li { text-align: left; }

/* ─── PAYMENT METHODS ─── */
.payment-methods {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; padding: 0;
}
.payment-methods li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted);
}

/* ─── DEVICE GRID ─── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.device-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.device-card:hover { transform: translateY(-3px); border-color: rgba(255,204,0,.35); }
.device-icon { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); display: block; }
.device-card h3 { font-size: 17px; margin-bottom: var(--space-xs); color: #fff; }
.device-card h3 a { color: #fff; }
.device-card h3 a:hover { color: var(--primary); text-decoration: none; }
.device-card .bullets { margin-bottom: var(--space-sm); text-align: left; }
.device-card .btn-cta { font-size: 13px; padding: 8px 16px; }

/* ─── COMPARE TABLE ─── */
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; overflow-x: auto; display: block;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left; color: var(--text-muted);
}
.compare-table th {
  background: var(--surface-2);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: .05em;
}
.compare-table .highlight { background: rgba(255,204,0,.06); color: #fff; }
.compare-table th.highlight { color: var(--primary); }

/* ─── FAQ ─── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: var(--space-sm) 0; cursor: pointer;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.faq-q.open::after { content: '–'; }
.faq-a { display: none; padding-bottom: var(--space-sm); }
.faq-a p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.faq-a.open { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: #111111;
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 0;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: 0 var(--space-md) var(--space-lg);
}
.logo-footer { height: 32px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.footer-heading { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--space-xs); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  max-width: 1100px; margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── CLOSING CTA SECTION ─── */
.section .hero-cta-group { justify-content: center; margin-top: var(--space-md); }

/* ─── GENERAL UTILITY ─── */
.text-center { text-align: center; }
p { margin: 0 0 var(--space-sm); }
h2 + p, h3 + p { margin-top: 0; }

@media (max-width: 768px) {
  .nav { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { justify-content: center; }
  .hero .btn-cta.btn-lg, .section .btn-cta.btn-lg { width: 100%; max-width: 320px; text-align: center; display: block; margin: 0 auto; }
  .compare-table { font-size: 13px; }
}
@media (max-width: 480px) {
  .device-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
