/* TonBoVPN mirror — design tokens from tonbovpn.com */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --brand:        #228be6;
  --brand-strong: #1c7ed6;
  --brand-light:  #339af0;
  --bg:           #0a0f1f;
  --bg-soft:      #0d1428;
  --surface:      #121a37;
  --surface-hi:   #18224a;
  --border:       rgba(34,139,230,.18);
  --text:         #eaf0fb;
  --muted:        #93a0bf;
  --ok:           #2fd09a;
  --warn:         #ff6b6b;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,15,31,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px; gap: 32px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo  { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.logo-footer { height: 32px; width: auto; object-fit: contain; margin-bottom: 12px; }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; list-style: none;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--radius);
  color: var(--muted); font-size: 15px; font-weight: 500; transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.mobile-lang { display: none; }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

/* dropdown lang-switcher */
.dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); padding: 7px 13px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.lang-btn:hover { color: var(--text); border-color: var(--brand); }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  padding-top: 8px;
  display: none; min-width: 140px; z-index: 1000;
}
.dropdown-panel-inner {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 0;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel-inner a {
  display: block; padding: 9px 16px;
  color: var(--muted); font-size: 14px; white-space: nowrap;
}
.dropdown-panel-inner a:hover { background: rgba(34,139,230,.1); color: var(--text); }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 15px; white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.btn-cta.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand); color: var(--brand); font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius); font-size: 15px; white-space: nowrap;
  transition: background var(--transition);
}
.btn-outline:hover { background: rgba(34,139,230,.12); color: var(--brand); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; padding: 8px; }

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #070c1d 0%, #0a1530 60%, #0d1e45 100%);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,139,230,.18) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-block; background: rgba(34,139,230,.15); border: 1px solid rgba(34,139,230,.3);
  color: var(--brand-light); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 24px; letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -.5px;
}
.hero h1 span { color: var(--brand-light); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* platform tags */
.platform-scroll {
  background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px; overflow: hidden;
}
.platform-scroll-inner {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 1200px; margin: 0 auto;
}
.plat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; padding: 6px 13px; border-radius: 50px;
  white-space: nowrap;
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* comparison table */
.compare-section { background: var(--bg-soft); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th { background: var(--surface); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.compare-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.compare-table .col-best { background: rgba(34,139,230,.08); }
.compare-table .col-best th, .compare-table .col-best td { border-color: rgba(34,139,230,.25); }
.badge-best { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-left: 6px; }
.ok-dot { color: var(--ok); font-weight: 700; }
.warn-dot { color: var(--warn); font-weight: 700; }

/* use cases */
.use-cases-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.use-case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.use-case-card:hover { border-color: rgba(34,139,230,.4); transform: translateY(-2px); }
.use-case-icon { font-size: 28px; margin-bottom: 14px; }
.use-case-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--brand-light); margin-bottom: 6px; }
.use-case-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.use-case-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* capabilities */
.caps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.cap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.cap-card i { font-size: 24px; color: var(--brand-light); margin-bottom: 14px; }
.cap-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--muted); }

/* plans */
.plans-section { background: var(--bg-soft); }
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.plan-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  position: relative; transition: border-color var(--transition);
}
.plan-card.featured { border-color: var(--brand); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 50px; white-space: nowrap; }
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plan-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--brand-light); margin-bottom: 4px; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-orig { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 26px; }
.plan-features li { padding: 7px 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '✓'; color: var(--ok); font-weight: 800; flex-shrink: 0; }

/* nodes */
.nodes-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.node-tag {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}

