:root {
  color-scheme: dark;
  --whitex-black: #000;
  --whitex-ink: #fafafa;
  --whitex-muted: #b8b8b8;
  --whitex-line: rgb(255 255 255 / 17%);
  --whitex-glass: linear-gradient(155deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 3%) 58%, rgb(255 255 255 / 6%));
  --whitex-edge: inset 0 1px 0 rgb(255 255 255 / 10%), 0 22px 48px rgb(0 0 0 / 32%);
  --liquid-glass-fill:
    radial-gradient(ellipse at 18% 0%, #fff 2%, rgb(255 255 255 / 68%) 24%, transparent 69%),
    radial-gradient(ellipse at 91% 110%, rgb(255 255 255 / 96%) 2%, transparent 57%),
    linear-gradient(175deg, #ebebeb 0%, #ddd 45%, #b5b5b5 51%, #dcdcdc 84%, #f2f2f2 100%);
  --liquid-glass-shadow:
    inset 0 1px 2px rgb(255 255 255 / 97%),
    inset 1px 0 4px rgb(255 255 255 / 47%),
    inset 0 -2px 3px rgb(255 255 255 / 65%),
    0 0 0 1px rgb(255 255 255 / 8%),
    0 4px 10px rgb(0 0 0 / 42%),
    0 0 18px rgb(255 255 255 / 12%);
  --liquid-glass-hover-shadow:
    inset 0 1px 3px #fff,
    inset 0 -2px 6px rgb(255 255 255 / 90%),
    0 0 0 1px rgb(255 255 255 / 19%),
    0 5px 14px rgb(0 0 0 / 42%),
    0 0 24px rgb(255 255 255 / 25%);
  --liquid-glass-pressed-shadow:
    inset 0 2px 7px rgb(0 0 0 / 28%),
    inset 0 -1px 2px rgb(255 255 255 / 85%),
    0 1px 4px rgb(0 0 0 / 40%);
}

body,
body:is(.home-page, .support-body, [data-auth-page]) {
  background: var(--whitex-black);
  color: var(--whitex-ink);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body a { color: inherit; }
body ::selection { color: #000; background: #eee; }

.site-header {
  background: linear-gradient(180deg, rgb(0 0 0 / 97%), rgb(0 0 0 / 66%) 70%, transparent);
  --header-ink: var(--whitex-ink);
  --header-muted: var(--whitex-muted);
  --header-accent: #fff;
  --header-border: var(--whitex-line);
  --header-surface: linear-gradient(155deg, rgb(35 35 35 / 82%), rgb(13 13 13 / 84%));
  --header-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 8px 25px rgb(0 0 0 / 35%);
}

.site-header .site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(100%, 1304px);
  min-height: 82px;
  padding-inline: clamp(20px, 4vw, 42px);
}

.site-header .site-wordmark {
  justify-self: start;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  box-shadow: none;
  font: 730 19px/1.1 'Inter', 'Segoe UI', system-ui, sans-serif;
  white-space: nowrap;
}

.site-header .site-wordmark:hover { box-shadow: none; }
.site-wordmark-vpn { font-size: .72em; letter-spacing: .09em; }

.whitex-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--whitex-line);
  border-radius: 9px;
  background: #000;
  object-fit: cover;
}

.site-header .site-account { justify-self: end; }
/* Keep one surface for native buttons, action links, and the selected nav item. */
body :is(
  button, input[type="submit"], a.faq-button, .site-account, .profile-home-link,
  .support-control, .site-footer-support, .site-header .site-navigation a[aria-current]
):not([hidden]):not([aria-hidden="true"]) {
  border-color: rgb(255 255 255 / 68%) !important;
  border-radius: 999px;
  background: var(--liquid-glass-fill) padding-box !important;
  color: #090909 !important;
  box-shadow: var(--liquid-glass-shadow) !important;
  text-shadow: none !important;
  transition: box-shadow 180ms ease, filter 180ms ease, translate 180ms ease;
}

