/* xvpn website — shared stylesheet (brand-agnostic)
 * Layout: top nav + container + white card over soft bg.
 */

:root {
  --brand-blue: #4a7cf7;
  --brand-ink: #1a1a2e;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --bg-highlight: #eef4ff;
  --bg-panel: #f0f4f8;
  --border-soft: #e8ecf1;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --max-width: 800px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-page);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Site navigation (top bar) */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav .nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav .nav-link:hover {
  background: var(--bg-highlight);
  color: var(--brand-blue);
}

.site-nav .nav-link.active {
  background: var(--brand-blue);
  color: var(--bg-card);
}

/* Page container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.container > h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-ink);
  text-align: center;
  margin-bottom: 8px;
}

.container > .last-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Content card */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-soft);
}

.card h2:first-child { margin-top: 0; }

.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.card ul,
.card ol {
  margin: 10px 0 14px 24px;
  color: var(--text-secondary);
}

.card li {
  margin-bottom: 6px;
}

.section-num {
  color: var(--brand-blue);
  font-weight: 600;
  margin-right: 4px;
}

/* Highlight callout */
.highlight {
  background: var(--bg-highlight);
  border-left: 4px solid var(--brand-blue);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.highlight p {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.highlight p:last-child {
  margin-bottom: 0;
}

/* Summary box */
.summary-box {
  background: var(--bg-highlight);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.summary-box h3 {
  margin-top: 0;
  color: var(--brand-blue);
}

.summary-box ol:last-child,
.summary-box ul:last-child {
  margin-bottom: 0;
}

.summary-box li:last-child {
  margin-bottom: 0;
}

/* Contact card */
.contact {
  margin-top: 28px;
  padding: 20px;
  background: var(--bg-panel);
  border-radius: 8px;
  text-align: center;
}

.contact h2 {
  border: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 18px;
}

.contact p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Third-party links (two-column on desktop) */
.links {
  margin-top: 20px;
}

.links ul {
  list-style: none;
  margin-left: 0;
  column-count: 2;
  column-gap: 24px;
}

.links ul li {
  padding: 4px 0;
}

.links a {
  color: var(--brand-blue);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-question .icon {
  color: var(--brand-blue);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-answer {
  color: var(--text-secondary);
  padding-left: 26px;
  font-size: 14px;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer ul,
.faq-answer ol {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Generic links inside card */
.card a {
  color: var(--brand-blue);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tables */
.card table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.card th,
.card td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.card th {
  background: var(--bg-panel);
  font-weight: 600;
  color: var(--text-primary);
}

.card td {
  color: var(--text-secondary);
}

/* Footer */
.page-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px 16px 32px;
  }

  .container > h1 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

  .card h2 {
    font-size: 17px;
  }

  body {
    font-size: 14px;
  }

  .site-nav-inner {
    padding: 10px 12px;
    gap: 4px;
  }

  .site-nav .nav-link {
    font-size: 13px;
    padding: 5px 10px;
  }

  .links ul {
    column-count: 1;
  }
}

/* ============================================================
 * Homepage — hero + features + footer
 * ============================================================ */

.home-body { background: linear-gradient(180deg, #eaf2ff 0%, var(--bg-page) 40%); }

/* Hero */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 500px; }

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(74, 124, 247, 0.25);
}

.hero-brand .brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.5px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.hero h1 .accent { color: var(--brand-blue); }

.hero .hero-tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero .hero-keypoints {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero .hero-keypoints li {
  font-size: 15px;
  color: var(--text-primary);
  padding-left: 26px;
  position: relative;
  font-weight: 500;
}

.hero .hero-keypoints li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-blue);
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(74, 124, 247, 0.32);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 124, 247, 0.4);
}

.btn-primary .icon {
  font-size: 20px;
  line-height: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Features grid */
.features {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px;
}

.features-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.features-subheading {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.feature-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Worldmap section */
.worldmap-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  text-align: center;
}

.worldmap-section img {
  max-width: 100%;
  height: auto;
}

.worldmap-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 12px;
}

.worldmap-section p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Site footer */
.site-footer {
  background: var(--brand-ink);
  color: #cbd5e0;
  padding: 40px 24px 24px;
  text-align: center;
}

.site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.site-footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.12s;
}

.site-footer-links a:hover { color: #fff; }

.site-footer-copyright {
  font-size: 13px;
  color: #8b95a5;
  margin-top: 12px;
}

.site-footer-copyright a { color: #a0aec0; }

/* Homepage responsive */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 24px;
    text-align: center;
  }

  .hero-copy { margin: 0 auto; }

  .hero-brand { justify-content: center; }

  .hero h1 { font-size: 34px; }

  .hero .hero-tagline { font-size: 16px; }

  .hero .hero-keypoints {
    text-align: left;
    max-width: 360px;
    margin: 0 auto 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-heading, .worldmap-section h2 { font-size: 24px; }
}
