/* =================================================================
   Обратно VPN — v2 Minimal (Linear/Vercel-style)
   White + electric blue, Geist Sans + Geist Mono
   ================================================================= */

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

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-line: #ededed;
  --fg: #0a0a0a;
  --fg-dim: #525252;
  --fg-soft: #a3a3a3;
  --accent: oklch(0.55 0.20 252);
  --accent-soft: oklch(0.96 0.04 252);
  --accent-ink: oklch(0.30 0.18 252);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(10,10,10,0.04), 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 1px 0 rgba(10,10,10,0.04), 0 8px 24px -8px rgba(10,10,10,0.10);
  --shadow-lg: 0 20px 60px -20px rgba(10,10,10,0.18), 0 8px 24px -10px rgba(10,10,10,0.10);
  --font-sans: "Geist", -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss02"; letter-spacing: -0.02em; }
.muted { color: var(--fg-dim); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #1a1a1a; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--bg-line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: #d4d4d4; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-xl { padding: 18px 32px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.tg-glyph { display: inline-flex; align-items: center; }
.tg-glyph svg { width: 17px; height: 17px; display: block; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bg-line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--pad);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.logo-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: url("assets/obratno-logo.png") center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(10,10,10,0.06);
}
.logo-text { color: var(--fg); }
.logo-dim { color: var(--fg-soft); margin-left: 2px; }
.nav-links { display: flex; gap: 28px; justify-content: center; }
.nav-links a { font-size: 14px; color: var(--fg-dim); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.72 0.18 145);
  box-shadow: 0 0 0 3px oklch(0.92 0.10 145);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.5} }
.status-text { font-size: 13px; color: var(--fg-dim); font-family: var(--font-mono); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: transform .25s, opacity .15s; }
.mobile-menu { display: none; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 8vw, 100px);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--bg-line); background: var(--bg);
  font-size: 12px; font-family: var(--font-mono); color: var(--fg-dim);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.display {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}
.display .muted { color: var(--fg-soft); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--fg-dim); margin-top: 24px; max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--bg-line); }
.stat-num { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; font-family: var(--font-mono); }
.stat-suf { font-size: 13px; color: var(--fg-soft); margin-left: 4px; }
.stat-lbl { font-size: 13px; color: var(--fg-dim); margin-top: 4px; text-wrap: balance; }

/* ===== Hero demo card ===== */
.hero-right { position: relative; }
.demo-shadow {
  position: absolute; inset: 20px -20px -30px 20px; z-index: -1;
  background: radial-gradient(ellipse at center, oklch(0.85 0.10 252 / 0.4), transparent 70%);
  filter: blur(40px);
}
.demo-card {
  background: var(--bg);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-line);
  background: var(--bg-alt);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; }
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-title { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); text-align: center; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: oklch(0.95 0.06 145); color: oklch(0.40 0.15 145);
  font-size: 11px; font-family: var(--font-mono); font-weight: 500;
}
.demo-pill .pulse { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.65 0.18 145); animation: pulse-dot 1.6s infinite; }
.demo-body { padding: 24px; }
.demo-route {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 4px 22px;
}
.node { text-align: center; }
.node-flag { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.node-lbl { font-size: 13px; font-weight: 500; }
.node-sub { font-size: 11px; color: var(--fg-soft); font-family: var(--font-mono); margin-top: 2px; }
.route-line { color: var(--accent); height: 40px; }
.route-line svg { width: 100%; height: 100%; display: block; }
.demo-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px dashed var(--bg-line);
  border-bottom: 1px dashed var(--bg-line);
}
.meta-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.meta-k { color: var(--fg-soft); }
.meta-v { font-family: var(--font-mono); color: var(--fg); }
.demo-foot { margin-top: 16px; }
.foot-lbl { font-size: 11px; color: var(--fg-soft); font-family: var(--font-mono); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--bg-line); font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); background: var(--bg); }

/* =================================================================
   SECTION HEAD
   ================================================================= */