/* steps */
.steps-section { background: var(--bg-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.step-card { text-align: center; padding: 24px 16px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(34,139,230,.15); border: 2px solid rgba(34,139,230,.3); color: var(--brand-light); font-size: 20px; font-weight: 800; border-radius: 50%; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* platform clients */
.platforms-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platform-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: border-color var(--transition);
}
.platform-btn:hover { border-color: var(--brand); color: var(--text); }
.platform-btn i { font-size: 18px; color: var(--brand-light); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0d1e45, #091530);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 72px 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* feature grid */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.feature-card i { font-size: 28px; color: var(--brand-light); margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-size: 16px; font-weight: 600; padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--brand-light); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; }
.faq-a p { color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* page hero */
.page-hero { background: linear-gradient(135deg, #070c1d, #0d1a3a); padding: 64px 24px 48px; text-align: center; }
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }

/* prose */
.prose { padding: 64px 24px; }
.prose-inner { max-width: 800px; margin: 0 auto; }
.prose-inner h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; color: var(--text); }
.prose-inner h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.prose-inner p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.prose-inner ul { list-style: disc; padding-left: 22px; color: var(--muted); margin-bottom: 16px; }
.prose-inner ul li { margin-bottom: 6px; line-height: 1.65; }

/* FOOTER */
.site-footer { background: #07091a; border-top: 1px solid var(--border); padding: 56px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: 14px; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; }

/* download page */
.download-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.dl-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.dl-card i { font-size: 32px; color: var(--brand-light); margin-bottom: 12px; }
.dl-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.contact-card i { font-size: 28px; color: var(--brand-light); margin-bottom: 14px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* STAT ROW */
.stat-row { background: var(--surface-hi); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 24px; }
.stat-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; max-width: 900px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--brand-light); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ─── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* §11: logo left, hamburger FAR RIGHT, no switcher in header bar */
  .nav {
    position: relative;
    display: flex; align-items: center;
    justify-content: flex-start; /* not space-between */
    gap: 0; padding: 0 8px 0 16px; /* right padding ≤12px so toggle right edge is within 12px of header right */
  }
  .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(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.4);
    padding: 12px 0 20px; z-index: 999;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links > li:not(.mobile-lang) > a { width: 100%; text-align: center; padding: 14px 0; font-size: 17px; color: var(--text); }
  /* §12: switcher inside mobile menu, centered, single-line */
  .mobile-lang { display: flex; justify-content: center; gap: 12px; padding: 14px 0; width: 100%; }
  .mobile-lang a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 12px; white-space: nowrap; border-radius: var(--radius); border: 1px solid var(--border); }
  .mobile-lang a.active { color: var(--brand-light); border-color: var(--brand); }
  /* §11: hide desktop switcher from mobile header bar */
  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; } /* hide header CTA on mobile; hamburger only */
  .nav-right { margin-left: auto; display: flex; align-items: center; }
  /* §11: hamburger LAST and flush FAR right, order:99 */
  .nav-toggle { display: flex; align-items: center; justify-content: center; order: 99; margin-left: 8px; padding: 6px; }

  /* §14: mobile CTAs strictly centered */
  .hero { padding: 64px 20px 56px; }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .hero-cta .btn-cta { display: block; margin-left: auto; margin-right: auto; text-align: center; width: max-content; max-width: 90%; }
  .btn-cta, .cta-button {
    display: block; margin-left: auto; margin-right: auto;
    text-align: center; width: max-content; max-width: 90%;
  }
  /* plan cards: center the CTA button */
  .plan-card { display: flex; flex-direction: column; align-items: stretch; }
  .plan-card .btn-cta { display: block; margin-left: auto; margin-right: auto; text-align: center; width: 100%; max-width: 280px; }
  /* dl-card CTA */
  .dl-card .btn-cta { display: block; margin-left: auto; margin-right: auto; width: max-content; max-width: 90%; }
  /* use-case card CTA */
  .use-case-card .btn-cta { display: block; margin-left: auto; margin-right: auto; width: max-content; max-width: 90%; }
  /* cta-btns always centered */
  .cta-btns { display: flex !important; flex-direction: column; align-items: center; gap: 12px; }
  .cta-btns .btn-cta { display: block; margin-left: auto; margin-right: auto; width: max-content; max-width: 90%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }

  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }

  section { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .stat-inner { gap: 28px; }
}
