/* WaterVPN base: tokens, type, buttons, nav, footer. Shared by every page. */
@font-face {
  font-family: 'Mona Sans';
  src: url('/assets/fonts/mona-sans.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #09090e;
  --bg-2: #0d0d14;
  --surface: #121219;
  --surface-2: #16161f;
  --surface-3: #1c1b27;
  --line: #22212d;
  --line-2: #2f2e3d;
  --ink: #eeedf6;
  --ink-2: #a5a4b8;
  --ink-3: #807f95;
  --brand: #6237e9;
  --brand-hover: #6e46f2;
  --brand-mark: #7b5cff;
  --brand-text: #a99bff;
  --brand-soft: rgba(112, 80, 250, 0.1);
  --brand-soft-2: rgba(112, 80, 250, 0.18);
  --brand-line: rgba(140, 116, 255, 0.38);
  --brand-glow: rgba(98, 55, 233, 0.55);
  --ok: #3ccf98;
  --ok-soft: rgba(60, 207, 152, 0.12);
  --ok-line: rgba(60, 207, 152, 0.4);
  --bad: #ff6b76;
  --bad-soft: rgba(255, 107, 118, 0.12);
  --warn: #f0ae45;
  --warn-soft: rgba(240, 174, 69, 0.12);
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 18px;
  --r-4: 26px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-3: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 420;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 3px;
}
::selection {
  background: rgba(123, 92, 255, 0.45);
  color: #fff;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-1);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */
.display {
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.muted {
  color: var(--ink-2);
}
.faint {
  color: var(--ink-3);
}
.mono {
  font-family: var(--mono);
}
.nw {
  white-space: nowrap;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Mono label/value row */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  width: fit-content;
  font-family: var(--mono);
  font-size: 13px;
}
.meta-row div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.meta-row dt {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-row dd {
  color: var(--ink);
}

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease),
    color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 30px -8px var(--brand-glow);
}
.btn-brand:hover {
  background: var(--brand-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 36px -6px rgba(110, 70, 242, 0.65);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: #3d3b50;
}
.btn-quiet {
  background: transparent;
  color: var(--ink-2);
  padding: 0 12px;
}
.btn-quiet:hover {
  color: var(--ink);
  background: var(--surface);
}
.btn-danger {
  background: transparent;
  border-color: rgba(255, 107, 118, 0.35);
  color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad-soft);
}
.btn-sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}
.btn-lg {
  --h: 52px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}
.btn.is-busy {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-busy::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status pill with a live dot */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 25, 0.7);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(60, 207, 152, 0.16);
  flex: none;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-text);
  font-size: 19px;
  font-weight: 780;
  font-stretch: 108%;
  letter-spacing: -0.035em;
  line-height: 1;
}
.brand-mark {
  width: 31px;
  height: auto;
  fill: var(--brand-mark);
  flex: none;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.nav.scrolled,
.nav.open,
.nav.solid {
  background: rgba(9, 9, 14, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-signin {
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink-2);
  padding: 8px 4px;
}
.nav-signin:hover {
  color: var(--ink);
}
.nav-menu {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-menu svg {
  width: 22px;
  height: 22px;
}
.nav-menu .i-close,
.nav.open .nav-menu .i-open {
  display: none;
}
.nav.open .nav-menu .i-close {
  display: block;
}
.nav-sheet {
  display: none;
}
@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }
  .nav-menu {
    display: inline-flex;
  }
  .nav-sheet {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0s linear 0.2s;
  }
  .nav.open .nav-sheet {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease);
  }
  .nav-sheet a:not(.btn) {
    padding: 12px 2px;
    font-size: 17px;
    font-weight: 560;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-sheet .btn {
    margin-top: 14px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  color: var(--ink-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-about p {
  margin: 14px 0 18px;
  max-width: 26em;
  font-size: 14.5px;
}
.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 580;
  transition: border-color 0.15s, background-color 0.15s;
}
.tg-pill:hover {
  border-color: #3d3b50;
  background: var(--surface-2);
}
.tg-pill svg {
  width: 16px;
  height: 16px;
}
.footer-col h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-col li + li {
  margin-top: 9px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-bottom p {
  max-width: 62em;
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Forms */
.field {
  display: grid;
  gap: 7px;
}
.field label,
.label {
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-2);
}
.input,
.select,
.textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 15.5px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.textarea {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a4b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.input::placeholder,
.textarea::placeholder {
  color: #6a6980;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #3d3b50;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.2);
}
.input[aria-invalid='true'] {
  border-color: rgba(255, 107, 118, 0.6);
}
.hint {
  font-size: 13px;
  color: var(--ink-3);
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.notice.is-error {
  border-color: rgba(255, 107, 118, 0.4);
  background: var(--bad-soft);
  color: #ffc9cd;
}
.notice.is-ok {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: #bff3df;
}
.notice.is-info {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: #d9d2ff;
}
.notice[hidden] {
  display: none;
}
