:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0f172a;
  --surface-soft: #111c31;
  --line: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --label: #94a3b8;
  --accent: #34d399;
  --accent-deep: #10b981;
  --warm: #fbbf24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.page-shell { overflow: hidden; }

.eyebrow, .kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav {
  position: fixed;
  z-index: 9999;
  top: 16px;
  right: clamp(20px, 5vw, 72px);
  left: clamp(20px, 5vw, 72px);
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 5px 6px 5px 12px;
  isolation: isolate;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.nav.is-scrolled, .nav.is-open {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.76);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a { transition: color 180ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta, .button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nav-cta { min-height: 42px; border: 1px solid rgba(52, 211, 153, 0.8); padding: 0 16px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); box-shadow: 0 14px 34px rgba(16, 185, 129, 0.34); color: #02110c; }
.button-primary { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #02110c; box-shadow: 0 20px 48px rgba(16, 185, 129, 0.24); }
.button-secondary { border: 1px solid rgba(203, 213, 225, 0.35); background: rgba(2, 6, 23, 0.18); }
.nav-cta:hover { border-color: #a7f3d0; box-shadow: 0 18px 42px rgba(16, 185, 129, 0.48); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.mobile-menu-cta { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.54)),
    radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.2), transparent 3rem);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease, background 180ms ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }

.menu-toggle[aria-expanded="true"] { border-color: rgba(52, 211, 153, 0.5); color: var(--accent); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  isolation: isolate;
  padding: 132px clamp(20px, 5vw, 72px) clamp(56px, 8vw, 98px);
  background: #020617;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: var(--hero-image) center / cover no-repeat;
  transform: scale(1.015);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.9) 31%, rgba(2, 6, 23, 0.38) 68%, rgba(2, 6, 23, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 45%, rgba(2, 6, 23, 0.42) 100%);
}

