/**
 * xTinder VPN — лендинг в визуале Portal 2 (топбар-пилюля, док, glass, темы)
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --a1: #4f8ef7;
  --a2: #7c5cfc;
  --ag: linear-gradient(135deg, #4f8ef7, #7c5cfc);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --t1: #1a2340;
  --t2: #3d4f7c;
  --tm: #6b7a99;
  --gb: rgba(255, 255, 255, 0.62);
  --gbs: rgba(255, 255, 255, 0.88);
  --bd: rgba(255, 255, 255, 0.55);
  --bdm: rgba(200, 215, 240, 0.45);
  --sh: 0 8px 32px rgba(79, 142, 247, 0.12), 0 2px 8px rgba(30, 50, 120, 0.06);
  --shl: 0 20px 60px rgba(79, 142, 247, 0.16), 0 6px 20px rgba(30, 50, 120, 0.08);
  --body-bg: linear-gradient(145deg, #dce8ff 0%, #e8deff 42%, #d8eeff 100%);
  --orb-a: rgba(79, 142, 247, 0.5);
  --orb-b: rgba(124, 92, 252, 0.45);
  --orb-c: rgba(56, 189, 248, 0.4);
  --pill-bg: rgba(255, 255, 255, 0.16);
  --pill-brd: rgba(255, 255, 255, 0.42);
}

body[data-theme='dark'] {
  --t1: #e8edf7;
  --t2: #a8b8d8;
  --tm: #7a8aad;
  --gb: rgba(22, 30, 52, 0.72);
  --gbs: rgba(32, 42, 72, 0.9);
  --bd: rgba(255, 255, 255, 0.12);
  --bdm: rgba(120, 140, 180, 0.25);
  --sh: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shl: 0 20px 50px rgba(0, 0, 0, 0.45);
  --body-bg: linear-gradient(155deg, #0a0e18 0%, #121a2e 45%, #0d1528 100%);
  --orb-a: rgba(79, 142, 247, 0.28);
  --orb-b: rgba(124, 92, 252, 0.22);
  --orb-c: rgba(56, 189, 248, 0.2);
  --pill-bg: rgba(18, 26, 44, 0.65);
  --pill-brd: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--t1);
  background: var(--body-bg);
  min-height: 100vh;
  overflow-x: hidden;
  /* Отступ под док только у футера — не дублировать с .ld-footer */
  padding-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--ag);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}

/* Orbs */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 14s ease-in-out infinite;
}
.orb1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--orb-a) 0%, transparent 70%);
  top: -120px;
  left: -80px;
}
.orb2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orb-b) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation-delay: -5s;
}
.orb3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--orb-c) 0%, transparent 70%);
  top: 40%;
  left: 55%;
  animation-delay: -9s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(18px, -28px) scale(1.04);
  }
  66% {
    transform: translate(-12px, 16px) scale(0.96);
  }
}

/* Topbar */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 28px);
  max-width: 960px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px 8px 10px;
  background: var(--pill-bg);
  backdrop-filter: blur(36px) saturate(1.35);
  -webkit-backdrop-filter: blur(36px) saturate(1.35);
  border: 1px solid var(--pill-brd);
  border-radius: 999px;
  box-shadow: 0 4px 28px rgba(79, 142, 247, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
body[data-theme='dark'] .topbar {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tb-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ag);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(79, 142, 247, 0.35);
}
.tb-logo svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.tb-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--t1);
  white-space: nowrap;
}

.tb-ver {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--a1);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.28);
  border-radius: 99px;
  padding: 2px 8px;
}
body[data-theme='dark'] .tb-ver {
  background: rgba(79, 142, 247, 0.18);
}

.tb-sp {
  flex: 1;
  min-width: 8px;
}

.tb-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 880px) {
  .tb-nav {
    display: flex;
  }
}
.tb-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tm);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.tb-nav a:hover {
  color: var(--a1);
  background: rgba(79, 142, 247, 0.08);
}

.tb-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tm);
}
@media (min-width: 1024px) {
  .tb-status {
    display: flex;
  }
}
.tb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
}

