/* 365VPN Mirror Site — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  /* 365VPN design tokens (DESIGN.md) */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #38bdf8;
  --dark: #0f172a;
  --header-bg: #ffffff;
  --bg: #ffffff;
  --surface: #f1f5f9;
  --surface-2: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --green: #16a34a;
  --red: #dc2626;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 9999px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --transition: 0.2s ease;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

/* ─── SCOPED BORDER TOKEN (header/footer divider = #e5e7eb, doesn't affect --border elsewhere) ─── */
header { --border: 220 13% 91%; }
footer { --border: 220 13% 91%; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
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.25; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid hsl(var(--border));
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 20px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--primary); background: var(--surface); text-decoration: none; }

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

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .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; }

.lang-btn {
  background: none; border: 1px solid hsl(var(--border));
  color: var(--text); padding: 7px 10px;
  border-radius: var(--radius-xl); cursor: pointer;
  font-size: 15px; display: flex; align-items: center;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: var(--text-muted); color: var(--primary); }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }

/* ─── HEADER NAV BUTTONS ─── */
.btn-dark {
  background: var(--dark); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-dark:hover { opacity: .85; text-decoration: none; transform: translateY(-1px); }

.btn-outline-nav {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--dark);
  padding: 9px 19px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-outline-nav:hover { background: var(--surface); text-decoration: none; transform: translateY(-1px); }

.btn-cta-lg {
  background: var(--primary); color: #fff;
  padding: 16px 36px; border-radius: var(--radius-xl);
  font-size: 18px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-lg:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-xl);
  font-size: 16px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #fff; text-align: center;
  padding: var(--space-xl) var(--space-sm);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1614064641938-3bbee52942c7?w=1400&q=80&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.08;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,189,248,.15); border: 1px solid rgba(56,189,248,.4);
  color: var(--accent); padding: 6px 16px; border-radius: var(--radius-xl);
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-md);
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.82); margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-md); }
.hero-note { font-size: 13px; color: rgba(255,255,255,.55); }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 28px; font-weight: 800; color: var(--primary);
  display: block; line-height: 1;
}
.trust-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-top: 6px; display: block;
}
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: var(--space-xs);
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-sm); }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-card i {
  font-size: 28px; color: var(--primary); margin-bottom: var(--space-sm);
  display: block;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 320px; object-fit: cover; }
.split-content .section-title { font-size: clamp(22px, 3vw, 34px); }
.check-list { margin: var(--space-sm) 0 var(--space-md); }
.check-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.pricing-card:hover { box-shadow: var(--shadow-card); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: var(--radius-xl); font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.pricing-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }
.pricing-features li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-cta { width: 100%; padding: 13px; border-radius: var(--radius-xl); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: var(--space-sm); display: block; text-align: center; transition: all var(--transition); background: var(--primary); color: #fff; border: none; }
.pricing-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #fff; }
.guarantee-banner p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--header-bg); color: var(--text-muted);
  border-top: 1px solid hsl(var(--border));
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 36px; width: auto; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid hsl(var(--border)); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff; text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* ─── PLATFORM CARDS ─── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.platform-card i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); }
.platform-card span { font-size: 14px; font-weight: 600; display: block; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-info h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.contact-info p { color: var(--text-muted); margin-bottom: var(--space-md); }
.contact-method { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--space-md); }
.contact-method i { color: var(--primary); font-size: 20px; margin-top: 3px; flex-shrink: 0; }

/* ─── PROSE (privacy/terms) ─── */
.prose-section { padding: var(--space-xl) var(--space-sm); }
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto; max-height: none;
    overflow: visible;
    background: var(--header-bg);
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; color: var(--text); }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta, .nav-right .btn-dark, .nav-right .btn-outline-nav, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: block; }

  /* Lang switcher INSIDE mobile menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid hsl(var(--border));
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--text-muted);
  }
  .nav-links li.mobile-lang a.active { color: var(--primary); font-weight: 700; }

  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .btn-cta,
  .btn-cta-lg,
  .hero-cta,
  .cta-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
  .cta-wrap { display: flex; justify-content: center; width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; }

  .platform-grid { grid-template-columns: 1fr; }
}

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