/* ===== Design tokens — Haita VPN light minimalist ===== */
:root {
  --amber: #F5A623;
  --amber-dark: #D9901A;
  --brown: #3D3530;
  --brown-mid: #6B5F58;
  --text: #2C2420;
  --text-muted: #7A6F6A;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F5;
  --bg-warm: #F5F0EA;
  --border: #EDE6DC;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(61,53,48,0.08);
  --shadow: 0 4px 16px rgba(61,53,48,0.10);
  --shadow-lg: 0 8px 32px rgba(61,53,48,0.12);
  --max-w: 1160px;
  --header-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: clip; max-width: 100%; }
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Utility ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--amber); border-color: var(--amber); }
.btn-outline:hover { background: var(--amber); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: 10px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav {
  display: flex; align-items: center;
  height: var(--header-h); gap: 0;
}
.nav-logo { flex-shrink: 0; margin-right: 36px; }
.nav-logo img { height: 54px; width: auto; }

/* Desktop nav links — pushed left, fills available space */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; /* take all space between logo and nav-right */
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--brown-mid);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brown); background: var(--bg-warm); }

/* Right cluster: lang dropdown + CTA + toggle */
.nav-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto;
}

/* Language dropdown */
.lang-drop-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--brown-mid);
  cursor: pointer; white-space: nowrap; transition: background .15s;
  font-family: inherit;
}
.lang-btn:hover { background: var(--border); color: var(--brown); }
.lang-arrow { font-size: 10px; transition: transform .2s; }
.lang-drop-wrap.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 100px; overflow: hidden; z-index: 2000;
}
.lang-drop-wrap.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--brown-mid);
  transition: background .15s;
}
.lang-dropdown a:hover { background: var(--bg-warm); color: var(--brown); }
.lang-dropdown a.active { color: var(--amber); font-weight: 700; background: rgba(245,166,35,.07); }

.nav-cta-desktop { padding: 9px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--brown); padding: 8px; }

/* Inline lang switcher inside mobile menu */
.lang-switcher-inline {
  display: flex; gap: 4px; justify-content: center;
  padding: 8px 0;
}
.lang-switcher-inline a {
  padding: 6px 14px !important; border-radius: 6px !important;
  font-size: 14px !important; font-weight: 600 !important;
  background: var(--bg-warm); color: var(--brown-mid) !important;
  border: 1px solid var(--border);
}
.lang-switcher-inline a.active { background: var(--amber); color: #fff !important; border-color: var(--amber); }

/* Mobile nav-mobile-bottom: lang + cta, hidden on desktop */
.nav-mobile-bottom { display: none; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
  .lang-drop-wrap { display: none; }
  .nav-links {
    display: none; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    width: 100vw; flex-direction: column; align-items: stretch;
    background: #fff; border-top: 2px solid var(--amber);
    box-shadow: 0 8px 32px rgba(61,53,48,0.18);
    padding: 16px 20px 40px;
    overflow-y: auto; z-index: 1100; gap: 4px; flex: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    width: 100%; text-align: center;
    padding: 18px 16px !important; font-size: 18px !important;
    font-weight: 600 !important; color: var(--brown) !important;
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
  }
  .nav-links > a:hover, .nav-links > a.active { background: rgba(245,166,35,0.15); color: var(--brown) !important; }
  .nav-mobile-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
  .nav-mobile-bottom .btn { width: 100%; padding: 16px !important; font-size: 17px !important; }
  .nav-right { gap: 6px; }
}

/* ===== Hero — background image with overlay ===== */
.hero {
  padding: 100px 0 88px;
  text-align: center;
  position: relative; overflow: hidden;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,250,245,0.82);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15); color: var(--amber-dark);
  padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 62px); font-weight: 800;
  line-height: 1.15; color: var(--brown);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--amber); }
.hero p.lead {
  font-size: clamp(16px, 2.5vw, 19px); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid rgba(61,53,48,.12);
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--brown); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== Section headings ===== */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-dark); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  color: var(--brown); line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto 48px;
}

/* ===== Feature grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(245,166,35,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--amber);
}
.feature-icon svg { width: 26px; height: 26px; flex-shrink: 0; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ===== Image + text split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-content h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--brown); margin-bottom: 16px; }
.split-content p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 14px; }
.check-list li::before {
  content: '✓'; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; margin-top: 1px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.plan-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; position: relative; transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card.popular { border-color: var(--amber); background: var(--bg-soft); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff; padding: 4px 16px; border-radius: 99px; font-size: 12px; font-weight: 700;
}
.plan-name { font-size: 18px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 800; color: var(--brown); }
.plan-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; }
.plan-price span { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 14px; color: var(--text-muted); margin: 8px 0 24px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.plan-features li::before { content: '✓'; color: var(--amber); font-weight: 700; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.testi-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.testi-stars { color: var(--amber); font-size: 16px; margin-bottom: 12px; }
.testi-text { font-size: 15px; color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.65; }
.testi-author { font-size: 13px; font-weight: 600; color: var(--brown); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--brown);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: inherit;
}
.faq-q .faq-icon { font-size: 20px; flex-shrink: 0; transition: transform .25s; color: var(--amber); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brown) 0%, #5c4a3e 100%);
  border-radius: 20px; padding: 64px 48px; text-align: center; margin: 0 24px;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== Security page ===== */
.security-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.security-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.security-card h3 { font-size: 18px; font-weight: 700; color: var(--brown); margin: 16px 0 10px; }
.security-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.security-icon-wrap { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--amber); margin-bottom: 16px; }
.security-icon-wrap svg { width: 32px; height: 32px; }
.trust-icon { display: flex; align-items: center; color: var(--amber); }
.trust-icon svg { width: 18px; height: 18px; }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  padding: 32px; background: var(--bg-warm); border-radius: var(--radius);
  margin: 48px 0;
}
.trust-bar-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brown-mid); }
.trust-bar-item span { font-size: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px;
}
.footer-brand img { height: 36px !important; width: auto; }
.footer-brand p.footer-tagline { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 220px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brown); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ===== Download page ===== */
.platforms-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.platform-card {
  background: var(--bg-soft); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.platform-card:hover { box-shadow: var(--shadow); border-color: var(--amber); }
.platform-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--amber); }
.platform-icon svg { width: 40px; height: 40px; }
.platform-card h3 { font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.platform-card .platform-ver { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.platform-card .platform-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* ===== Prose ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--brown); margin: 40px 0 12px; }
.prose p, .prose li { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.prose ul { padding-left: 20px; list-style: disc; }

/* ===== Keyword blurb ===== */
.kw-blurb {
  background: var(--bg-warm); border-radius: var(--radius);
  padding: 32px 36px; margin: 48px 0 0; text-align: left;
}
.kw-blurb h3 { font-size: 18px; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.kw-blurb p { color: var(--text-muted); font-size: 15px; line-height: 1.75; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 44px 24px; margin: 0 16px; }
  .pricing-grid, .features-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .platforms-grid { grid-template-columns: 1fr; }
}
