/* VPN Prox website. Square corners everywhere, light + dark themes. */

/* ---------- Theme variables ---------- */
:root {
  --navy: #0B2D5B;
  --navy-2: #12376E;
  --cyan: #22C3E6;
  --cyan-2: #1BA9D8;
  --grey: #8A8F98;
  --night: #0B1220;

  --bg: #FFFFFF;
  --bg-alt: #F2F5F9;
  --card: #FFFFFF;
  --text: #0E1A2B;
  --muted: #566070;
  --line: #D6DCE5;
  --line-strong: #B9C2CF;
  --link: #12376E;
  --link-line: #1BA9D8;
  --head: #0B2D5B;
  --tag-free-bg: #E8EDF3;
  --tag-free-fg: #3B4656;
  --note-bg: #FFF7E0;
  --note-line: #E7B416;
  --shadow: 0 1px 0 rgba(11, 45, 91, .04), 0 8px 24px -12px rgba(11, 45, 91, .18);
  --hero: #0B1220;
  color-scheme: light;
}

/* Dark: explicit choice, or OS preference when no choice saved */
[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #0F192B;
  --card: #111C30;
  --text: #E5ECF4;
  --muted: #9CA8B8;
  --line: #22314A;
  --line-strong: #33466A;
  --link: #5ED2EE;
  --link-line: #22C3E6;
  --head: #F2F6FB;
  --tag-free-bg: #1B2840;
  --tag-free-fg: #B9C5D6;
  --note-bg: #2A2410;
  --note-line: #B8901A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --hero: #070C17;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --bg-alt: #0F192B;
    --card: #111C30;
    --text: #E5ECF4;
    --muted: #9CA8B8;
    --line: #22314A;
    --line-strong: #33466A;
    --link: #5ED2EE;
    --link-line: #22C3E6;
    --head: #F2F6FB;
    --tag-free-bg: #1B2840;
    --tag-free-fg: #B9C5D6;
    --note-bg: #2A2410;
    --note-line: #B8901A;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --hero: #070C17;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cyan); color: var(--night); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--muted); font-size: .94rem; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px;
  font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cyan); color: var(--night); border-color: var(--cyan); }
