/* WireGuard VPN — wireguardvpn.lol
   Palette: emerald + slate on near-white
   Typo: Manrope (display/body) + Roboto Mono (mono accents)
   Hero: G — central card-form
   Nav: B — transparent → white on scroll
   Cards: D — glassmorphism on light bg
   Buttons: B — pill 50px
   Sections: A — alternating white/mint
   FAQ: A — accordion
   Footer: B — single row minimal
   Anim: B — fade-in + scale
*/

:root {
  --primary: #059669;
  --primary-soft: #10B981;
  --primary-deep: #047857;
  --accent: #1F2937;
  --bg: #FFFFFF;
  --bg-alt: #ECFDF5;
  --text: #064E3B;
  --text-muted: #475569;
  --card-bg: rgba(255,255,255,0.65);
  --card-border: rgba(5,150,105,0.18);
  --border: #D1FAE5;
  --radius: 18px;
  --radius-pill: 50px;
  --shadow-sm: 0 4px 14px rgba(6,78,59,0.06);
  --shadow-md: 0 14px 38px rgba(6,78,59,0.10);
  --shadow-lg: 0 28px 70px rgba(6,78,59,0.16);
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --sans: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }

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

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; line-height: 1.18; color: var(--accent); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
p { margin-bottom: 14px; color: var(--text-muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.mono { font-family: var(--mono); }

/* ===== Header (transparent → solid white) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background 0.28s ease, box-shadow 0.28s ease, padding 0.28s ease;
}
.site-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(6,78,59,0.08);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--primary-deep); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 8px 2px;
}
.nav-links a:hover { color: var(--primary); }

.nav-links a.nav-cta {
  font-family: var(--sans);
  background: var(--primary);
  color: #000000 !important;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(5,150,105,0.28);
}
.nav-links a.nav-cta:hover {
  background: var(--primary-soft);
  color: #000000 !important;
  transform: translateY(-1px);
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--accent);
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Mobile nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  padding: 18px 22px 26px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 14px 38px rgba(6,78,59,0.12);
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
.mobile-nav a.cta {
  background: var(--primary);
  color: #000000;
  font-family: var(--sans);
  font-weight: 800;
  border: 0;
  border-radius: var(--radius-pill);
  text-align: center;
  margin-top: 12px;
  padding: 13px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(5,150,105,0.32);
}
.btn-primary:hover {
  background: var(--primary-soft);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(5,150,105,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ===== Hero — central card ===== */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(700px 420px at 92% 30%, rgba(31,41,55,0.07), transparent 65%),
    linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 80%);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(5,150,105,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5,150,105,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}
.hero-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(5,150,105,0.18);
  border-radius: 26px;
  padding: 44px 44px 38px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-card h1 { color: var(--accent); margin-bottom: 16px; }
.hero-card h1 .hi { color: var(--primary-deep); }
.hero-card .hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.hero-price b { color: var(--primary-soft); font-size: 1.18rem; font-weight: 600; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.hero-trust span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* Stats bar */
.stats {
  background: var(--bg);
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-item .num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-deep);
  display: block;
  letter-spacing: -0.02em;
}
.stats-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== Section base ===== */
section { padding: 90px 0; }
.section-mint { background: var(--bg-alt); }
.section-white { background: var(--bg); }

.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head p { max-width: 680px; margin: 12px auto 0; }

/* ===== Features (glass cards) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.feature .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
}
.feature h3 { color: var(--accent); }
.feature p { font-size: 0.95rem; margin-bottom: 0; }

/* ===== Download platforms ===== */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.platform {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
  color: var(--accent);
}
.platform:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-md);
  color: var(--primary-deep);
}
.platform .p-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 4px;
}
.platform .p-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Why WireGuard / text block ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: start;
}
.why-text p { font-size: 1.02rem; }
.why-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.why-list li b {
  font-family: var(--mono);
  color: var(--primary-deep);
  font-weight: 600;
  min-width: 70px;
}
.why-list li span { color: var(--text); font-size: 0.96rem; line-height: 1.55; }

/* ===== Use cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.case {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.case .case-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}
.case h3 { margin-bottom: 8px; }
.case p { margin-bottom: 0; font-size: 0.96rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #0F172A 100%);
  border-radius: 26px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(16,185,129,0.45), transparent 60%),
    radial-gradient(380px 200px at 90% 100%, rgba(5,150,105,0.4), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 580px; margin: 12px auto 22px; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-primary {
  background: var(--primary-soft);
  color: #042F1F;
}
.cta-banner .btn-primary:hover { background: #34D399; color: #042F1F; }

/* ===== FAQ accordion ===== */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.02rem;
  user-select: none;
  transition: background .2s ease;
}
.faq-q:hover { background: rgba(236,253,245,0.7); }
.faq-q .toggle {
  font-family: var(--mono);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  transition: transform .28s ease;
  font-size: 1rem;
}
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.faq-item.open .faq-a {
  max-height: 460px;
  padding: 0 22px 20px;
}

/* ===== Footer minimal single row ===== */
.site-footer {
  padding: 28px 0;
  background: var(--accent);
  color: rgba(255,255,255,0.75);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-row .f-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--sans); font-weight: 700;
}
.footer-row .f-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-row nav a { color: rgba(255,255,255,0.78); }
.footer-row nav a:hover { color: var(--primary-soft); }
.footer-row .f-copy { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* ===== Animations: fade-in + scale ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===== Instruction page ===== */
.steps {
  display: grid;
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: start;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(5,150,105,0.3);
}
.step h3 { font-size: 1.3rem; }
.step ul { margin: 12px 0 0 18px; color: var(--text-muted); }
.step ul li { margin-bottom: 6px; }

.post-pay {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.post-pay h3 { margin-bottom: 14px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .features-grid, .platforms { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-card { padding: 32px 24px; }
}
@media (max-width: 540px) {
  .features-grid, .platforms { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .cta-banner { padding: 40px 22px; }
  .footer-row { justify-content: flex-start; }
  .nav-links a.nav-cta { padding: 9px 16px; font-size: 0.86rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
}