section { position: relative; }
.section-head { max-width: 700px; margin: 0 auto clamp(40px, 5vw, 72px); text-align: left; }
.section-tag { font-family: var(--font-mono); font-size: 12px; color: var(--fg-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.section-title { font-size: clamp(30px, 4.5vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.section-lead { font-size: clamp(15px, 1.4vw, 17px); color: var(--fg-dim); margin-top: 18px; max-width: 600px; text-wrap: pretty; }

/* =================================================================
   SERVICES
   ================================================================= */
.services { padding: clamp(60px, 8vw, 120px) 0; border-top: 1px solid var(--bg-line); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc-card { background: var(--bg); padding: 28px 24px; transition: background .2s; }
.svc-card:hover { background: var(--bg-alt); }
.svc-cat { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc-list li { font-size: 14px; color: var(--fg); display: flex; gap: 8px; align-items: baseline; }
.svc-list li::before { content: "→"; color: var(--fg-soft); font-family: var(--font-mono); }
.services-foot { margin-top: 32px; text-align: center; font-size: 14px; color: var(--fg-dim); }
.services-foot a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* =================================================================
   HOW
   ================================================================= */
.how { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg-alt); border-top: 1px solid var(--bg-line); border-bottom: 1px solid var(--bg-line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step {
  background: var(--bg);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.how-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4d4d4; }
.how-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.how-time { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-soft); padding: 3px 8px; border: 1px solid var(--bg-line); border-radius: 999px; }
.how-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 28px; }
.how-text { font-size: 14px; color: var(--fg-dim); margin-top: 10px; }
.how-text code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-alt); border: 1px solid var(--bg-line); padding: 1px 6px; border-radius: 4px; }
.how-art { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--bg-line); display: flex; flex-direction: column; gap: 6px; }
.tg-msg { font-size: 13px; padding: 8px 12px; border-radius: 14px; max-width: 85%; }
.tg-msg.from { align-self: flex-end; background: oklch(0.92 0.08 252); color: var(--accent-ink); font-family: var(--font-mono); }
.tg-msg.to { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--bg-line); }
.how-art-pay { gap: 8px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); font-size: 13px; }
.pay-row.active { background: var(--fg); color: var(--bg); }
.how-art-dev { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.dev { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--bg-line); border-radius: 6px; font-size: 12px; background: var(--bg-alt); }
.dev-i { font-size: 14px; }

/* =================================================================
   PRICING
   ================================================================= */
.pricing { padding: clamp(60px, 8vw, 120px) 0; border-top: 1px solid var(--bg-line); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--bg); border: 1px solid var(--bg-line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column;
  position: relative; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--fg); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-card.featured:hover { transform: translateY(-8px); }
.price-badge { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); align-self: flex-start; margin-bottom: 18px; }
.price-badge.muted { background: var(--bg-alt); color: var(--fg-dim); border: 1px solid var(--bg-line); }
.price-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.price-sub { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.price-amount { margin-top: 24px; display: flex; align-items: baseline; gap: 4px; font-family: var(--font-mono); letter-spacing: -0.04em; }
.price-amount .cur { font-size: 24px; color: var(--fg-dim); }
.price-amount .big { font-size: 56px; font-weight: 500; line-height: 1; }
.price-amount .per { font-size: 14px; color: var(--fg-dim); margin-left: 6px; }
.price-eq { font-size: 12px; color: var(--fg-soft); margin-top: 6px; }
.price-feats { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feats li { font-size: 14px; color: var(--fg); display: flex; gap: 10px; }
.price-feats li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.pay-methods { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bg-line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.pm-lbl { color: var(--fg-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.pm { padding: 5px 10px; border: 1px solid var(--bg-line); border-radius: 6px; background: var(--bg-alt); }

/* =================================================================
   FAQ
   ================================================================= */
.faq { padding: clamp(60px, 8vw, 120px) 0; border-top: 1px solid var(--bg-line); }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--bg-line); }
.faq-item { border-bottom: 1px solid var(--bg-line); }
.faq-q { width: 100%; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); cursor: pointer; }
.faq-q:hover { color: var(--accent); }
.faq-q .faq-plus { font-family: var(--font-mono); font-size: 20px; color: var(--fg-soft); transition: transform .25s, color .2s; flex-shrink: 0; }
.faq-item.open .faq-plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding-bottom: 22px; color: var(--fg-dim); font-size: 15px; max-width: 640px; line-height: 1.55; }

/* =================================================================
   CTA FINAL
   ================================================================= */
.cta-final { padding: clamp(60px, 8vw, 120px) 0; }
.cta-card {
  position: relative;
  background: var(--fg); color: var(--bg);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, oklch(0.55 0.20 252 / 0.25), transparent 50%),
    radial-gradient(circle at 70% 80%, oklch(0.55 0.20 280 / 0.20), transparent 50%);
}
.cta-card > * { position: relative; }
.cta-tag { font-family: var(--font-mono); font-size: 12px; color: oklch(0.72 0.15 252); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.cta-h { font-size: clamp(36px, 6vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.0; }
.cta-p { font-size: 17px; color: oklch(0.72 0.01 252); margin: 20px auto 36px; max-width: 480px; }
.cta-final .btn-primary { background: var(--bg); color: var(--fg); }
.cta-final .btn-primary:hover { background: oklch(0.95 0 0); }
.cta-foot { margin-top: 20px; font-size: 12px; color: oklch(0.55 0.01 252); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--bg-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tag { color: var(--fg-dim); font-size: 14px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-family: var(--font-mono); font-size: 12px; color: var(--fg-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--fg-dim); transition: color .15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bg-line); font-size: 12px; color: var(--fg-soft); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  body.menu-open .mobile-menu {
    display: flex; flex-direction: column; gap: 16px;
    padding: 16px var(--pad) 24px;
    border-top: 1px solid var(--bg-line);
    background: var(--bg);
  }
  body.menu-open .mobile-menu a:not(.btn) { font-size: 18px; padding: 8px 0; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats .stat:nth-child(3) { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .demo-body { padding: 18px; }
  .demo-meta { grid-template-columns: 1fr; }
  .price-card { padding: 24px 20px; }
  .cta-card { padding: 48px 24px; }
}