.tb-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.tb-btn {
  height: 32px;
  border-radius: 99px;
  border: 1px solid var(--bdm);
  background: rgba(255, 255, 255, 0.22);
  color: var(--t2);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
body[data-theme='dark'] .tb-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--t2);
}
.tb-btn:hover {
  background: rgba(255, 255, 255, 0.42);
  color: var(--a1);
}
.tb-btn--cta {
  background: var(--ag);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 142, 247, 0.35);
}
.tb-btn--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.45);
  color: #fff !important;
}

.tb-theme svg {
  width: 16px;
  height: 16px;
}

/* Main */
.ld-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 92px 18px 24px;
}

/* Hero */
.ld-hero {
  text-align: center;
  padding: 28px 20px 40px;
}
.ld-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a1);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.22);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.ld-hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--t1);
  margin-bottom: 12px;
}
.ld-hero h1 span {
  display: block;
  background: var(--ag);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}
.ld-lead {
  font-size: 1rem;
  color: var(--tm);
  max-width: 520px;
  margin: 0 auto 24px;
}
.ld-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ld-note {
  font-size: 0.82rem;
  color: var(--tm);
}

/* Sections */
.ld-section {
  margin-bottom: 36px;
}
.ld-section-head {
  text-align: center;
  margin-bottom: 22px;
}
.ld-section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t1);
  margin-bottom: 6px;
}
.ld-section-head p {
  font-size: 0.9rem;
  color: var(--tm);
}

/* Glass panel */
.ld-glass {
  background: var(--gb);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--bd);
  border-radius: 22px;
  box-shadow: var(--sh);
  padding: 22px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.ld-glass:hover {
  box-shadow: var(--shl);
}

/* Feature grid */
.ld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ld-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--gb);
  border: 1.5px solid var(--bd);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sh);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ld-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shl);
}
.ld-card__ico {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.ld-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 8px;
}
.ld-card p {
  font-size: 0.86rem;
  color: var(--tm);
}

/* Steps */
.ld-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .ld-steps {
    flex-direction: row;
    align-items: stretch;
  }
}
.ld-step {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--gb);
  border: 1.5px solid var(--bd);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh);
}
.ld-step__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ag);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ld-step h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--t1);
}
.ld-step p {
  font-size: 0.84rem;
  color: var(--tm);
}

/* Pricing */
.ld-pricing {
  max-width: 420px;
  margin: 0 auto;
}
.ld-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 4px;
}
.ld-price-row .cur {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--a1);
}
.ld-price-row .amt {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--t1);
  line-height: 1;
}
.ld-price-row .per {
  font-size: 0.95rem;
  color: var(--tm);
}
.ld-trial {
  font-size: 0.85rem;
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 16px;
}
.ld-features {
  list-style: none;
  margin: 18px 0 22px;
}
.ld-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--t2);
  padding: 8px 0;
  border-bottom: 1px solid rgba(200, 215, 240, 0.25);
}
body[data-theme='dark'] .ld-features li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.ld-features li:last-child {
  border-bottom: none;
}
.ld-features .chk {
  color: var(--ok);
  font-weight: 800;
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  background: var(--ag);
  color: #fff;
  box-shadow: 0 4px 18px rgba(79, 142, 247, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ld-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(79, 142, 247, 0.45);
  color: #fff;
}

/* FAQ */
.ld-faq details {
  border-radius: 16px;
  background: var(--gb);
  border: 1.5px solid var(--bd);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.ld-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--t1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ld-faq summary::-webkit-details-marker {
  display: none;
}
.ld-faq summary .plus {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--a1);
  transition: transform 0.2s;
}
.ld-faq details[open] summary .plus {
  transform: rotate(45deg);
}
.ld-faq .ans {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--tm);
  line-height: 1.6;
}
.ld-faq .ans p,
.ld-faq .ans li {
  margin-bottom: 8px;
}
.ld-faq .ans ul {
  margin: 8px 0 8px 18px;
}

