/* QuickQ VPN — quickqgrid.com
   Design system: dark stellar night + electric blue.
   All colours / spacing / shadows are declared once as tokens. */

:root {
  --bg: #04060d;
  --bg-2: #080c17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2fb;
  --muted: #98a3bb;
  --brand: #2f7bff;
  --brand-2: #56b8ff;
  --brand-soft: rgba(47, 123, 255, 0.16);
  --ok: #38d39f;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 40px rgba(47, 123, 255, 0.45);
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 13, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 22px;
  min-height: 72px; flex-wrap: wrap;
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { color: var(--brand-2); }
.nav-menu { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 14px; flex: 1; }
.nav-menu a {
  padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-menu a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }
.nav-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  font-size: .85rem; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.lang:hover { border-color: var(--brand); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #1f5fe0); color: #fff; box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,6,13,.92) 0%, rgba(4,6,13,.62) 45%, rgba(4,6,13,.25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px; font-weight: 700;
}
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c6d0e4; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 46px; }
.hero-stats div strong { display: block; font-size: 1.7rem; color: #fff; }
.hero-stats div span { font-size: .85rem; color: var(--muted); }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: 70px 0 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head p { max-width: 720px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: rgba(47,123,255,.55); transform: translateY(-4px); background: var(--surface-2); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .95rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2); font-size: 1.25rem; margin-bottom: 18px;
}

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split + .split { margin-top: 84px; }
.split.rev .media { order: 2; }
.media img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* checklist */
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
}

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--glow); background: rgba(47,123,255,.07); }
.badge {
  position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em;
}
.price { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; font-size: .95rem; margin-left: 8px; }
.plan .btn { margin-top: auto; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: #fff; font-weight: 700; }
tbody td:first-child { color: var(--text); }
td { color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* faq */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* testimonials */
.quote p { color: #d6dded; font-style: normal; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #123a8a); color: #fff; font-weight: 800;
}
.who b { display: block; font-size: .95rem; }
.who span { font-size: .82rem; color: var(--muted); }

/* steps */
.steps { counter-reset: s; }
.step { counter-increment: s; position: relative; padding-left: 62px; margin-bottom: 30px; }
.step::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2); font-weight: 800;
}

/* cta band */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(47,123,255,.22), transparent 70%), var(--bg-2);
}
.cta-band .hero-actions { justify-content: center; }

/* legal / prose */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.12rem; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.updated { font-size: .88rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; font-size: .93rem; color: var(--muted); }
.foot-grid a:hover { color: var(--brand-2); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted);
}
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev .media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { min-height: auto; padding: 12px 0; }
  .nav-menu { order: 3; width: 100%; margin-left: 0; }
  .nav-side { margin-left: auto; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 520px; }
  .cta-band { padding: 40px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
