/* selfvpn.pl – landing */
:root {
  --bg: #080e21;
  --bg-2: #0d1530;
  --surface: #111a38;
  --surface-2: #16214a;
  --border: rgba(148, 170, 230, 0.14);
  --border-strong: rgba(148, 170, 230, 0.28);
  --text: #f4f7ff;
  --muted: #a9b4d0;
  --dim: #7d89a8;
  --blue-1: #33ccff;
  --blue-2: #0066ff;
  --blue: #3aa0ff;
  --green: #3ddc97;
  --grad: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: 16px;
  --shadow: 0 20px 60px -20px rgba(0, 40, 140, 0.55);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-1); text-underline-offset: 3px; }
a:hover { color: #7fdcff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 102, 255, .8); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(0, 140, 255, .95); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 14, 33, .78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.brand .w-vpn { color: #1f9bff; }
.brand .w-pl { color: var(--text); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { display: none; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-login { display: inline; }
}

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(0, 102, 255, .28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, rgba(61, 220, 151, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #cfe6ff;
  background: rgba(51, 204, 255, .08); border: 1px solid rgba(51, 204, 255, .25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); flex: none; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.check { width: 18px; height: 18px; flex: none; color: var(--green); }

.hero-visual {
  position: relative; border-radius: 20px; padding: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 74, .85), rgba(13, 21, 48, .85));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.hero-visual svg { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 980px) { .section { padding: 104px 0; } }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; margin-bottom: 10px; color: var(--blue-1); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: linear-gradient(180deg, rgba(22, 33, 74, .6), rgba(17, 26, 56, .6));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(51, 204, 255, .1); border: 1px solid rgba(51, 204, 255, .22); color: var(--blue-1);
}
.icon svg { width: 22px; height: 22px; }
.icon-green { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .25); color: var(--green); }

/* Problem / benefits */
.compare { display: grid; gap: 18px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; color: var(--muted); }
.list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.list-bad svg { color: #ff7a8a; }
.list-good svg { color: var(--green); }
.card-good { border-color: rgba(61, 220, 151, .3); background: linear-gradient(180deg, rgba(20, 60, 60, .35), rgba(17, 26, 56, .6)); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 24px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800;
}
.step h3 { margin-top: 18px; }

/* Features */
.feature h3 { margin-bottom: 8px; }

/* API */
.api-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .api-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.endpoint-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.endpoint-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--muted); font-size: .95rem; }
.endpoint-list code { color: var(--text); font-size: .88rem; word-break: break-all; }
.method {
  display: inline-block; min-width: 54px; text-align: center; padding: 2px 8px; border-radius: 6px;
  font: 700 .72rem/1.6 var(--mono); letter-spacing: .04em;
}
.m-get { background: rgba(61, 220, 151, .14); color: var(--green); }
.m-post { background: rgba(51, 204, 255, .14); color: var(--blue-1); }
.m-patch { background: rgba(255, 196, 87, .14); color: #ffc457; }
.note { margin-top: 18px; font-size: .92rem; color: var(--dim); }

.code {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong);
  background: #050a19; box-shadow: var(--shadow);
}
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #0a1128; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a3558; }
.code-title { color: var(--dim); font: .8rem var(--mono); }
.copy-btn { background: transparent; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 8px; padding: 4px 10px; font: 600 .78rem var(--font); cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: .84rem; line-height: 1.65; color: #d7e0f5; }
.c-com { color: #6b7899; }
.c-str { color: #9be9c4; }
.c-key { color: #7fcfff; }
.c-flag { color: #ffc457; }

/* Pricing */
.pricing-wrap { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .pricing-wrap { grid-template-columns: 1.15fr .85fr; } }
.price-card { position: relative; padding: 28px; border-radius: 20px; border: 1px solid rgba(51, 204, 255, .35); background: linear-gradient(180deg, rgba(22, 40, 96, .7), rgba(17, 26, 56, .8)); box-shadow: var(--shadow); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(61, 220, 151, .14); color: var(--green); font-size: .8rem; font-weight: 700; }
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 16px 0 4px; }
.price-amount { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-unit { color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); margin: 0 0 22px; font-size: .95rem; }
.price-sub strong { color: var(--text); }

.counter { margin: 8px 0 20px; }
.counter-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .05); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: rgba(255, 255, 255, .1); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 3ch; text-align: center; font-size: 1.4rem; font-weight: 800; }
input[type="range"] { width: 100%; accent-color: #1f9bff; margin: 14px 0 0; min-height: 28px; }

.breakdown { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .95rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.breakdown li span:last-child { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.breakdown .total { padding-top: 8px; border-top: 1px dashed var(--border-strong); font-weight: 700; }
.breakdown .total span { color: var(--text); }

.included h3 { margin-bottom: 16px; }
.small { font-size: .88rem; color: var(--dim); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(17, 26, 56, .55); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue-1); border-bottom: 2px solid var(--blue-1); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* Contact */
.contact {
  position: relative; overflow: hidden; text-align: center; border-radius: 24px; padding: 48px 20px;
  background: linear-gradient(135deg, rgba(0, 102, 255, .28), rgba(51, 204, 255, .1)); border: 1px solid rgba(51, 204, 255, .3);
}
.contact p { color: #cfdcf5; max-width: 620px; margin: 0 auto 26px; }
.contact .hero-cta { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 780px; padding: 48px var(--gutter) 80px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.draft-warning {
  margin: 20px 0 32px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 196, 87, .1); border: 1px solid rgba(255, 196, 87, .4); color: #ffe2a8;
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.count-pill { min-width: 2.4em; padding: 2px 10px; border-radius: 999px; text-align: center; background: rgba(51, 204, 255, .14); color: var(--blue-1); font-weight: 800; font-variant-numeric: tabular-nums; }

p code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; padding: .1em .35em; border-radius: 4px; background: rgba(255,255,255,.06); word-break: break-all; }
