/* ------------------------------------------------------------
   Mantine-inspired design tokens. Dark only, per theme_mode.
------------------------------------------------------------ */
:root {
  --brand-primary: #FB7BE2;
  --brand-primary-2: #C86BFF;
  --brand-trial:   #F38AD9;

  --body:    #120D14;
  --surface: #1B141D;
  --text:    #F7EDF5;
  --hint:    #BBA9B8;

  --bg-1: #1A101B;
  --bg-2: #2A1628;

  --card-bg: rgba(27, 20, 29, 0.70);
  --card-border: rgba(247, 237, 245, 0.06);
  --card-border-strong: rgba(251, 123, 226, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-glow: 0 10px 40px rgba(251, 123, 226, 0.18);

  --blur: 8px;

  --container: 1120px;
  --section-py: 96px;

  --t: 200ms cubic-bezier(.2,.8,.2,1);
}

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

/* Smooth scroll for in-page anchor links; offset for sticky header */
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--text);
  background: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Aurora gradient backdrop ------------------------------------ */
.backdrop {
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(251,123,226,0.20), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(200,107,255,0.18), transparent 65%),
    radial-gradient(700px 500px at 50% 110%, rgba(243,138,217,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--body) 60%, var(--bg-2) 100%);
}
.backdrop::after {
  content:'';
  position:absolute; inset:0;
  background-image:
    radial-gradient(rgba(247,237,245,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events:none;
}

/* Sakura layer ------------------------------------------------ */
#sakura {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Layout ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header ------------------------------------------------------ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  background: rgba(18, 13, 20, 0.55);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  box-shadow: var(--shadow-glow);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-mark img { width: 24px; height: 24px; display: block; filter: brightness(0) invert(0.06); }
.brand-mark.large { width: 64px; height: 64px; border-radius: 16px; }
.brand-mark.large img { width: 40px; height: 40px; }

.nav-links {
  display: flex; gap: 6px; align-items: center;
}
.nav-link {
  color: var(--hint);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text); background: rgba(247,237,245,0.05); }

.nav-cta { display:flex; gap: 8px; align-items: center; }

/* Buttons ----------------------------------------------------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t), border-color var(--t);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-primary);
  color: #1A0A16;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: #ff90e8; box-shadow: 0 14px 50px rgba(251,123,226,0.30); }
.btn-ghost {
  background: rgba(247,237,245,0.04);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(247,237,245,0.08); border-color: rgba(247,237,245,0.12); }
.btn-trial {
  background: linear-gradient(135deg, var(--brand-trial), var(--brand-primary-2));
  color: #14071A;
  box-shadow: 0 10px 30px rgba(200,107,255,0.30);
}
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 999px; }

/* Hero -------------------------------------------------------- */
.hero {
  padding: 80px 0 96px;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251,123,226,0.10);
  border: 1px solid rgba(251,123,226,0.25);
  color: var(--brand-primary);
  font-weight: 500; font-size: 13px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 12px var(--brand-primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(0.85); }
}

h1.hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 820px;
}
h1.hero-title .accent {
  background: linear-gradient(135deg, #FFC2EE 0%, var(--brand-primary) 50%, var(--brand-primary-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--hint);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--hint); font-size: 14px;
}
.hero-meta .item { display:flex; align-items:center; gap: 8px; }
.hero-meta svg { color: var(--brand-primary); }

/* Hero ------------------------------------------------- */
.hero-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-inner h1.hero-title { margin-left: auto; margin-right: auto; }
.hero-inner .hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-meta { justify-content: center; }

.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow-md);
}

