/* ─── AVAILABL LANDING — Render-level, 2026 ────────────────────────────── */

:root {
  /* Dark — Render.com exact */
  --bg:        #0d0d0d;
  --surface:   #1a1a1a;
  --surface-2: #242424;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.12);
  --text:      #ffffff;
  --muted:     #a3a3a3;
  --dim:       rgba(255,255,255,0.28);

  /* Accent — Render green */
  --accent:       #5cdc96;
  --accent-dark:  #3ecb7f;
  --accent-dim:   rgba(92,220,150,0.1);
  --accent-border:rgba(92,220,150,0.22);

  /* Light sections — Render */
  --lt-bg:     #ffffff;
  --lt-bg-2:   #f5f5f5;
  --lt-border: #e8e8e8;
  --lt-text:   #0d0d0d;
  --lt-muted:  #737373;

  --radius:    10px;
  --radius-sm: 6px;
  --max-w:     1120px;
  --font:      "Inter", -apple-system, sans-serif;
  --font-display: "Syne", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── VIDEO BG ─────────────────────────────────────── */
.site-video {
  position: fixed;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.site-video__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: brightness(0.38) saturate(1.1);
}
.site-video__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.45) 0%, rgba(13,13,13,0.15) 40%, rgba(13,13,13,0.88) 85%, #0d0d0d 100%),
    linear-gradient(90deg, rgba(13,13,13,0.28) 0%, transparent 50%);
}

/* ─── TOPBAR ────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.0);
  background: rgba(13,13,13,0.0);
  backdrop-filter: blur(0px);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.topbar.scrolled {
  background: rgba(13,13,13,0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { display: block; }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 140ms, background 140ms;
}
.topnav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

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

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  height: 36px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-outline-light {
  background: transparent;
  color: var(--text);
  border-color: var(--border-md);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.05); }

.btn-primary {
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { opacity: 0.88; }

.btn-primary-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}
.btn-outline-lg:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }

/* ─── HERO ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 14ch;
  margin: 0 auto 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  margin: 0 auto;
  width: fit-content;
}
.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  gap: 3px;
}
.hero-metric-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.hero-metric-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero-metric-sep {
  width: 1px;
  height: 36px;
  background: var(--border-md);
  flex-shrink: 0;
}

/* ─── SCROLL FADE-IN ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
/* Fallback: если JS не сработал — показываем всё */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* ─── TICKER ────────────────────────────────────────── */
.ticker-section {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  padding: 14px 0;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}
.ticker-item .tick-dot {
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SOCIAL PROOF ────────────────────────────────── */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 32px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.sp-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.sp-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.sp-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

/* ─── SECTION BASE ──────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── HOW IT WORKS ──────────────────────────────────── */
.how-section {
  background: var(--lt-bg);
  border-top: 1px solid var(--lt-border);
  padding: 96px 0;
  color: var(--lt-text);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--lt-text);
  margin-bottom: 16px;
}
.section-title.dark { color: var(--text); }

.section-desc {
  font-size: 15px;
  color: var(--lt-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 52px;
}
.section-desc.dark { color: var(--muted); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--lt-border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--lt-border);
}
.step-card {
  background: var(--lt-bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 200ms;
}
.step-card:hover { background: var(--lt-bg-2); }

.step-number {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--lt-bg-2);
  border: 1px solid var(--lt-border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lt-muted);
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--lt-text);
  letter-spacing: -0.02em;
}
.step-desc { font-size: 13px; color: var(--lt-muted); line-height: 1.65; }

/* ─── DEMO SECTION (dark) ───────────────────────────── */
.demo-section {
  background: var(--bg);
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-copy { max-width: 420px; }
.demo-copy .section-title { color: var(--text); }
.demo-copy .section-desc { color: var(--muted); margin-bottom: 32px; }

.demo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.demo-list li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2338bdf8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.demo-list li strong { color: var(--text); font-weight: 500; }

/* Dashboard preview card */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.demo-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.demo-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.demo-card-title {
  margin-left: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--dim);
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-metric {
  background: var(--surface);
  padding: 16px 18px;
}
.demo-metric-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.demo-metric-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.demo-metric-value.accent { color: var(--accent); }

.demo-rows {
  padding: 12px 0;
}
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 120ms;
}
.demo-row:last-child { border-bottom: none; }
.demo-row:hover { background: rgba(255,255,255,0.025); }
.demo-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
}
.demo-row-icon {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: var(--accent-dim);
  display: grid; place-items: center;
  font-size: 10px;
  color: var(--accent);
}
.demo-row-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
}
.badge-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-ok-dark { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-pending { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }

/* ─── FEATURES GRID (light) ─────────────────────────── */
.features-section {
  background: var(--lt-bg);
  padding: 96px 0;
  border-top: 1px solid var(--lt-border);
}
.features-header { margin-bottom: 52px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--lt-bg);
  border: 1px solid var(--lt-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 200ms, border-color 200ms, transform 200ms;
}
.feature-card:hover {
  border-color: #bbf7d0;
  box-shadow: 0 4px 24px rgba(92,220,150,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: grid; place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 18px; height: 18px;
  stroke: #16a34a;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--lt-text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-desc { font-size: 13px; color: var(--lt-muted); line-height: 1.65; }

/* ─── CTA SECTION ───────────────────────────────────── */
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 96px 0;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 12px;
  color: var(--dim);
}

/* ─── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--dim);
  transition: color 140ms;
}
.footer-links a:hover { color: var(--muted); }
.footer-copy {
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-copy { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .section-inner { padding: 0 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