.hero-inner, .content, .site-footer-inner { width: min(1180px, 100%); margin: 0 auto; }
.hero-copy { max-width: 730px; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(46px, 7.2vw, 92px); line-height: 0.94; letter-spacing: -0.06em; text-wrap: balance; }
.hero-lead { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: clamp(17px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-signal { display: grid; grid-template-columns: auto 1fr; max-width: 420px; gap: 14px; margin-top: 48px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.signal-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.1), 0 0 24px rgba(52, 211, 153, 0.65); }

.feature {
  position: relative;
  padding: clamp(82px, 10vw, 144px) clamp(20px, 5vw, 72px);
  background: var(--feature-bg, #020617);
}

.feature::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(148,163,184,0.035) 1px, transparent 1px), linear-gradient(rgba(148,163,184,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.feature:nth-of-type(even) { --feature-bg: #07101f; }

.feature-layout { position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1.12fr); gap: clamp(34px, 7vw, 98px); align-items: center; }
.feature-layout.reverse { grid-template-columns: minmax(340px, 1.12fr) minmax(0, 0.78fr); }
.feature-layout.reverse .feature-copy { order: 2; }
.feature-layout.reverse .feature-media { order: 1; }
.feature-copy { max-width: 530px; }
.feature-title { margin-bottom: 20px; font-size: clamp(36px, 5.1vw, 68px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.feature-lead { margin-bottom: 30px; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.52; }

.proof-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.proof-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.proof-list strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.proof-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: rgba(52, 211, 153, 0.12); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.24); color: var(--accent); font-size: 12px; font-weight: 900; }

.feature-media { position: relative; min-height: clamp(360px, 45vw, 570px); }
.feature-media::before { position: absolute; z-index: 0; right: 6%; bottom: 4%; width: 52%; height: 18%; border-radius: 50%; content: ""; background: rgba(52, 211, 153, 0.2); filter: blur(50px); }
.feature-media img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 32px; object-fit: cover; box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42); }
.feature-layout:not(.reverse) .feature-media img { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
.feature-layout.reverse .feature-media img { transform: perspective(1200px) rotateY(4deg) rotateX(1deg); transform-origin: right center; }

.chapter { position: relative; padding: clamp(88px, 11vw, 150px) clamp(20px, 5vw, 72px); background: radial-gradient(circle at 12% 50%, rgba(125,211,252,0.08), transparent 30rem), #020617; }
.chapter-inner { width: min(1180px, 100%); margin: 0 auto; }
.chapter-heading { max-width: 690px; margin-bottom: 52px; }
.chapter-heading h2 { margin-bottom: 18px; font-size: clamp(40px, 5.5vw, 74px); line-height: 0.96; letter-spacing: -0.055em; }
.chapter-heading p { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { min-height: 260px; padding: 26px 28px 28px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step-index { display: block; margin-bottom: 54px; color: var(--accent); font-size: 13px; font-weight: 850; }
.step h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.05; letter-spacing: -0.03em; }
.step p { max-width: 270px; margin-bottom: 0; color: var(--muted); line-height: 1.5; }

.app-download {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 10vw, 132px) clamp(20px, 5vw, 72px);
  isolation: isolate;
}

.app-download::before, .app-download::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.app-download--owners { background: radial-gradient(circle at 83% 42%, rgba(52, 211, 153, 0.18), transparent 23rem), linear-gradient(135deg, #071f1b 0%, #061422 58%, #020617 100%); }
.app-download--owners::before { inset: -18% -8% -45% 46%; border: 1px solid rgba(52, 211, 153, 0.34); border-radius: 50%; box-shadow: 0 0 0 68px rgba(52, 211, 153, 0.045), 0 0 0 136px rgba(52, 211, 153, 0.025); }
.app-download--renters { background: radial-gradient(circle at 12% 84%, rgba(59, 130, 246, 0.17), transparent 28rem), linear-gradient(125deg, #020817 0%, #071426 52%, #031a19 100%); }
.app-download--renters::before { width: min(70vw, 880px); height: min(70vw, 880px); right: -24%; bottom: -56%; border: 1px solid rgba(125, 211, 252, 0.2); border-radius: 50%; box-shadow: 0 0 0 62px rgba(52, 211, 153, 0.035), 0 0 120px rgba(52, 211, 153, 0.14); }
.app-download::after { inset: 0; opacity: 0.38; background-image: linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px), linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(90deg, transparent, black 22%, black 82%, transparent); }

.app-download-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr); gap: clamp(44px, 9vw, 132px); align-items: center; width: min(1180px, 100%); margin: 0 auto; }
.app-download-copy { max-width: 650px; }
.app-download-title { margin-bottom: 20px; font-size: clamp(42px, 6vw, 80px); line-height: 0.94; letter-spacing: -0.06em; text-wrap: balance; }
.app-download-lead { max-width: 570px; margin-bottom: 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }

.download-visual { position: relative; display: grid; min-height: 480px; align-content: center; gap: 15px; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 32px; background: rgba(2, 6, 23, 0.46); box-shadow: 0 28px 82px rgba(0, 0, 0, 0.28); backdrop-filter: blur(16px); }
.download-visual::before { position: absolute; top: 28px; right: 30px; width: 11px; height: 11px; border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.1), 0 0 32px rgba(52, 211, 153, 0.7); }
.download-visual-label { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.download-visual-statement { max-width: 310px; margin: 0 0 22px; font-size: clamp(30px, 3.4vw, 45px); font-weight: 850; line-height: 0.96; letter-spacing: -0.05em; }
.download-visual-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.download-visual-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.download-visual-list li::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 14px rgba(52, 211, 153, 0.7); }

.app-download--renters .download-visual { align-content: end; min-height: 500px; background: linear-gradient(155deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0.7)); }
.app-download--renters .download-visual::after { position: absolute; top: 76px; right: 48px; bottom: 122px; left: 48px; border: 1px solid rgba(125, 211, 252, 0.2); border-left-color: transparent; border-radius: 50% 44% 42% 48%; content: ""; transform: rotate(-18deg); }
.app-download--renters .download-visual-statement { max-width: 330px; }
.app-download--renters .download-visual-list { position: relative; }

.download-store-list { display: grid; gap: 12px; margin-top: 32px; }
.download-store { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 72px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 18px; background: rgba(15, 23, 42, 0.62); padding: 12px 16px 12px 12px; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.download-store:hover { transform: translateX(4px); border-color: rgba(52, 211, 153, 0.62); background: rgba(15, 23, 42, 0.88); }
.download-store--soon { cursor: default; opacity: 0.7; }
.download-store--soon:hover { transform: none; border-color: rgba(148, 163, 184, 0.18); background: rgba(15, 23, 42, 0.62); }
.download-store-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; font-size: 13px; font-weight: 900; }
.download-store-icon svg { display: block; width: 25px; height: 25px; }
.download-store-icon--appstore { background: linear-gradient(135deg, #22a7ff, #0066d9); }
.download-store-icon--googleplay { background: #ffffff; color: #07101f; }
.download-store-icon--googleplay svg { width: 23px; height: 26px; }
.download-store-icon--rustore { background: transparent; }
.download-store-icon--rustore svg { width: 100%; height: 100%; }
.download-store small { display: block; color: var(--label); font-size: 11px; line-height: 1.1; }
.download-store strong { display: block; margin-top: 3px; font-size: 16px; }
.download-arrow { color: var(--accent); font-size: 20px; }
.download-soon { border: 1px solid rgba(251, 191, 36, 0.38); border-radius: 999px; padding: 5px 8px; color: var(--warm); font-size: 12px; font-weight: 900; }
.download-note { margin: 16px 0 0; color: var(--label); font-size: 13px; line-height: 1.45; }

.qr-modal[hidden] { display: none; }
.qr-modal { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, 0.74); opacity: 0; transition: opacity 180ms ease; }
.qr-modal.is-open { opacity: 1; }
.qr-card { width: min(420px, 100%); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 28px; background: #0f172a; padding: 24px; box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48); }
.qr-close { display: flex; min-height: 38px; align-items: center; margin-left: auto; border: 0; border-radius: 12px; background: rgba(148, 163, 184, 0.13); padding: 0 12px; color: var(--text); cursor: pointer; }
.qr-card h2 { margin: 24px 0 8px; font-size: 32px; letter-spacing: -0.04em; }
.qr-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.qr-image-wrap { display: grid; width: min(220px, 100%); aspect-ratio: 1; place-items: center; margin: 22px auto 0; border-radius: 18px; background: #fff; padding: 12px; }
.qr-image-wrap img { width: 100%; height: 100%; }
.qr-direct { display: inline-flex; margin-top: 22px; color: var(--accent); font-weight: 800; }
body.qr-lock { overflow: hidden; }

.site-footer { position: relative; overflow: hidden; padding: clamp(78px, 9vw, 118px) clamp(20px, 5vw, 72px) 28px; background: linear-gradient(180deg, rgba(2,6,23,0.86), #020617), url("/landing-footer-gates.webp") center bottom / cover no-repeat; }
.site-footer-inner { position: relative; }
.footer-main { max-width: 780px; }
.footer-title { margin-bottom: 20px; font-size: clamp(36px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.05em; }
.footer-lead { max-width: 600px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.52; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--muted); font-size: 14px; }
.footer-docs a:hover { color: var(--accent); }
.footer-docs .telegram-link { display: inline-flex; align-items: center; gap: 7px; color: #dbeafe; }
.footer-docs .telegram-link svg { width: 16px; height: 16px; color: #38bdf8; transition: transform 180ms ease; }
.footer-docs .telegram-link:hover { color: #e0f2fe; }
.footer-docs .telegram-link:hover svg { transform: translate(2px, -2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 78px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--label); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav { right: 16px; left: 16px; align-items: flex-start; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 58px; right: 0; display: grid; width: min(330px, calc(100vw - 32px)); gap: 4px; padding: 14px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 22px; background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98)); box-shadow: 0 28px 90px rgba(0,0,0,0.46); backdrop-filter: blur(22px); opacity: 0; pointer-events: none; transform: translateY(-10px) scale(0.97); transform-origin: top right; transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease; visibility: hidden; }
  .nav-links::before { content: "Меню"; display: block; margin: 4px 8px 10px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); visibility: visible; }
  .nav-links a { display: flex; min-height: 48px; align-items: center; border-radius: 14px; padding: 0 14px; color: #e5edf7; font-size: 16px; font-weight: 800; }
  .nav-links a:hover, .nav-links a:focus-visible { background: rgba(52, 211, 153, 0.1); color: var(--text); }
  .nav-cta { display: none; }
  .mobile-menu-cta { display: flex !important; justify-content: center; margin-top: 8px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #02110c !important; box-shadow: 0 18px 50px rgba(16, 185, 129, 0.28); }
  .hero { min-height: 760px; }
  .hero::after { background: linear-gradient(90deg, rgba(2,6,23,0.94), rgba(2,6,23,0.6)), linear-gradient(0deg, rgba(2,6,23,0.9), transparent 62%); }
  .feature-layout, .feature-layout.reverse { grid-template-columns: 1fr; }
  .feature-layout.reverse .feature-copy, .feature-layout.reverse .feature-media { order: initial; }
  .feature-media { min-height: min(120vw, 540px); }
  .feature-layout:not(.reverse) .feature-media img, .feature-layout.reverse .feature-media img { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-index { margin-bottom: 28px; }
  .app-download-inner { grid-template-columns: 1fr; }
  .download-visual { min-height: 380px; }
  .app-download--renters .download-visual { min-height: 400px; }
}

@media (max-width: 520px) {
  .nav { top: 10px; }
  .brand img { width: 40px; height: 40px; border-radius: 13px; }
  .hero { min-height: 690px; padding-top: 112px; padding-bottom: 48px; }
  h1 { font-size: clamp(42px, 13.2vw, 62px); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .feature-media { min-height: 340px; }
  .feature-media img { border-radius: 24px; }
  .feature-title { font-size: clamp(35px, 11vw, 50px); }
  .footer-bottom { display: grid; margin-top: 54px; }
  .app-download { padding-top: 78px; padding-bottom: 78px; }
  .app-download-title { font-size: clamp(39px, 12vw, 52px); }
  .download-visual { min-height: 330px; border-radius: 24px; padding: 28px; }
  .app-download--renters .download-visual { min-height: 350px; }
  .app-download--renters .download-visual::after { top: 58px; right: 34px; bottom: 112px; left: 34px; }
  .download-store { min-height: 68px; }
  .qr-card { border-radius: 24px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
