:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-elev: rgba(11, 20, 38, 0.72);
  --card: rgba(15, 23, 42, 0.88);
  --card-strong: rgba(18, 31, 57, 0.96);
  --text: #e5eefc;
  --muted: #9fb0cb;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(96, 165, 250, 0.28);
  --blue: #38bdf8;
  --blue-2: #60a5fa;
  --cyan: #67e8f9;
  --gold: #f59e0b;
  --shadow: 0 12px 28px rgba(2, 8, 23, 0.24);
  --radius: 24px;
  --radius-lg: 34px;
  --shell: 1160px;
  --focus: 0 0 0 3px rgba(56, 189, 248, 0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #08111f;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #ffffff; }
img { display: block; max-width: 100%; height: auto; }

.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 99;
  padding: 10px 14px; border-radius: 999px; background: #fff; color: #000; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 14, 28, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06111f; font-weight: 900; box-shadow: var(--shadow);
}
.brand-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--muted); font-size: 12px; font-weight: 500; }

.nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.nav a, .mobile-menu summary {
  color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid transparent;
  background: rgba(8, 17, 31, 0.45); transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.nav a[aria-current="page"], .nav a:hover, .mobile-menu summary:hover {
  color: #fff; border-color: var(--line-strong); background: rgba(11, 20, 38, 0.95);
}
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.nav-menu { display: grid; gap: 8px; padding-top: 12px; }
.nav-menu a { justify-content: flex-start; }

.main { padding: 30px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

.hero, .page-hero, .section, .section-card { margin-bottom: 28px; }
.hero {
  display: grid; grid-template-columns: 1.25fr .95fr; gap: 22px; align-items: stretch;
  padding: 18px 0 0;
}
.hero-copy, .hero-panel, .card, .section-card, .media-card, .step-card, .note, details, table, .page-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-copy, .hero-panel, .section-card, .page-hero { padding: 28px; }
.hero-copy h1, .page-title, h2 { margin: 0; line-height: 1.06; letter-spacing: -0.04em; }
.hero-copy h1 { font-size: clamp(2.7rem, 5vw, 4.9rem); max-width: 12ch; }
.page-title { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 13ch; }
.lede { color: var(--muted); font-size: 1.07rem; max-width: 68ch; }
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; color: var(--cyan); margin-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 700;
}
.button.primary { color: #05111f; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.button.secondary { color: #e5eefc; background: rgba(15, 23, 42, 0.9); border-color: var(--line-strong); }
.button.ghost { color: var(--muted); border-color: var(--line); background: rgba(8, 17, 31, 0.45); }
.button:hover { transform: translateY(-1px); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill, .badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill { border: 1px solid var(--line); background: rgba(8, 17, 31, 0.5); color: #dbeafe; }
.pill.muted { color: var(--muted); }
.badge.blue { background: rgba(56, 189, 248, 0.18); color: #d8f2ff; }
.badge.cyan { background: rgba(103, 232, 249, 0.16); color: #e6feff; }
.badge.gold { background: rgba(245, 158, 11, 0.16); color: #fff3d2; }

.hero-panel { display: grid; gap: 18px; align-content: start; }
.panel-head { display: grid; gap: 6px; }
.panel-head strong { font-size: 1.18rem; }
.stack { display: grid; gap: 12px; }
.card, .step-card, .media-card, .note, details { padding: 20px; }
.card h3, .step-card h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.card p, .step-card p, .media-card figcaption, .note, details p { margin: 0; color: var(--muted); }
.card-actions { margin-top: 14px; }
.grid-2, .grid-3, .workflow-grid, .stat-grid, .media-grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card {
  padding: 18px; border-radius: 24px; border: 1px solid var(--line); background: rgba(8, 17, 31, 0.42);
}
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 6px; font-size: 1.06rem; letter-spacing: -0.02em; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.section-head p, .small { color: var(--muted); }
.small { font-size: 14px; }

.fact-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact-list li {
  padding: 14px 16px 14px 42px; border-radius: 18px; border: 1px solid var(--line); background: rgba(8, 17, 31, 0.42); position: relative;
}
.fact-list li::before { content: ''; position: absolute; left: 16px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.workflow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-card { position: relative; overflow: hidden; }
.step-number { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--cyan); margin-bottom: 12px; }
.step-card h3 { font-size: 1.05rem; }

.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-card { padding: 14px; overflow: hidden; }
.media-card img { border-radius: 18px; border: 1px solid var(--line); background: #06111f; }
.media-card figcaption { margin-top: 10px; font-size: 14px; }

.table-wrap { overflow-x: auto; border-radius: 24px; }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #dbeafe; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; background: rgba(8, 17, 31, 0.6); }
td { color: var(--text); }
tbody tr:hover { background: rgba(56, 189, 248, 0.05); }

.faq { display: grid; gap: 12px; }
details summary { cursor: pointer; list-style: none; font-weight: 700; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 10px; }

.footer { border-top: 1px solid var(--line); background: rgba(3, 8, 20, 0.82); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; padding: 30px 0 36px; }
.disclaimer { color: var(--muted); max-width: 44ch; }

.note { background: rgba(8, 17, 31, 0.58); }
.page-hero { margin-top: 8px; }

.product-hero.blue .button.primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.product-hero.cyan .button.primary { background: linear-gradient(135deg, var(--cyan), #93c5fd); }
.product-hero .hero-copy h1 { max-width: 14ch; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .workflow-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; }
  .nav { display: none; }
  .mobile-menu { display: block; width: 100%; }
  .hero-copy, .hero-panel, .section-card, .page-hero { padding: 22px; }
  .grid-2, .grid-3, .workflow-grid, .media-grid, .fact-list, .stat-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 560px) {
  .shell { width: min(var(--shell), calc(100% - 24px)); }
  .main { padding-top: 22px; padding-bottom: 52px; }
  .hero-copy h1, .page-title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-actions, .hero-pills { gap: 8px; }
  .button { width: 100%; }
  .hero-actions { display: grid; }
  .card, .step-card, .media-card, .note, details { padding: 16px; }
  th, td { padding: 14px 14px; }
}

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 14px; }
