/* ===== Moment design tokens ===== */
: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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--m-accent);
  color: var(--m-text);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m-accent-text);
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p {
  color: var(--m-muted);
  margin: 0 0 12px;
}

.lead {
  font-size: 18px;
  color: var(--m-text);
  max-width: 46ch;
}

.section-lead {
  max-width: 56ch;
  margin-bottom: 36px;
}

.glass {
  background: rgba(23, 26, 35, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--m-line);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.btn-primary {
  background: var(--m-accent);
  color: var(--m-text);
}
.btn-primary:hover {
  background: var(--m-accent-soft);
}
.btn-ghost {
  background: transparent;
  border-color: var(--m-line);
  color: var(--m-text);
}
.btn-ghost:hover {
  border-color: var(--m-accent-line);
  background: var(--m-accent-deep);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--m-text);
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 12px var(--m-accent-soft);
}
.header-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--m-muted);
}
.header-nav a {
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--m-text);
}
.header-nav a.is-active {
  color: var(--m-accent-text);
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding-top: 18px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--m-dim);
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--m-dim);
}
.breadcrumbs a:hover {
  color: var(--m-muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--m-line);
}
.breadcrumbs li {
  display: flex;
  gap: 8px;
}
.breadcrumbs li[aria-current="page"] {
  color: var(--m-muted);
}

/* ===== Hero ===== */
.hero {
  padding-block: 56px 32px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--m-dim);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-bg-image {
  position: absolute;
  inset: -40px -20px;
  width: calc(100% + 40px);
  height: calc(100% + 80px);
  object-fit: cover;
  border-radius: 28px;
  opacity: 0.55;
  filter: saturate(1.1);
  z-index: 0;
}

/* Chat mockup */
.chat-mock {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.chat-mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--m-line-soft);
  background: rgba(18, 20, 27, 0.7);
}
.chat-mock-tabs {
  display: flex;
  gap: 6px;
}
.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--m-line);
}
.chat-mock-title {
  font-size: 13px;
  color: var(--m-dim);
  font-weight: 600;
}
.chat-mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg-user {
  flex-direction: row-reverse;
}
.msg-user .bubble {
  background: var(--m-accent);
  color: var(--m-text);
  border-bottom-right-radius: 4px;
}
.msg-bot .bubble {
  background: var(--m-raised);
  border: 1px solid var(--m-line);
  border-bottom-left-radius: 4px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-user {
  background: var(--m-line);
  color: var(--m-text);
}
.avatar-bot {
  background: var(--m-accent-deep);
  color: var(--m-accent-text);
  border: 1px solid var(--m-accent-line);
}
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 260px;
  line-height: 1.5;
}
.bubble-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px;
}
.bubble-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-dim);
  animation: typing 1.2s infinite ease-in-out;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--m-line-soft);
  background: rgba(18, 20, 27, 0.7);
}
.chat-input-placeholder {
  font-size: 13px;
  color: var(--m-dim);
}
.chat-send {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--m-accent);
  color: var(--m-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 360px;
  }
}

/* ===== Sections ===== */
.section {
  padding-block: 64px;
}
.section-alt {
  background: var(--m-deep);
  border-top: 1px solid var(--m-line-soft);
  border-bottom: 1px solid var(--m-line-soft);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 16px;
  padding: 24px;
}
.card-icon {
  color: var(--m-accent-soft);
  margin-bottom: 16px;
}
.terminal {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--m-deep);
  border: 1px solid var(--m-line-soft);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--m-accent-text);
}

@media (max-width: 880px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Table ===== */
.table-wrap {
  border-radius: 16px;
  overflow-x: auto;
  padding: 8px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--m-line-soft);
}
.compare-table th {
  color: var(--m-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.compare-table td {
  color: var(--m-text);
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.pill-accent {
  background: var(--m-accent-deep);
  color: var(--m-accent-text);
  border: 1px solid var(--m-accent-line);
}
.table-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--m-dim);
}

/* ===== Limits ===== */
.limits-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.limits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.limits-list li {
  padding: 16px 18px;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-left: 3px solid var(--m-warn);
  border-radius: 10px;
  color: var(--m-muted);
  font-size: 14.5px;
}
.limits-list strong {
  color: var(--m-text);
}
.limits-visual img {
  border-radius: 20px;
  border: 1px solid var(--m-line);
}

@media (max-width: 880px) {
  .limits-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 56px;
  position: relative;
}
.step {
  position: relative;
  padding: 0 20px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -10%;
  width: 20%;
  height: 1px;
  background: var(--m-line);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--m-accent-deep);
  border: 1px solid var(--m-accent-line);
  color: var(--m-accent-text);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .step::after {
    display: none;
  }
}

/* ===== Facts ===== */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact-tile {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}
.fact-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--m-accent-soft);
  margin-bottom: 8px;
}
.fact-label {
  font-size: 13px;
  color: var(--m-muted);
}

@media (max-width: 880px) {
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Network block ===== */
.network-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.network-visual img {
  border-radius: 20px;
  border: 1px solid var(--m-line);
}

@media (max-width: 880px) {
  .network-grid {
    grid-template-columns: 1fr;
  }
  .network-grid .network-visual {
    order: -1;
  }
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--m-text);
  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;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14.5px;
}

/* ===== CTA ===== */
.cta-section {
  padding-block: 32px 80px;
}
.cta-box {
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-box h2 {
  max-width: 28ch;
}
.cta-box p {
  max-width: 44ch;
}
.cta-fine {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--m-dim);
  max-width: 50ch;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--m-line-soft);
  padding-block: 40px;
  background: var(--m-deep);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--m-muted);
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--m-text);
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--m-dim);
  max-width: 820px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 12px;
  color: var(--m-dim);
  margin-top: 16px;
  margin-bottom: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bubble-typing span {
    animation: none;
  }
}
