/* VpnGod landing. No external fonts or scripts: the page makes no third-party requests. */

:root {
  color-scheme: dark;
  --bg: #0b0d1a;
  --bg-alt: #0f1224;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #eef0fb;
  --muted: #a3a8c3;
  --faint: #6f7491;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --ok: #34d399;
  --grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(4, 6, 20, 0.55);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f8fc;
    --bg-alt: #eef0f8;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --stroke: rgba(15, 18, 40, 0.09);
    --text: #12142a;
    --muted: #4c5170;
    --faint: #7a7f9c;
    --shadow: 0 20px 50px rgba(30, 35, 80, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface-strong); border: 1px solid var(--stroke); }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; border-radius: 8px; background: var(--indigo); color: #fff; z-index: 10; }
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---- header ---- */

.top {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.top__row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--font-display); letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-strong); }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pill--soft { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); }

/* ---- hero ---- */

.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 45% at 22% 30%, rgba(79, 70, 229, .35), transparent 70%),
    radial-gradient(38% 40% at 80% 35%, rgba(6, 182, 212, .25), transparent 70%);
  filter: blur(10px);
}
@media (prefers-color-scheme: light) {
  .hero__glow { opacity: .55; }
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: center; }
.hero__grid > * { min-width: 0; }

.eyebrow { margin: 0 0 16px; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(40px, 5.6vw, 64px)/1.04 var(--font-display); letter-spacing: -0.03em; }
.lead { margin: 24px 0 0; max-width: 34em; font-size: 19px; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(79, 70, 229, .35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(79, 70, 229, .45); }
.btn--ghost { border: 1px solid var(--stroke); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-strong); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); }
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--ok); }

/* flow diagram */
.flow {
  margin: 0; padding: 28px; border-radius: 22px; border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface)); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1fr) 56px auto 56px minmax(0, 1fr); align-items: center; gap: 0;
}
.flow__col { display: grid; gap: 12px; }
.flow__lines { width: 100%; height: 240px; overflow: visible; }
.l { fill: none; stroke: var(--indigo); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; vector-effect: non-scaling-stroke; }
.l2 { stroke: #818cf8; }
.l3 { stroke: var(--cyan); }
.l--direct { stroke: var(--faint); animation: none; stroke-dasharray: 2 6; opacity: .7; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .l { animation: none; } }

.node {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--stroke); background: var(--bg-alt); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.node, .node > span { min-width: 0; }
.node > span:not(.ico):not(.dot) { overflow: hidden; text-overflow: ellipsis; }
.node small { margin-left: auto; padding-left: 8px; color: var(--faint); font-weight: 500; font-size: 12px; }
.node--direct { color: var(--muted); }
.ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; }
.ico--a { background: linear-gradient(135deg, #f97316, #f43f5e); }
.ico--b { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.ico--c { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.ico--d { background: linear-gradient(135deg, #4ade80, #059669); }
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--faint); }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }

.flow__hub { display: grid; justify-items: center; gap: 8px; }
.hub { padding: 10px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--stroke); box-shadow: 0 0 0 8px color-mix(in srgb, var(--indigo) 12%, transparent), 0 12px 30px rgba(79, 70, 229, .35); }
.hub__label { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---- sections ---- */

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--stroke); }
.section__head { max-width: 720px; margin-bottom: 48px; }
h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 40px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.section__head p { margin: 16px 0 0; font-size: 17px; color: var(--muted); }
h3 { margin: 0; font: 600 18px/1.35 var(--font-display); letter-spacing: -0.01em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface);
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--indigo) 45%, var(--stroke)); background: var(--surface-strong); }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card__ico {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 12px;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: var(--grad); box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface); }
.step p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.step__n {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%;
  font-weight: 700; color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; }
.shot { margin: 0; justify-self: center; }
.shot--wide { grid-column: 1 / -1; }
.shot img { border-radius: 14px; border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); text-align: center; }

.tech { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.tech p { margin: 16px 0 0; font-size: 17px; }
.tech__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.tech__list div { padding: 22px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--surface); }
.tech__list dt { font-weight: 600; }
.tech__list dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

details { border-bottom: 1px solid var(--stroke); }
details:first-of-type { border-top: 1px solid var(--stroke); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); border: 1px solid var(--stroke); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 4px 22px; color: var(--muted); }

.final {
  display: grid; justify-items: center; gap: 12px; padding: 64px 24px; text-align: center; border-radius: 24px;
  border: 1px solid var(--stroke);
  background: radial-gradient(60% 120% at 50% 0%, rgba(79, 70, 229, .22), transparent 70%), var(--surface);
}
.final p { margin: 0; color: var(--muted); font-size: 17px; }
.final img { margin-bottom: 8px; }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--stroke); font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---- responsive ---- */

@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { max-width: 680px; }
  .flow { width: 100%; max-width: 680px; }
}

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .tech { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .top .pill { margin-left: auto; }
  .section { padding: 72px 0; }
  .cards, .steps, .shots, .tech__list { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  /* Phones: no connector lines, labels may wrap. */
  .flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; padding: 14px; }
  .flow__lines { display: none; }
  .node { font-size: 11.5px; line-height: 1.25; padding: 6px 7px; gap: 6px; min-height: 40px; white-space: normal; }
  .ico { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
  .hub { padding: 8px; border-radius: 16px; }
  .hub img { width: 36px; height: 36px; }
}