body .hero-actions .faq-button {
  --liquid-glass-fill:
    radial-gradient(ellipse at 22% 0%, #fff 7%, rgb(255 255 255 / 76%) 28%, transparent 72%),
    radial-gradient(ellipse at 90% 112%, #fff 5%, transparent 55%),
    linear-gradient(175deg, #f7f7f7 3%, #e9e9e9 42%, #c0c0c0 50%, #dedede 74%, #fafafa 100%);
  border: 1px solid;
}

@media (hover: hover) {
  body :is(
    button, input[type="submit"], a.faq-button, .site-account, .profile-home-link,
    .support-control, .site-footer-support, .site-header .site-navigation a[aria-current]
  ):not([hidden]):not([aria-hidden="true"]):hover:not(:disabled) {
    box-shadow: var(--liquid-glass-hover-shadow) !important;
    filter: brightness(1.08);
  }

  body :is(.hero-actions .faq-button, .tariff-buy, .site-account):hover:not(:disabled) {
    translate: 0 -2px;
  }
}

body :is(
  button, input[type="submit"], a.faq-button, .site-account, .profile-home-link,
  .support-control, .site-footer-support, .site-header .site-navigation a[aria-current]
):not([hidden]):not([aria-hidden="true"]):active:not(:disabled) {
  box-shadow: var(--liquid-glass-pressed-shadow) !important;
  filter: brightness(.94);
}

body :is(.hero-actions .faq-button, .tariff-buy, .site-account):active:not(:disabled) {
  translate: 0 1px;
}

@media (prefers-reduced-motion: reduce) {
  body :is(
    button, input[type="submit"], a.faq-button, .site-account, .profile-home-link,
    .support-control, .site-footer-support, .site-header .site-navigation a[aria-current]
  ):not([hidden]):not([aria-hidden="true"]) {
    transition: none;
    translate: none;
  }
}

body :is(button, a, summary, input, textarea):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

body :is(button, input[type="submit"]):disabled { opacity: .58; cursor: not-allowed; }
body .tariff-card .tariff-buy svg, body a.support-control svg, body .support-control svg { color: currentColor; }

body.home-page main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100% - 80px, 1220px);
  margin: 0 auto 72px;
  gap: clamp(50px, 7vw, 112px);
}

.home-page .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: clamp(525px, 55vw, 680px);
  border-bottom: 1px solid var(--whitex-line);
}

.hero-content { position: relative; z-index: 2; padding: 36px 0 58px; }
.hero-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 7vw, 98px);
  font-weight: 780;
  line-height: .96;
  letter-spacing: -.075em;
}

.hero-content h1 span {
  background: linear-gradient(180deg, #fff 18%, #ddd 58%, #969696 93%);
  background-clip: text;
  color: transparent;
  padding-right: .09em;
}

.hero-content > p {
  max-width: 360px;
  margin: 29px 0;
  color: var(--whitex-muted);
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  white-space: nowrap;
  font: 700 .875rem/1.25 'Inter', 'Segoe UI', system-ui, sans-serif;
  text-decoration: none;
}

.hero-actions .faq-button { padding: 10px 18px 10px 20px; }
.hero-actions .hero-detail { color: var(--whitex-muted); text-underline-offset: 5px; }
.hero-actions .hero-detail:hover { color: #fff; text-decoration: underline; }
.hero-actions svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1;
  margin-inline: clamp(-24px, -1.5vw, -8px);
}

.hero-visual::before {
  position: absolute;
  inset: 4% 2%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 52% 48%, #000 5%, transparent 70%);
  content: '';
}

.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: grayscale(1);
}

.home-page main > :is(.vpn-benefits, .tariffs, .vpn-diagram) {
  grid-column: 1;
  grid-row: auto;
  order: initial;
  width: 100%;
  margin: 0;
  color: var(--whitex-ink);
}

.home-page :is(.vpn-benefits, .tariffs) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-page :is(.vpn-benefits, .tariffs, .vpn-diagram) h2 {
  margin: 0 0 25px;
  color: var(--whitex-ink);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.045em;
}

