:root {
  --ml-bg: #0f1720;
  --ml-surface: #172331;
  --ml-surface-2: #f4f7fa;
  --ml-text: #172331;
  --ml-text-light: #f7fafc;
  --ml-muted: #5f6f7f;
  --ml-border: #d8e0e8;
  --ml-accent: #d2872c;
  --ml-accent-dark: #b56e1a;
  --ml-radius: 18px;
  --ml-shadow: 0 18px 60px rgba(15, 23, 32, 0.08);
  --ml-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ml-text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--ml-container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,35,49,0.08);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.menu, .footer-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.menu a, .footer-menu a { color: var(--ml-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ml-accent);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--ml-accent);
  transition: .2s ease;
}
.btn:hover { background: var(--ml-accent-dark); border-color: var(--ml-accent-dark); }
.btn--ghost,
.btn--outline {
  background: transparent;
  color: var(--ml-text);
  border-color: rgba(23,35,49,0.18);
}
.btn--ghost:hover,
.btn--outline:hover { background: rgba(23,35,49,0.05); }
.btn--small { min-height: 42px; padding: 0 16px; }

.hero {
  padding: 88px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(210,135,44,0.12);
  color: var(--ml-accent-dark);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero h1,
.section h1,
.section h2 {
  margin: 0 0 16px;
  line-height: 1.08;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); max-width: 12ch; }
.hero__text { max-width: 60ch; font-size: 1.1rem; color: var(--ml-muted); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
}
.hero__badges li {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ml-border);
}
.hero-card,
.card,
.metric,
.post-card,
.cta-box,
.steps-list > div {
  background: #fff;
  border: 1px solid rgba(23,35,49,0.08);
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
}
.hero-card { padding: 28px; }
.hero-card ul { padding-left: 18px; margin: 14px 0 0; }

.section { padding: 80px 0; }
.section--alt { background: var(--ml-surface-2); }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.cards-grid,
.metrics-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.card { padding: 28px; }
.metrics-grid { grid-template-columns: repeat(3, 1fr); }
.metric { padding: 28px; text-align: center; }
.metric strong { display: block; font-size: 2.2rem; }
.metric span { color: var(--ml-muted); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.steps-list {
  display: grid;
  gap: 14px;
}
.steps-list > div { padding: 18px 20px; }

.cta-section { padding-top: 0; }
.cta-box {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--ml-bg), #243546);
  color: var(--ml-text-light);
}
.cta-box .eyebrow { background: rgba(255,255,255,0.12); color: #fff; }
.cta-box p { color: rgba(255,255,255,0.8); }
.cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-box .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.cta-box .btn--ghost:hover { background: rgba(255,255,255,0.08); }

.narrow-content { width: min(calc(100% - 32px), 820px); margin: 0 auto; }
.content-grid { display: grid; gap: 28px; }
.post-card { padding: 28px; margin-bottom: 20px; }
.post-meta { color: var(--ml-muted); font-size: .95rem; }
.entry-content > *:first-child { margin-top: 0; }
.text-center { text-align: center; }

.site-footer {
  margin-top: 50px;
  background: var(--ml-bg);
  color: var(--ml-text-light);
  padding: 56px 0 24px;
}
.site-footer a { color: var(--ml-text-light); }
.footer-grid { grid-template-columns: 1.2fr .9fr .9fr; }
.footer-widget__title { margin-top: 0; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .menu, .footer-menu {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 54px; }
  .section { padding: 64px 0; }
  .hero h1 { max-width: none; }
  .btn { width: 100%; }
  .hero__actions,
  .cta-box__actions { width: 100%; }
}
