:root {
  --m-bg: #0F1117;
  --m-card: #171A23;
  --m-raised: #1B1F2A;
  --m-deep: #12141B;
  --m-text: #E8EAF0;
  --m-muted: #9AA2B4;
  --m-dim: #6F7688;
  --m-line: #262B38;
  --m-line-soft: #1F2430;
  --m-accent: #6C5CE7;
  --m-accent-soft: #8B7CF6;
  --m-accent-deep: #241F3D;
  --m-accent-line: #3A2F66;
  --m-accent-text: #C7BFFB;
  --m-success: #22C55E;
  --m-error: #EF4444;
  --m-warn: #F59E0B;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bg {
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 20px;
}

/* ---------- background glow ---------- */

.bg-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.bg-glow--top {
  background: var(--m-accent);
  top: -220px;
  right: -160px;
}

.bg-glow--bottom {
  background: var(--m-accent-soft);
  bottom: -260px;
  left: -220px;
  opacity: 0.14;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--m-line-soft);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: inline-flex;
  color: var(--m-accent-soft);
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--m-muted);
}

.main-nav a {
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--m-text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn--accent {
  background: var(--m-accent);
  color: var(--m-text);
  box-shadow: 0 8px 24px -10px rgba(108, 92, 231, 0.65);
}

.btn--accent:hover {
  background: var(--m-accent-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--m-text);
  border-color: var(--m-line);
}

.btn--ghost:hover {
  border-color: var(--m-accent-line);
  color: var(--m-accent-text);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 15px;
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--m-dim);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--m-dim);
}

.breadcrumbs a:hover {
  color: var(--m-accent-text);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--m-muted);
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

.section--raised {
  background: linear-gradient(180deg, transparent, rgba(27, 31, 42, 0.5) 12%, rgba(27, 31, 42, 0.5) 88%, transparent);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin: 0 0 36px;
  text-align: left;
  max-width: none;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--m-muted);
  font-size: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--m-accent-text);
  background: var(--m-accent-deep);
  border: 1px solid var(--m-accent-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- hero ---------- */

.hero {
  padding-top: 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 18px;
  color: var(--m-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 13px;
  color: var(--m-dim);
}

/* ---------- chat mockup ---------- */

.chat-mock {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.chat-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--m-line-soft);
  background: var(--m-deep);
}

.chat-mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--m-line);
}

.chat-mock__title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--m-muted);
  font-weight: 500;
}

.chat-mock__body {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg--user {
  flex-direction: row-reverse;
}

.chat-msg__avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--m-raised);
  border: 1px solid var(--m-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--m-muted);
}

.chat-msg__avatar--bot {
  background: var(--m-accent-deep);
  border-color: var(--m-accent-line);
  color: var(--m-accent-text);
}

.chat-msg__bubble {
  background: var(--m-raised);
  border: 1px solid var(--m-line-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--m-text);
  max-width: 320px;
}

.chat-msg--user .chat-msg__bubble {
  background: var(--m-accent-deep);
  border-color: var(--m-accent-line);
  color: var(--m-accent-text);
}

.chat-mock__input {
  margin: 4px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--m-deep);
  border: 1px solid var(--m-line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--m-dim);
}

.chat-mock__send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--m-accent);
  color: var(--m-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ---------- facts tiles ---------- */

.facts {
  padding: 48px 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.tile__num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--m-accent-text);
}

.tile__label {
  font-size: 13px;
  color: var(--m-muted);
}

/* ---------- cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__icon {
  display: inline-flex;
  color: var(--m-accent-soft);
  margin-bottom: 4px;
}

.card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--m-muted);
  font-size: 14px;
}

.code-pill {
  margin-top: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  background: var(--m-deep);
  border: 1px solid var(--m-line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--m-accent-text);
  line-height: 1.5;
}

/* ---------- media block ---------- */

.media-block {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--m-line-soft);
  background: var(--m-card);
}

.media-block img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-block figcaption {
  padding: 16px 22px;
  font-size: 14px;
  color: var(--m-muted);
}

.media-block--side img {
  aspect-ratio: 4 / 5;
}

/* ---------- limits ---------- */

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.limit-card {
  background: var(--m-raised);
  border: 1px solid var(--m-line-soft);
  border-radius: 16px;
  padding: 22px;
}

.limit-card__tag {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  color: var(--m-warn);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.limit-card p {
  color: var(--m-muted);
  font-size: 14px;
}

/* ---------- compare table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--m-line-soft);
  border-radius: 18px;
  background: var(--m-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--m-line-soft);
}

.compare-table thead th {
  color: var(--m-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--m-deep);
}

.compare-table tbody th {
  color: var(--m-text);
  font-weight: 600;
  width: 220px;
}

.compare-table tbody td {
  color: var(--m-muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--m-dim);
}

/* ---------- moment / steps ---------- */

.moment__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0 32px;
  position: relative;
}

.step {
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--m-line);
}

.step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--m-accent-deep);
  border: 1px solid var(--m-accent-line);
  color: var(--m-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step p {
  color: var(--m-muted);
  font-size: 14px;
}

/* ---------- faq ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  background: var(--m-card);
  border: 1px solid var(--m-line-soft);
  border-radius: 14px;
  padding: 4px 20px;
}

.faq__item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--m-accent-soft);
  font-size: 20px;
  font-weight: 400;
  margin-left: 16px;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  color: var(--m-muted);
  font-size: 14px;
  padding-bottom: 18px;
}

/* ---------- cta ---------- */

.cta {
  padding: 40px 0 100px;
}

.cta__panel {
  background: linear-gradient(135deg, var(--m-accent-deep), var(--m-card));
  border: 1px solid var(--m-accent-line);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta__panel h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.01em;
  max-width: 560px;
}

.cta__panel p {
  color: var(--m-muted);
  font-size: 16px;
}

.cta__panel .btn {
  margin-top: 8px;
}

.cta__note {
  font-size: 12.5px;
  color: var(--m-dim);
  margin-top: 8px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--m-line-soft);
  background: var(--m-deep);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

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

.brand--footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer__age {
  font-size: 12px;
  color: var(--m-dim);
  border: 1px solid var(--m-line);
  border-radius: 6px;
  padding: 2px 8px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--m-muted);
}

.footer__links a:hover {
  color: var(--m-accent-text);
}

.footer__disclaimer {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--m-dim);
  line-height: 1.6;
  max-width: 880px;
  border-top: 1px solid var(--m-line-soft);
  padding-top: 20px;
  margin-top: 8px;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .moment__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .tiles,
  .cards-3,
  .limits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }

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

@media (max-width: 620px) {
  .section {
    padding: 64px 0;
  }

  .tiles,
  .cards-3,
  .limits-grid {
    grid-template-columns: 1fr;
  }

  .chat-msg__bubble {
    max-width: 220px;
  }

  .cta__panel {
    padding: 44px 24px;
  }
}
