/* =============================================
   Open VPN — Main Stylesheet
   Mobile-first, responsive design
   Orange theme #DE7C29
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #DE7C29;
  --accent: #E8903D;
  --accent-dark: #C4641A;
  --accent-light: #FDF0E3;
  --text: #2D3640;
  --text-muted: #616C79;
  --bg: #ffffff;
  --bg-light: #fdf6f0;
  --bg-dark: #2D3640;
  --border: #f0e6d8;
  --shadow: 0 4px 24px rgba(222,124,41,0.14);
  --shadow-card: 0 2px 16px rgba(222,124,41,0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-btn: 8px;
  --font: 'Poppins', 'Inter', system-ui, -apple-system, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(222,124,41,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(222,124,41,0.35);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(222,124,41,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(222,124,41,0.08);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

/* On dark backgrounds (CTA banner) — keep white */
.cta-banner .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* Burger menu */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.mobile-nav .btn-accent {
  margin-top: 8px;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 24px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(222,124,41,0.12) 100%);
  color: var(--text);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(222,124,41,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(222,124,41,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(222,124,41,0.10);
  border: 1px solid rgba(222,124,41,0.28);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(222,124,41,0.18);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--primary);
  padding: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  font-weight: 500;
}

/* =============================================
   DOWNLOADS SECTION
   ============================================= */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

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

.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.platform-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.platform-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.platform-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.platform-card:hover .platform-icon {
  background: var(--accent-light);
}

.platform-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--primary);
  transition: fill 0.2s;
}

.platform-card:hover .platform-icon svg {
  fill: var(--accent-dark);
}

.platform-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.platform-action {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
}

.feature-content h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   PRICING SECTION
   ============================================= */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 32px rgba(222,124,41,0.15);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check-icon {
  width: 18px;
  height: 18px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 10px;
  height: 10px;
  color: var(--accent-dark);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 1rem;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.trust-card {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.trust-card h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #ffffff;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo img {
  height: 36px;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--primary);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent-dark);
}

/* =============================================
   RESPONSIVE — TABLET (min-width: 640px)
   ============================================= */
@media (min-width: 640px) {
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item:not(:last-child)::after {
    display: block;
  }

  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =============================================
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================= */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }

  .burger {
    display: none;
  }

  .hero {
    padding: 96px 0 104px;
  }

  .hero-inner {
    max-width: 640px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