/* CTA strip */
.ld-cta {
  text-align: center;
  padding: 28px 22px;
  border-radius: 22px;
  background: var(--gb);
  border: 1.5px solid var(--bd);
  box-shadow: var(--shl);
  backdrop-filter: blur(18px);
}
.ld-cta h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--t1);
}
.ld-cta p {
  color: var(--tm);
  margin-bottom: 18px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* SEO block */
.ld-seo {
  font-size: 0.82rem;
  color: var(--tm);
  line-height: 1.65;
}
.ld-seo h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 12px;
}
.ld-seo h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--t2);
  margin: 16px 0 8px;
}
.ld-seo p {
  margin-bottom: 10px;
}

/* Footer — одна строка; при нехватке ширины — гориз. прокрутка */
.ld-footer {
  padding: 20px 12px calc(78px + env(safe-area-inset-bottom, 0px));
  color: var(--tm);
  font-size: 0.78rem;
}
.ld-footer-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  line-height: 1.35;
}
.ld-footer-row::-webkit-scrollbar {
  display: none;
}
.ld-footer a {
  color: var(--a1);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.ld-footer a:hover {
  text-decoration: underline;
}
.ld-footer-brand {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--t1);
  flex-shrink: 0;
}
.ld-footer-tagline {
  font-weight: 600;
  color: var(--tm);
  flex-shrink: 0;
}
.ld-footer-sep {
  color: var(--bdm);
  opacity: 0.75;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}
.ld-footer-copy {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tm);
  opacity: 0.9;
  flex-shrink: 0;
}

/* Dock — всегда одна строка; на узком экране компактнее, при нехватке места — гориз. прокрутка */
.dock {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  /* Ширина по кнопкам, не на весь экран; не шире вьюпорта */
  width: max-content;
  max-width: min(calc(100vw - 16px), 520px);
  padding: 4px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--pill-bg);
  backdrop-filter: blur(36px) saturate(1.35);
  -webkit-backdrop-filter: blur(36px) saturate(1.35);
  border: 1px solid var(--pill-brd);
  border-radius: 999px;
  box-shadow: 0 4px 28px rgba(79, 142, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dock::-webkit-scrollbar {
  display: none;
}
body[data-theme='dark'] .dock {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dk-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  padding: 3px 5px;
  min-width: 0;
  max-width: none;
  border: none;
  border-radius: 99px;
  background: transparent;
  color: var(--tm);
  font-family: inherit;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
/* подпись под иконкой — одна строка, не рвать док */
.dk-btn > span:not(.dk-ico) {
  display: block;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.dk-btn .dk-ico {
  font-size: 0.95rem;
  line-height: 1;
}
.dk-btn .dk-ico svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.dk-btn:hover,
.dk-btn:focus-visible {
  background: rgba(79, 142, 247, 0.1);
  color: var(--a1);
  outline: none;
}
.dk-btn.on {
  background: rgba(79, 142, 247, 0.16);
  color: var(--a1);
}
.dk-sep {
  width: 1px;
  height: 22px;
  background: var(--bdm);
  margin: 0 2px 0 3px;
  flex-shrink: 0;
  align-self: center;
}

/* Reveal */
.ld-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ld-reveal.ld-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--a2);
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 99px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

@media (min-width: 400px) {
  .dock {
    padding: 5px 8px;
    gap: 2px;
  }
  .dk-btn {
    padding: 4px 7px;
    font-size: 0.54rem;
  }
  .dk-btn > span:not(.dk-ico) {
    max-width: 58px;
  }
  .dk-btn .dk-ico svg {
    width: 1.08rem;
    height: 1.08rem;
  }
  .dk-sep {
    height: 26px;
  }
}

@media (min-width: 480px) {
  .dk-btn {
    padding: 5px 9px;
    font-size: 0.58rem;
  }
  .dk-btn > span:not(.dk-ico) {
    max-width: 68px;
  }
  .dk-btn .dk-ico svg {
    width: 1.12rem;
    height: 1.12rem;
  }
}
