:root {
  --ink: #0a0c10;
  --ink-2: #1a1d24;
  --bg-dark: #0a0c10;
  --bg-dark-2: #101319;
  --bg-light: #ffffff;
  --bg-tint: #f5f5f6;
  --text-dark: #0a0c10;
  --text-muted: #5a6069;
  --text-on-dark: #f5f7f8;
  --text-on-dark-muted: #9aa2ab;

  /* Brand accent colors — sampled from the LEVEL logo mark */
  --brand-pink: #f62459;
  --brand-blue: #005baf;
  --brand-purple: #8e44ad;
  --brand-yellow: #ffcb05;
  --brand-green: #009f00;

  --radius: 20px;
  --container: 1160px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 19px; margin-bottom: 8px; }

p { line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,12,16,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.nav__divider {
  width: 1px;
  height: 18px;
  background: rgba(10,12,16,0.15);
}
.nav__product {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.nav__cta { font-size: 14px; padding: 9px 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e9eb; }

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(10,12,16,0.15);
}
.btn--full { width: 100%; }

/* Hero */
.hero {
  background: radial-gradient(ellipse at 15% -10%, #1b1e26 0%, var(--bg-dark) 55%);
  color: var(--text-on-dark);
  padding: 150px 0 100px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero__subtitle {
  color: var(--text-on-dark-muted);
  font-size: 18px;
  margin-top: 20px;
  max-width: 520px;
}
.hero__points {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-size: 15px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-blue);
}
.hero__points li:nth-child(2) .dot { background: var(--brand-pink); }
.hero__points li:nth-child(3) .dot { background: var(--brand-yellow); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--ghost { color: var(--text-on-dark); border-color: rgba(255,255,255,0.2); }

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #1c1f27, #0d1114);
  border: 1px solid rgba(255,255,255,0.08);
}
.video-frame img,
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(10,12,16,0.6);
  backdrop-filter: blur(6px);
  color: var(--text-on-dark);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-frame__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-pink);
  display: inline-block;
}

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.play-btn--overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Sections */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background: var(--bg-dark-2);
  color: var(--text-on-dark);
}
.section--dark h2, .section--dark .section__lead { color: var(--text-on-dark); }
.section--dark .section__lead { color: var(--text-on-dark-muted); }

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

.section__lead {
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 48px;
}

/* Cards */
.cards { display: grid; gap: 24px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--6 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: var(--bg-light);
  border: 1px solid rgba(10,12,16,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-blue);
}
.card:nth-child(5n+2)::before { background: var(--brand-pink); }
.card:nth-child(5n+3)::before { background: var(--brand-yellow); }
.card:nth-child(5n+4)::before { background: var(--brand-purple); }
.card:nth-child(5n+5)::before { background: var(--brand-green); }

.section--tint .card { background: var(--bg-light); }
.card__icon { font-size: 28px; margin-bottom: 14px; }
.card p { font-size: 14.5px; }

/* Examples */
.examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.example-card .video-frame { margin-bottom: 20px; }
.example-card p { font-size: 15px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  position: relative;
  background: var(--bg-light);
  border: 1px solid rgba(10,12,16,0.1);
  border-radius: 100px;
  padding: 12px 20px 12px 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.tag::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.tag:nth-child(5n+2)::before { background: var(--brand-pink); }
.tag:nth-child(5n+3)::before { background: var(--brand-yellow); }
.tag:nth-child(5n+4)::before { background: var(--brand-purple); }
.tag:nth-child(5n+5)::before { background: var(--brand-green); }

/* Cases */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(10,12,16,0.08);
}
.case-card__tag {
  display: inline-block;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card:nth-child(2) .case-card__tag { color: var(--brand-pink); }
.case-card p { font-size: 15px; margin-top: 8px; }

/* CTA */
.cta { max-width: 620px; text-align: center; margin: 0 auto; }
.cta h2 { margin-bottom: 12px; }
.cta__form { margin-top: 44px; text-align: left; }

.yandex-form-wrap iframe {
  display: block;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
}

/* Footer */
.footer {
  background: var(--bg-dark-2);
  color: var(--text-on-dark-muted);
  padding: 28px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Reveal animation (progressive enhancement — visible by default, animated only once JS confirms it can drive the transition) */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--6 { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .hero { padding: 120px 0 70px; }
  .cards--4 { grid-template-columns: 1fr; }
  .cards--6 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .nav__product { display: none; }
  .nav__cta { padding: 9px 14px; font-size: 13px; }
}
