/* ============================================================
   VPN Global — vpnglobal.net
   Design system: clean, trust-focused, privacy-brand aesthetic
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --line: #e2e8f0;
  --primary: #0f766e;       /* teal-700 */
  --primary-dark: #115e59;
  --accent: #14b8a6;        /* teal-500 */
  --navy: #0b1220;
  --navy-2: #101c33;
  --gold: #d97706;
  --good: #16a34a;
  --bad: #dc2626;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(2, 8, 23, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; }

p { color: var(--ink-soft); }
strong { color: var(--ink); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--primary); }
.logo svg { border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1.3rem; line-height: 1; padding: 6px 12px; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 460px at 78% -10%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(800px 420px at 12% 110%, rgba(13, 148, 136, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0d2a3a 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 380px at 50% 20%, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(20, 184, 166, .35);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero p.lead { color: #cbd5e1; font-size: 1.13rem; max-width: 640px; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-trust {
  margin-top: 26px; font-size: .88rem; color: #94a3b8;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.hero-trust span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #2dd4bf; }

.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }

.btn-ghost-light { background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: rgba(15, 118, 110, .07); }

.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.02rem; }
.section-head .eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px; display: block;
}

/* ---------- Cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Top-pick cards */
.pick-card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pick-card .tag {
  position: absolute; top: -13px; left: 22px;
  background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.pick-card .tag.no-aff { background: var(--gold); }
.pick-card .pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pick-card .price-from { color: var(--ink-faint); font-size: .9rem; white-space: nowrap; }
.pick-card ul { list-style: none; margin: 4px 0 8px; }
.pick-card ul li { padding: 3px 0 3px 24px; position: relative; color: var(--ink-soft); font-size: .94rem; }
.pick-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.pick-card .btn { align-self: flex-start; margin-top: auto; }
.pick-card .no-aff-note { font-size: .85rem; color: var(--ink-faint); font-style: italic; }

/* ---------- Scores ---------- */

.score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; height: 58px; border-radius: 12px;
  background: var(--primary); color: #fff;
  font-weight: 800; line-height: 1;
}
.score b { font-size: 1.25rem; }
.score small { font-size: .6rem; font-weight: 700; letter-spacing: .08em; opacity: .85; margin-top: 3px; }
.score.gold { background: var(--gold); }
.score.blue { background: #2563eb; }
.score.slate { background: #475569; }

.stars { color: var(--gold); font-size: .9rem; letter-spacing: 2px; }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .94rem; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; vertical-align: middle; }
table.compare thead th {
  background: var(--navy); color: #e2e8f0;
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
table.compare tbody tr + tr { border-top: 1px solid var(--line); }
table.compare tbody tr:hover { background: #f0fdfa; }
table.compare td .vpn-name { font-weight: 800; font-size: 1rem; }
table.compare td .vpn-name a { color: var(--ink); }
table.compare td .vpn-name a:hover { color: var(--primary); }
table.compare .nowrap { white-space: nowrap; }

.badge {
  display: inline-block; font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-best   { background: #dcfce7; color: #166534; }
.badge-value  { background: #fef3c7; color: #92400e; }
.badge-free   { background: #dbeafe; color: #1e40af; }
.badge-privacy{ background: #f3e8ff; color: #6b21a8; }
.badge-budget { background: #ffe4e6; color: #9f1239; }

/* ---------- Review pages ---------- */

.breadcrumbs { font-size: .85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--primary); }

.review-hero { padding: 54px 0 40px; }
.review-hero .head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.review-hero h1 { margin-bottom: 8px; }
.review-hero .meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-faint); font-size: .9rem; margin-top: 10px; }

.verdict-box {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}
.verdict-box h3 { color: var(--primary-dark); margin-bottom: 6px; }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0; }
.pc-col h3 { margin-bottom: 12px; }
.pc-col ul { list-style: none; }
.pc-col li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-soft); font-size: .96rem; border-bottom: 1px dashed var(--line); }
.pc-col li:last-child { border-bottom: none; }
.pc-col.pros li::before  { content: "＋"; position: absolute; left: 0; top: 7px; color: var(--good); font-weight: 800; }
.pc-col.cons li::before  { content: "−"; position: absolute; left: 0; top: 7px; color: var(--bad);  font-weight: 800; }

table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 22px 0; }
table.specs td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.specs td:first-child { font-weight: 700; color: var(--ink); width: 34%; }
table.specs tr:last-child td { border-bottom: none; }
.specs-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.cta-band {
  background: linear-gradient(135deg, var(--navy), #123a3c);
  color: #fff; border-radius: var(--radius);
  padding: 34px 30px; margin: 30px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: #cbd5e1; font-size: .95rem; margin: 0; }

.note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .92rem; color: #78350f; margin: 18px 0;
}

.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose .lede { font-size: 1.12rem; color: var(--ink-soft); }

.pick-list { display: grid; gap: 16px; margin: 24px 0; }
.pick-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.pick-row .score { flex-shrink: 0; margin-top: 2px; }
.pick-row .pick-body h3 { margin-bottom: 4px; }
.pick-row .pick-body p { font-size: .95rem; }
.pick-row .pick-body .pick-cta { margin-top: 10px; font-weight: 700; font-size: .92rem; }

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

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: #99f6e4; background: #f0fdfa; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; font-size: .95rem; }

/* ---------- Guide / article headers ---------- */

.article-head { padding: 54px 0 10px; }
.article-head .kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); display: block; margin-bottom: 12px;
}
.article-head h1 { max-width: 780px; }
.article-head .meta-line { margin-top: 14px; color: var(--ink-faint); font-size: .9rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #94a3b8; padding: 56px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.footer-grid h4 { color: #e2e8f0; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #94a3b8; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-brand p { font-size: .92rem; color: #94a3b8; margin-top: 12px; max-width: 300px; }

.disclosure {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px; font-size: .82rem; color: #64748b; line-height: 1.6;
}
.disclosure .copyright { margin-top: 12px; }

/* ---------- Utility ---------- */

.aff-note { font-size: .8rem; color: var(--ink-faint); }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrap main { flex: 1; }

.skip-note { margin: 8px 0 0; font-size: .85rem; color: var(--ink-faint); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 18px 22px; gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .pc-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
