:root {
  --bg: #0f172a; --panel: #1e293b; --panel-2: #273449; --border: #334155;
  --text: #e2e8f0; --muted: #94a3b8; --brand: #38bdf8; --brand-2: #0ea5e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); text-align: center; margin-bottom: 32px; }

.brand { font-weight: 700; font-size: 20px; color: var(--text); }
.brand span { color: var(--brand); }
.brand:hover { text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text); background: var(--panel-2);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #04263a; }
.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 24px; font-size: 17px; }

.nav {
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }

.hero { padding: 96px 0 72px; text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 70%); }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

.section { padding: 80px 0; }
.section.alt { background: #111c33; border-block: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.card h3 { color: var(--brand); font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips li { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 8px 16px; }

.plans { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.plan { width: 300px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h3 { color: var(--text); }
.price { font-size: 40px; font-weight: 700; margin-bottom: 8px; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.plan .btn { text-align: center; }

details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta { padding: 88px 0; text-align: center; }
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; }
.footer p { margin: 0; font-size: 14px; }

.doc { padding: 64px 0; }
.doc h1 { font-size: 36px; }
.doc h2 { text-align: left; font-size: 22px; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-cta .ghost { display: none; }
  .hero { padding: 64px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Brand: ML icon + name (dark theme) */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.footer .brand img { width: 24px; height: 24px; }
/* Brand feature/channel icons keep their own proportions. */
.ficon { display: block; height: 44px; width: auto; max-width: 64px; object-fit: contain; margin-bottom: 14px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; }
.chips li img { height: 24px; width: auto; max-width: 36px; object-fit: contain; }
.brand > span { color: var(--text); }
.brand > span > span { color: var(--brand); }
/* Wordmark logo */
.brand img.wordmark { width: auto; height: 44px; border-radius: 0; }
.footer .brand img.wordmark { width: auto; height: 34px; }