.device {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, #2A1B2C, #150E18);
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(247,237,245,0.05) inset,
    var(--shadow-glow);
}
.device::before {
  content:'';
  position: absolute; top: 18px; left: 50%;
  width: 100px; height: 24px; transform: translateX(-50%);
  background: #0c060e; border-radius: 12px;
  z-index: 2;
}
.device .screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(251,123,226,0.30), transparent 70%),
    linear-gradient(180deg, #1A101B, #120D14);
  overflow: hidden;
  position: relative;
  padding: 56px 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.screen .label {
  color: var(--hint); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
}
.screen .status-card {
  background: rgba(247,237,245,0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.screen .status-card .row {
  display:flex; justify-content: space-between; align-items: center;
}
.screen .city { font-size: 15px; font-weight: 600; }
.screen .ping { color: #4ade80; font-size: 12px; font-weight: 600; }
.screen .bar { height: 6px; border-radius: 999px; background: rgba(247,237,245,0.06); margin-top: 12px; overflow: hidden;}
.screen .bar i { display:block; height: 100%; width: 78%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-2));
  border-radius: 999px;
}
.screen .big {
  margin-top: auto;
  text-align: center;
  padding: 22px 12px;
  background: rgba(251,123,226,0.10);
  border: 1px solid rgba(251,123,226,0.25);
  border-radius: var(--radius-md);
}
.screen .big .ms { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.screen .big .lbl { color: var(--hint); font-size: 12px; margin-top: 4px; }
.screen .pill-btn {
  background: var(--brand-primary);
  color: #1A0A16;
  border-radius: 999px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(251,123,226,0.35);
  margin-top: 8px;
}

/* Section -------------------------------------------- */
section { padding: var(--section-py) 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.section-head p {
  color: var(--hint);
  font-size: 17px;
  margin: 0;
}
.kicker {
  display: inline-block;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Feature grid ---------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform var(--t), border-color var(--t);
}
.feature:hover { transform: translateY(-2px); border-color: var(--card-border-strong); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(251,123,226,0.12);
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.feature p {
  color: var(--hint);
  font-size: 14px;
  margin: 0;
}

/* Stats banner ---------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-border);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: rgba(27,20,29,0.85);
  padding: 28px;
  text-align: center;
}
.stat .num {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFC2EE, var(--brand-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--hint); font-size: 13px; margin-top: 4px; }

/* Pricing -------------------------------------------- */
.pricing-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
  /* Match the dashboard typography: Montserrat across all pricing text */
  font-family: 'Montserrat', 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.pricing-shell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.pricing-shell-head .title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
}
.traffic-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(247,237,245,0.05);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.traffic-pill svg { color: var(--brand-primary); }

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  background: rgba(15, 10, 17, 0.5);
  border: 1px solid var(--card-border);
  transition:
    border-color 320ms cubic-bezier(.2,.8,.2,1),
    transform    320ms cubic-bezier(.2,.8,.2,1),
    box-shadow   320ms cubic-bezier(.2,.8,.2,1),
    background   320ms cubic-bezier(.2,.8,.2,1);
}
.plan:hover  { border-color: var(--card-border-strong); transform: translateY(-2px); }
.plan:active { transform: translateY(-1px) scale(0.995); }
.plan.selected {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, rgba(251,123,226,0.07), rgba(251,123,226,0.02));
  box-shadow:
    0 0 0 1px var(--brand-primary),
    0 30px 60px rgba(251,123,226,0.18);
}
/* Smoothly fade in/out the "Выгодно" badge on the selected plan */
.plan .badge {
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), box-shadow 320ms cubic-bezier(.2,.8,.2,1);
}
.plan.selected .badge { transform: translateY(-2px); }
.plan .badge {
  position: absolute; top: -12px; left: 22px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #1A0A16;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(251,123,226,0.30);
}
.plan .term { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.plan .price-row {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 10px;
  margin-top: 18px;
}
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.plan .per-month { color: var(--hint); font-size: 13px; text-align: right; margin-top: 4px; }

.plan-includes {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.plan-includes h4 {
  margin: 0 0 14px;
  font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--hint); font-weight: 600;
}
.plan-includes ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 700px) { .plan-includes ul { grid-template-columns: 1fr; } }
.plan-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.plan-includes li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-primary); }

/* Locations ------------------------------------------ */
.locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .locations { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .locations { grid-template-columns: repeat(2, 1fr); } }
.loc {
  padding: 18px 18px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 14px;
  transition: transform var(--t), border-color var(--t);
}
.loc:hover { transform: translateY(-2px); border-color: var(--card-border-strong); }
.loc .flag {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(247,237,245,0.04);
  flex-shrink: 0;
  overflow: hidden;
}
.loc .flag img {
  width: 28px;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.loc .name { font-weight: 600; font-size: 15px; }
.loc .city { color: var(--hint); font-size: 12px; margin-top: 2px; }

/* How it works --------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
}
.step .n {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #1A0A16; font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p { color: var(--hint); font-size: 14px; margin: 0; }

/* FAQ ------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
details.q {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--t);
}
details.q[open] { border-color: var(--card-border-strong); }
details.q summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500; font-size: 16px;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary .chev {
  color: var(--brand-primary);
  transition: transform var(--t);
}
details.q[open] summary .chev { transform: rotate(180deg); }
details.q .a { color: var(--hint); margin-top: 12px; font-size: 15px; }

/* Payment methods (in FAQ) -------------------------- */
.payments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 540px) { .payments { grid-template-columns: 1fr; } }
.payment {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(247,237,245,0.04);
  border: 1px solid var(--card-border);
}
.pico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pico img { width: 40px; height: 40px; display: block; }
.pname { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.2; }
.pdesc { color: var(--hint); font-size: 12px; margin-top: 2px; }

/* CTA ------------------------------------------------- */
.cta-card {
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(800px 380px at 50% 0%, rgba(251,123,226,0.20), transparent 70%),
    var(--card-bg);
  border: 1px solid var(--card-border-strong);
}
.cta-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-card p {
  color: var(--hint); margin: 0 auto 28px; max-width: 540px; font-size: 17px;
}

/* Footer ---------------------------------------------- */
footer.site {
  padding: 48px 0 40px;
  border-top: 1px solid var(--card-border);
  color: var(--hint);
  font-size: 14px;
}
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--hint); text-decoration: none; transition: color var(--t); }
.foot-links a:hover { color: var(--text); }

/* Responsive nav ------------------------------------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .cta-card { padding: 44px 24px; }
}

/* Reduce-motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  #sakura { display: none; }
}
