/* ==========================================================================
   Datastream VPN — site.css
   Light redesign "B" — one design system, Inter, no framework, no JS required
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --brand: #1679EB;
  --brand-dark: #0E5CBE;
  --brand-deep: #0A3D7D;
  --ink: #111827;
  --ink-soft: #1F2937;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --surface: #F7F9FC;
  --surface-2: #EEF2F7;
  --white: #FFFFFF;
  --hero: linear-gradient(70deg, #000000 0%, #1679EB 43%, #0E5CBE 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
  --container: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul, ol { padding: 0; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.section--tight { padding: 56px 0; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .12s ease, background .12s ease;
}
.nav a:hover { color: var(--brand); background: var(--surface-2); }
.nav a.active { color: var(--brand); background: var(--surface-2); font-weight: 600; }
.nav-cta { margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; }
.nav .btn { padding: 10px 20px; font-size: .92rem; }
.nav-login { display: inline-flex; align-items: center; color: var(--ink-soft); font-weight: 500; font-size: .92rem; padding: 10px 12px; }
.nav-login:hover { color: var(--brand); }

/* Mobile nav (pure CSS checkbox) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-label:hover { background: var(--surface-2); }
.hamburger, .hamburger::before, .hamburger::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: all .2s ease;
}
.hamburger::before { position: absolute; top: -7px; }
.hamburger::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label .hamburger { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label .hamburger::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label .hamburger::after { top: 0; transform: rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero);
  color: #fff;
  padding: 104px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 760px; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.2rem; max-width: 640px; margin-bottom: 32px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center p { margin-left: auto; margin-right: auto; }
.hero--center .btn-row { justify-content: center; }

/* Hero with a photographic background image (dark overlay keeps text readable) */
.hero--image {
  background-size: cover;
  background-position: center;
}
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(0, 0, 0, .80) 0%, rgba(14, 92, 190, .68) 100%);
  z-index: 0;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* Feature row (icon + text) */
.feature { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; }
.feature .icon {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--brand); font-size: 1.3rem;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* ---------- Split / two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split .lead { font-size: 1.15rem; color: var(--ink-soft); }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 24px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Stats / metrics ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); font-weight: 600; margin-left: 16px; }
.faq details[open] summary::after { content: '–'; }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Server / location grid ---------- */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
.location {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.location:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.location .flag { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); flex: 0 0 auto; }
.location .flag-svg { width: 28px; height: 20px; border-radius: 3px; border: 1px solid var(--line); flex: 0 0 auto; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pricing-card .cycle { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pricing-card .plan-name { font-size: 1.05rem; font-weight: 700; margin: 6px 0 16px; }
.pricing-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.pricing-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-card ul { list-style: none; margin: 24px 0; flex: 1; }
.pricing-card ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: .95rem;
}
.pricing-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}
.pricing-card .btn { width: 100%; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Payment methods ---------- */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.payment-methods span {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 16px; font-weight: 600; color: var(--ink-soft); font-size: .9rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1220; color: #9CA3AF; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 40px; margin-bottom: 16px; }
.site-footer .brand p { font-size: .92rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #9CA3AF; font-size: .94rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .88rem;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Device grid (apps page) ---------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.device {
  text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.device:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.device img { height: 48px; width: auto; margin: 0 auto 14px; }
.device span { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Steps (3 easy steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step .step-img {
  width: 100%; max-width: 220px; margin: 0 auto 18px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
