/* =========================================================
   Proton VPN — static design clone (inspired by protonvpn.com)
   ========================================================= */

/* Self-hosted Inter — local files, no external CDN dependency */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg: #0a0a18;
  --bg-2: #0e0e22;
  --surface: #15152e;
  --surface-2: #1c1c3a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --muted: #b6b6d4;
  --faint: #8a8aae;

  --violet: #9b7bff;
  --violet-deep: #7c5cff;
  --blue: #5b8def;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 55%, #4f8bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(79, 139, 255, 0.12));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(124, 92, 255, 0.85); }
.btn--outline { border-color: var(--border-strong); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--outline:hover { border-color: var(--violet); background: rgba(155, 123, 255, 0.12); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: #fff; }

.link-arrow { color: var(--violet); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 24, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 26px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 40px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #0c0c1f 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__deco { position: absolute; opacity: 0.85; }
.hero__deco--1 { top: -40px; left: -60px; width: 420px; }
.hero__deco--2 { top: 20px; right: -80px; width: 380px; }
.hero__deco--3 { bottom: -30px; left: 25%; width: 300px; opacity: 0.5; }
.hero__deco--4 { top: 30%; left: 8%; width: 220px; opacity: 0.55; }
.hero__deco--5 { bottom: 10%; right: 12%; width: 260px; opacity: 0.5; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__sub { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.hero__art img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)); }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stats li { text-align: center; }
.stats strong { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- Features ---------- */
.features { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature img { width: 100%; height: auto; border-radius: 14px; margin-bottom: 18px; background: var(--grad-soft); padding: 10px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Compare ---------- */
.compare { padding: 90px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.compare__scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare__table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
.compare__table th, .compare__table td { padding: 18px 20px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--border); }
.compare__table thead th { vertical-align: middle; background: var(--surface-2); }
.compare__table tbody th { text-align: left; color: var(--muted); font-weight: 600; }
.compare__logo { height: 26px; width: auto; margin: 0 auto 8px; display: block; }
.compare__table .is-us { background: rgba(124, 92, 255, 0.12); color: #fff; font-weight: 700; }
.compare__table thead .is-us { border-top: 3px solid var(--violet); }
.compare__cta { text-align: center; margin-top: 34px; }

/* ---------- What is a VPN ---------- */
.what { padding: 90px 0; }
.what__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.what__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.what__media img { width: 100%; }
.what__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #5b3bff; display: flex; align-items: center; justify-content: center; font-size: 26px; padding-left: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.what__copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.02em; }
.what__copy p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Download ---------- */
.download { padding: 90px 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.platforms a { display: block; text-align: center; padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: #fff; font-weight: 600; transition: 0.22s; }
.platforms a:hover { border-color: var(--violet); background: rgba(155, 123, 255, 0.12); transform: translateY(-3px); }

/* ---------- About ---------- */
.about { padding: 90px 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about__copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.02em; }
.about__copy p { color: var(--muted); margin-bottom: 14px; }
.about__voices { display: grid; gap: 16px; }
.voice { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.voice img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.voice blockquote { font-size: 15px; color: var(--text); font-style: italic; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 90px 0; }
.final-cta__inner {
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
}
.final-cta__inner h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.final-cta__inner p { color: var(--muted); margin: 14px 0 28px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; }
.footer__inner > * { min-width: 0; }
.footer__logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 320px; font-size: 15px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer__social img { width: 22px; height: 22px; object-fit: contain; }
.footer__social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); transition: 0.22s; }
.footer__social a:hover { border-color: var(--violet); background: rgba(155, 123, 255, 0.14); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 { font-size: 15px; margin-bottom: 16px; color: #fff; }
.footer__cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { color: var(--faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .what__inner, .about__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); padding: 24px; border-bottom: 1px solid var(--border);
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

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

/* 404 页 (html-to-php-frontcontroller 生成) */
.err-404{padding-top:120px;padding-bottom:120px;}
.err-404__num{font-size:96px;line-height:1;margin:0;}
.err-404__sub{margin-top:16px;font-size:20px;}
.err-404__back{margin-top:24px;}