.btn-primary:hover { background: var(--cyan-2); border-color: var(--cyan-2); color: var(--night); }
.btn-outline { background: transparent; color: var(--head); border-color: var(--head); }
.btn-outline:hover { background: var(--head); color: var(--bg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.btn-store { background: #fff; color: var(--night); border-color: #fff; text-align: left; justify-content: flex-start; min-width: 200px; padding: 8px 18px; }
.btn-store span { display: flex; flex-direction: column; font-size: 1.1rem; line-height: 1.15; }
.btn-store small { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.btn-store .ico { width: 26px; height: 26px; color: var(--navy-2); }
.btn-store:hover { background: var(--cyan); border-color: var(--cyan); }
.btn-store-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-store-alt .ico { color: var(--cyan); }
.btn-store-alt:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: var(--head); border: 1px solid var(--line); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--head); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 68px; }
.brand { display: block; margin-right: auto; text-decoration: none; }
.logo { width: 140px; height: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.header-tools { display: flex; gap: 8px; }
.when-dark { display: none; }
[data-theme="dark"] .when-light { display: none; }
[data-theme="dark"] .when-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-light { display: none; }
  :root:not([data-theme="light"]) .when-dark { display: inline; }
}

.site-nav { display: none; width: 100%; padding: 4px 0 16px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li { border-top: 1px solid var(--line); }
.site-nav a:not(.btn) { display: block; padding: 12px 2px; color: var(--head); font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-cta { width: 100%; }

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; gap: 28px; }
  .logo { width: 168px; }
  .brand { margin-right: 0; }
  .menu-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 22px; width: auto; padding: 0; margin-left: auto; order: 2; }
  .header-tools { order: 3; }
  .site-nav ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav a:not(.btn) { padding: 6px 0; font-size: .97rem; }
  .nav-cta { width: auto; min-height: 42px; padding: 8px 16px; }
}

/* ---------- Bands / sections ---------- */
.band { padding: 56px 0; }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark {
  background-color: var(--hero);
  background-image:
    linear-gradient(rgba(34,195,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,195,230,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #D6E1EE;
  border-bottom: 1px solid #1B2A44;
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a:not(.btn) { color: #7FDDF3; }
.band-dark .lead { color: #C3D0E0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.12rem; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--cyan); margin-bottom: 12px; }
.count { display: inline-block; font-size: .9rem; vertical-align: middle; padding: 2px 8px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; }
@media (min-width: 768px) { .band { padding: 80px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 52px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-small { font-size: .88rem; color: #93A3B8; margin: 0; }
.hero-visual { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 260px; background: #0F1A2E; border: 1px solid #263A5C; padding: 18px; box-shadow: 0 30px 60px -30px rgba(34,195,230,.35); }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #fff; font-size: .9rem; }
.mock-dot { display: inline-flex; align-items: center; gap: 6px; color: #5EE6A0; font-size: .8rem; }
.mock-dot::before { content: ""; width: 8px; height: 8px; background: #5EE6A0; }
.mock-mark { width: 120px; margin: 22px auto 10px; }
.mock-proto { text-align: center; color: var(--cyan); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.mock-loc { display: flex; align-items: center; gap: 10px; border: 1px solid #263A5C; padding: 10px 12px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.mock-btn { background: var(--cyan); color: var(--night); text-align: center; font-weight: 800; padding: 12px; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .mock { max-width: 320px; }
}

.page-head { padding: 44px 0 40px; }
.page-head .dl-buttons { margin-top: 20px; }
@media (min-width: 768px) { .page-head { padding: 64px 0 56px; } }

/* ---------- Features ---------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature { background: var(--card); border: 1px solid var(--line); padding: 22px; }
.feature p { color: var(--muted); margin: 0; }
.feature-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--navy); color: var(--cyan); margin-bottom: 14px; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } .feature { padding: 26px; } }

/* ---------- Servers ---------- */
.servers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.server { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; }
.server.is-premium { border-left: 4px solid var(--cyan); }
.flag { font-size: 1.6rem; line-height: 1; width: 1.6em; text-align: center; flex: none; }
.server-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.server-name strong { color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-name span { color: var(--muted); font-size: .9rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; flex: none; }
.tag-premium { background: var(--navy); color: var(--cyan); }
.tag-free { background: var(--tag-free-bg); color: var(--tag-free-fg); }
.more { margin-top: 18px; font-weight: 600; }
@media (min-width: 560px) { .servers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .servers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .servers { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-strong); padding: 26px 22px 22px; }
.plan-hl { border: 3px solid var(--cyan); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -1px; right: -1px; margin: 0; background: var(--cyan); color: var(--night); font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: 6px 10px; }
.plan-hl .plan-badge { top: -3px; right: -3px; }
.plan-name { font-size: 1.15rem; margin-bottom: 6px; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--head); line-height: 1.1; margin: 0 0 4px; letter-spacing: -.02em; }
.plan-note { color: var(--muted); font-size: .9rem; min-height: 1.5em; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.ticks .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--cyan-2); }
.plans-foot { margin-top: 22px; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .plan-hl { transform: translateY(-8px); } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); padding: 24px 22px 22px; }
.steps li::before { content: counter(s); position: absolute; top: 0; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 800; }
.steps p { color: var(--muted); margin: 0; }
.step-ico { display: inline-flex; color: var(--cyan-2); margin-bottom: 12px; }
.step-ico .ico { width: 30px; height: 30px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- How-to (numbered instructions) ---------- */
.howto { list-style: none; counter-reset: h; margin: 0; padding: 0; }
.howto li { counter-increment: h; position: relative; padding: 0 0 26px 58px; border-left: 2px solid var(--line); margin-left: 18px; }
.howto li:last-child { border-left-color: transparent; padding-bottom: 0; }
.howto li::before { content: counter(h); position: absolute; left: -19px; top: -4px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--cyan); color: var(--night); font-weight: 800; }
.howto h3 { margin-bottom: .3em; padding-top: 2px; }
.howto p { color: var(--muted); margin: 0; }
.howto li { padding-left: 34px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--head); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan-2); border-bottom: 2px solid var(--cyan-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.faq-a { padding: 0 0 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .9rem; letter-spacing: .03em; }
.compare td { text-align: center; width: 26%; font-weight: 600; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-flex; }
.yes .ico { color: #16A36A; }
.no .ico { color: var(--grey); }
.data-table { margin: 0 0 1.2em; font-size: .93rem; border: 1px solid var(--line-strong); }
@media (max-width: 600px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; border-bottom: 1px solid var(--line-strong); padding: 8px 0; }
  .data-table td { display: block; border: 0; padding: 4px 12px; }
  .data-table td:first-child { font-weight: 700; color: var(--head); }
  .data-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}

/* ---------- Prose / boxes ---------- */
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.legal h2 { font-size: 1.3rem; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } }
.box { background: var(--card); border: 1px solid var(--line-strong); padding: 24px; }
.box h2, .box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.box h2 .ico, .box h3 .ico { color: var(--cyan-2); }
.box > p:last-child { margin-bottom: 0; }
.big-link { font-size: 1.2rem; font-weight: 700; word-break: break-all; }
.callout { margin-top: 28px; border: 1px solid var(--line-strong); border-left: 4px solid var(--cyan); background: var(--bg-alt); padding: 16px 18px; }
.callout p { margin: 0; }
.template-note { border: 1px solid var(--note-line); border-left: 4px solid var(--note-line); background: var(--note-bg); padding: 14px 16px; margin-bottom: 32px; }
.template-note p { margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 56px 0; }
.cta-inner { display: grid; gap: 20px; align-items: center; }
.cta p { color: #C3D0E0; max-width: 560px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.3fr auto; gap: 40px; } .cta { padding: 72px 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #AEBBCC; padding: 52px 0 0; font-size: .95rem; }
[data-theme="dark"] .site-footer { background: #070C17; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #070C17; border-top: 1px solid var(--line); } }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 170px; margin-bottom: 12px; }
.footer-brand p { max-width: 360px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE6F2; text-decoration-color: rgba(34,195,230,.6); word-break: break-word; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--cyan); }
.footer-bottom { border-top: 1px solid #1C2A42; margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: .84rem; color: #7F8DA1; }
.footer-bottom p { margin: 0 0 6px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- 404 ---------- */
.notfound { padding: 72px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