.home-page .benefit-list { gap: 14px; }
.home-page .benefit-list li { min-width: 0; padding: clamp(19px, 2vw, 27px); }
.home-page .benefit-list li h3 { color: var(--whitex-ink); line-height: 1.3; }
.home-page .benefit-list li p { color: var(--whitex-muted); }
.home-page .benefit-list svg {
  border: 1px solid var(--whitex-line);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.home-page .tariff-carousel {
  padding: clamp(20px, 5vw, 58px);
  border: 1px solid var(--whitex-line);
  border-radius: 25px;
  background: radial-gradient(ellipse at 50% 120%, #242424, transparent 72%), #080808;
}
.tariff-carousel .tariff-list > .tariff-card {
  --plan-text: #f8f8f8;
  --plan-muted: var(--whitex-muted);
  --plan-highlight: #fff;
  min-height: 305px;
}

.home-page .vpn-diagram {
  padding: clamp(20px, 4vw, 44px);
  border-radius: 23px;
}
.home-page .diagram-node {
  border-color: var(--whitex-line);
  background: rgb(255 255 255 / 5%);
  color: #ededed;
  box-shadow: none;
}
.home-page .diagram-node:hover { background: rgb(255 255 255 / 10%); }
.home-page :is(.diagram-arrow, .diagram-down) { color: #bfbfbf; }

body :is(.home-page .vpn-diagram, .benefit-list li, .tariff-carousel .tariff-list > .tariff-card,
  .faq-item, .admin-card, .ticket-page, .site-footer, .ticket-chat) {
  border-color: var(--whitex-line);
  background: var(--whitex-glass);
  box-shadow: var(--whitex-edge);
  backdrop-filter: blur(18px);
}

body:is([data-auth-page="login"], [data-auth-page="register"]) .auth-page {
  border-color: var(--whitex-line);
  border-top-color: rgb(255 255 255 / 29%);
  background: var(--whitex-glass);
  box-shadow: var(--whitex-edge);
  border-radius: 25px;
}

body :is(.auth-page, .support-page, .faq-page, .ticket-page) { color: var(--whitex-ink); }
body :is(.profile-page, .support-page) {
  --profile-text: var(--whitex-ink);
  --profile-muted: var(--whitex-muted);
  --profile-accent: #fff;
  --profile-line: var(--whitex-line);
  --support-text: var(--whitex-ink);
  --support-muted: var(--whitex-muted);
  --support-accent: #fff;
  --support-line: var(--whitex-line);
  --support-surface: #101010;
}

body :is(.auth-page, .support-page, .ticket-page) h1 {
  color: var(--whitex-ink);
  font-weight: 750;
  letter-spacing: -.047em;
}

.profile-sidebar, .profile-subscriptions {
  padding: clamp(15px, 2.5vw, 24px);
  border: 1px solid var(--whitex-line);
  border-radius: 19px;
  background: var(--whitex-glass);
  box-shadow: var(--whitex-edge);
  backdrop-filter: blur(16px);
}

.auth-page .profile-layout { gap: clamp(15px, 2.7vw, 34px); }
.profile-account summary { background: rgb(255 255 255 / 5%); }
.profile-sidebar nav .profile-nav-current { background: rgb(255 255 255 / 13%); }
.profile-sidebar nav a:hover, .profile-account summary:hover { background: rgb(255 255 255 / 10%); }

body :is(.profile-home-icon, .support-back span) { background: #d2d2d2; color: #0a0a0a; }
body .support-back span svg { color: inherit; }
body .support-page .support-note a, body .auth-switch a { color: #f4f4f4; }

body[data-auth-page] .auth-form input,
body :is(.support-form input, .support-form textarea, .subscription-access input, .ticket-page input) {
  background: #101010;
  color: #fff;
  border-color: #434343;
}

body[data-auth-page] .auth-form .auth-field-toggle { width: 32px; height: 32px; }
body[data-auth-page] .auth-form input:focus,
body :is(.support-form input, .support-form textarea, .subscription-access input):focus {
  border-color: #bdbdbd;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 13%);
}

body .site-footer { width: min(100% - 80px, 1220px); }
body .site-footer .site-footer-brand { gap: 10px; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; white-space: nowrap; }

@media (max-width: 900px) {
  body.home-page main, body .site-footer { width: min(100% - 48px, 820px); }
  .home-page .home-hero { min-height: 480px; }
  .hero-content h1 { font-size: clamp(42px, 7.3vw, 67px); }
}

@media (max-width: 767px) {
  .site-header .site-header-inner { grid-template-columns: 1fr auto; min-height: 66px; padding-inline: 18px; }
  .site-header .site-navigation { justify-self: center; }
  .site-header .site-wordmark { gap: 7px; font-size: 17px; }
  .site-header .site-account { grid-column: 2; min-height: 42px; padding-inline: 12px; gap: 5px; }
  body.home-page main, body .site-footer { width: calc(100% - 36px); }
  body.home-page main { margin-bottom: 44px; }
  .home-page .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 21px 0 16px; }
  .hero-content { padding: 19px 0 6px; }
  .hero-content h1 { font-size: clamp(46px, 11vw, 72px); }
  .hero-content > p { margin: 17px 0 20px; }
  .hero-actions { gap: 5px 14px; }
  .hero-actions a { min-height: 44px; font-size: .8125rem; }
  .hero-actions .faq-button { padding-inline: 12px; }
  .hero-actions svg { width: 15px; height: 15px; }
  .hero-visual { width: min(100%, 380px); margin: 0 auto; }
  .home-page .tariff-carousel { padding: 15px; }
  .tariff-carousel .tariff-list > .tariff-card { min-height: 285px; }
}

@media (forced-colors: active) {
  .hero-content h1 span { background: none; color: CanvasText; }
  body .site-header .site-navigation a[aria-current] { outline: 1px solid Highlight; }
  body :is(button, a, summary, input, textarea):focus-visible { outline-color: Highlight; }
}
