/* =========================================================
   Bhobu Reload — Soft UI stylesheet (self-contained, no CDN JS)
   ========================================================= */

:root {
  /* Soft blue palette */
  --primary: #1f6fd6;
  --primary-strong: #0f52ac;
  --primary-soft: #e8f1ff;
  --primary-softer: #f3f8ff;
  --secondary: #38b6ff;
  --accent: #ffb020;

  --ink: #1a222c;
  --ink-soft: #55606d;
  --ink-faint: #8a94a1;

  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --line: #e3ebf6;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(31, 111, 214, 0.06);
  --shadow: 0 12px 34px rgba(31, 111, 214, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 111, 214, 0.16);

  --container: 1200px;
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* -------- Eyebrow / headings -------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); transform: translateY(-2px); }

.btn-telegram {
  background: #29a9eb;
  color: #fff;
  box-shadow: 0 12px 30px rgba(41, 169, 235, .28);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(41, 169, 235, .35); }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* -------- Navbar -------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 249, 255, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding .3s ease;
}
.nav.scrolled .nav-inner { padding: 12px 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-strong);
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--primary);
}

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

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: rgba(246, 249, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 8px;
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--primary-soft); color: var(--primary); }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 150px 0 130px;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(56, 182, 255, .18), transparent 60%),
    radial-gradient(900px 500px at 8% 20%, rgba(31, 111, 214, .10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600; color: var(--primary-strong);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: 100%; max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  transition: transform .5s ease;
}
.hero-visual img:hover { transform: rotate(0); }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1;
}
.blob-1 { width: 200px; height: 200px; background: rgba(56,182,255,.35); top: -30px; right: 0; }
.blob-2 { width: 260px; height: 260px; background: rgba(31,111,214,.28); bottom: -40px; left: -20px; }

/* -------- Stat cards -------- */
.stats {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-ico {
  width: 48px; height: 48px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-card h3 { font-size: .98rem; margin: 0; }

/* -------- Products -------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 0;
}
.feature-row.right { text-align: right; flex-direction: row-reverse; }
.feature-ico {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.feature-row h4 { font-size: 1.1rem; margin-bottom: 4px; }
.feature-row p { font-size: .92rem; margin: 0; }

.product-mockup { position: relative; display: flex; justify-content: center; }
.product-mockup img {
  width: 250px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.product-mockup::after {
  content: ""; position: absolute; inset: 10% -10%;
  background: radial-gradient(circle, rgba(31,111,214,.10), transparent 70%);
  z-index: -1;
}

/* -------- Split feature -------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 16px; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: .98rem; }
.check-list .icon { color: var(--primary); margin-top: 2px; }

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-alt));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 32px;
}
.media-card svg { width: 100%; height: 100%; }

/* -------- H2H -------- */
.h2h-wrap {
  background: linear-gradient(135deg, #0f52ac 0%, #1f6fd6 55%, #38b6ff 130%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.h2h-wrap::before {
  content: ""; position: absolute; width: 380px; height: 380px;
  background: rgba(255,255,255,.08); border-radius: 50%;
  top: -140px; right: -80px;
}
.h2h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.h2h-grid h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.h2h-grid p { color: rgba(255,255,255,.85); }
.h2h-pills { display: grid; gap: 12px; margin: 24px 0 28px; }
.pill {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px 18px; border-radius: 14px;
  font-weight: 600; font-size: .95rem;
}
.pill .icon { color: #fff; }
.h2h-visual {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; padding: 40px;
}

/* -------- Steps -------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -14px; right: 6px;
  font-family: var(--font); font-weight: 800;
  font-size: 5.5rem; color: var(--primary-soft);
  line-height: 1; user-select: none; z-index: 0;
}
.step-ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; margin-bottom: 18px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.step-card h4, .step-card p { position: relative; z-index: 1; }
.step-card h4 { font-size: 1.1rem; }
.step-card p { font-size: .9rem; margin: 0; }

/* -------- Footer -------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer h5 { font-family: var(--font); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a, .footer-contact li { color: var(--ink-soft); font-size: .93rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--primary); }
.footer-brand p { font-size: .93rem; max-width: 300px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { color: var(--primary); flex: none; margin-top: 2px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-alt); color: var(--primary);
  transition: transform .2s ease, background .2s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--primary-soft); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: .85rem; color: var(--ink-faint);
}

/* -------- Back to top -------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; border: none; cursor: pointer;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: all .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--primary-strong); }

/* -------- Reveal animation (progressive enhancement) --------
   Elements are hidden ONLY when JS is active (html.js). Without JS
   the content stays fully visible — the page never depends on JS. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal.active, .reveal.active { opacity: 1; transform: translateY(0); }

/* -------- Legal pages -------- */
.legal { max-width: 820px; margin: 120px auto 60px; padding: 0 24px; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.legal-card h1 { font-size: 1.9rem; color: var(--primary-strong); }
.legal-card h2 { font-size: 1.25rem; color: var(--primary-strong); margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-soft); }
.legal-card h3 { font-size: 1.05rem; margin-top: 24px; }
.legal-card p, .legal-card li { text-align: justify; color: var(--ink-soft); }
.legal-card ul, .legal-card ol { padding-left: 22px; }
.legal-card li { margin-bottom: 8px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 600; }

/* -------- 404 -------- */
.err-wrap { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.err-code { font-family: var(--font); font-size: 7rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-wrap h2 { font-size: 1.4rem; margin: 8px 0 12px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.right, .feature-row { text-align: left; flex-direction: row; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; }
  .h2h-grid { grid-template-columns: 1fr; }
  .h2h-visual { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .h2h-wrap { padding: 32px 24px; }
  .legal-card { padding: 28px 22px; }
  .steps-grid, .footer-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 90px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn, .nav-cta .btn { width: auto; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
