/* БиТА — landing */
:root {
  --ink: #07111f;
  --navy: #0c1f38;
  --steel: #1a3a5c;
  --blue: #2a6fd6;
  --blue-bright: #3d8bfd;
  --teal: #2ec4b6;
  --teal-dim: #1a9e93;
  --sand: #e8eef6;
  --mist: #f4f7fb;
  --paper: #fafbfd;
  --muted: #5a6f86;
  --line: rgba(12, 31, 56, 0.1);
  --shadow: 0 24px 60px rgba(7, 17, 31, 0.18);
  --radius: 4px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
.btn {
  font-family: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(46, 196, 182, 0.35);
}

.btn-primary:hover {
  background: #3ad4c5;
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--steel);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 17, 31, 0.92) 0%, rgba(12, 31, 56, 0.78) 42%, rgba(12, 31, 56, 0.35) 70%, rgba(7, 17, 31, 0.55) 100%),
    linear-gradient(to top, rgba(7, 17, 31, 0.75) 0%, transparent 45%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 7rem 0 4.5rem;
  max-width: 34rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  animation: rise 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1rem;
  max-width: 22ch;
  animation: rise 0.9s 0.12s ease both;
}

.hero-lead {
  margin: 0 0 2rem;
  color: rgba(232, 238, 246, 0.88);
  font-size: 1.05rem;
  max-width: 36ch;
  animation: rise 0.9s 0.22s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.32s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 0.65rem;
}

/* —— Features —— */
.features {
  background: var(--mist);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 4.5rem;
}

.feature-row.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-visual:hover img {
  transform: scale(1.04);
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.feature-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 1px;
}

/* —— Analytics / charts —— */
.analytics {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(46, 196, 182, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(42, 111, 214, 0.1), transparent 50%),
    var(--paper);
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.chart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.chart-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.chart-panel .hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.chart-wrap.short {
  height: 220px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.kpi.visible {
  opacity: 1;
  transform: none;
}

.kpi .label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.kpi .value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.kpi .delta {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dim);
}

.kpi.warn .delta {
  color: #c45c26;
}

/* —— How it works —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(42, 111, 214, 0.18);
  display: block;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Pricing —— */
.pricing {
  background: var(--navy);
  color: #fff;
}

.pricing .section-head h2 {
  color: #fff;
}

.pricing .section-head p {
  color: rgba(232, 238, 246, 0.7);
}

.pricing .eyebrow {
  color: var(--teal);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price.featured {
  background: linear-gradient(160deg, rgba(46, 196, 182, 0.16), rgba(42, 111, 214, 0.12));
  border-color: rgba(46, 196, 182, 0.45);
}

.price h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.price .amount {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.price .amount span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.price .desc {
  margin: 0 0 1.25rem;
  color: rgba(232, 238, 246, 0.65);
  font-size: 0.9rem;
}

.price ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.price ul li::before {
  content: "— ";
  color: var(--teal);
}

.price .btn {
  width: 100%;
}

/* —— CTA —— */
.final-cta {
  text-align: center;
  background:
    linear-gradient(135deg, var(--mist), #fff 40%, rgba(46, 196, 182, 0.08));
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.final-cta p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
}

.final-cta .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .logo {
  color: var(--navy);
  font-size: 1.05rem;
}

/* —— Reveal helper —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .brand-mark {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }
}
