:root {
  --bg: #f6f9fc;
  --bg-soft: #eef5ff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #102033;
  --muted: #526173;
  --soft: #24364f;
  --primary: #1458e8;
  --primary-dark: #083b9a;
  --primary-soft: #e8f0ff;
  --accent: #00a3ff;
  --accent-soft: #e6f7ff;
  --success: #0e9f6e;
  --success-soft: #e8f8f1;
  --warning: #b7791f;
  --warning-soft: #fff7e6;
  --border: #dce7f3;
  --border-strong: #b8cbe3;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 88, 232, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(0, 163, 255, 0.10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 42%, #eef5ff 100%);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(20, 88, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 88, 232, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 64%);
}

a { color: inherit; }

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 8px 18px rgba(20, 88, 232, 0.16));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 640;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--primary-soft);
  outline: none;
}

.nav a:focus-visible,
.button:focus-visible,
.footer-link:focus-visible,
.table-wrap:focus-visible {
  box-shadow: 0 0 0 4px rgba(20, 88, 232, 0.16);
}

main { padding-top: 46px; }

main > * + * { margin-top: 26px; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.panel,
.table-wrap,
.disclaimer-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.panel {
  padding: clamp(28px, 5vw, 54px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(232, 240, 255, 0.92) 58%, rgba(230, 247, 255, 0.92) 100%),
    var(--bg-card);
}

.hero-panel::after {
  position: absolute;
  inset: auto -8% -36% auto;
  width: 440px;
  height: 440px;
  content: "";
  background: radial-gradient(circle, rgba(20, 88, 232, 0.16), rgba(0, 163, 255, 0.08) 44%, transparent 68%);
  pointer-events: none;
}

.hero-panel > * { position: relative; z-index: 1; }

.eyebrow,
.section-kicker {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid #c9d9ff;
  background: var(--primary-soft);
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: none;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.lead,
.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.7;
}

.section-intro {
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(20, 88, 232, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button-secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: var(--border-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--primary-soft);
}

.card-grid,
.performance-grid,
.version-list {
  display: grid;
  gap: 16px;
}

.stacked-card-grid { margin-top: 16px; }

.card-grid,
.performance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-stack {
  display: grid;
  gap: 26px;
}

.card,
.performance-card,
.version-card,
.methodology-card,
.subscription-card,
.result-section,
.data-state,
.flow-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
  border-radius: 22px;
  padding: 22px;
}

.card p,
.version-card p { margin-bottom: 0; }

.card p,
.performance-card span,
td,
.footer-note,
.subscription-card p {
  color: var(--muted);
}

.number-badge,
.flow-card span,
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 12px;
  font-weight: 840;
  box-shadow: 0 8px 18px rgba(20, 88, 232, 0.18);
}

.model-flow,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.compact-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-card {
  position: relative;
  min-height: 158px;
  background:
    linear-gradient(180deg, rgba(232, 240, 255, 0.72), rgba(255, 255, 255, 0.96)),
    var(--bg-card);
}

.flow-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 1;
  width: 22px;
  height: 22px;
  content: "→";
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.08);
}

.flow-card p,
.methodology-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.methodology-card {
  min-height: 100%;
}

.compact-grid .methodology-card {
  padding: 20px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-list .label-pill {
  margin-bottom: 0;
}

.quality-grid,
.methodology-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.methodology-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.compact-list li::marker {
  color: var(--primary);
}

.compact-note p {
  font-size: 16px;
  line-height: 1.6;
}

.table-wrap {
  overflow: hidden;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

.highlight-row td {
  border-color: #bcebd7;
  background: var(--success-soft);
}

.data-stack {
  display: grid;
  gap: 18px;
}

.result-section .table-wrap {
  margin-top: 16px;
  box-shadow: none;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.result-heading h3 {
  margin-bottom: 0;
}

.data-state {
  color: #7a5516;
  font-weight: 760;
  background: var(--warning-soft);
  border-color: #f2d394;
}

.metadata-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.metadata-list div {
  display: grid;
  gap: 4px;
}

.metadata-list dt {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metadata-list dd {
  margin: 0;
  color: var(--muted);
}

code {
  color: var(--soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.value-pill,
.label-pill,
.version-tag {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #c9d9ff;
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 760;
  white-space: nowrap;
}

.performance-card strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.055em;
}

.performance-card small {
  display: block;
  color: #6d4d14;
  line-height: 1.5;
}

.version-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
}

.version-tag {
  justify-content: center;
}

.label-pill {
  margin-bottom: 16px;
  color: var(--success);
  border-color: #bcebd7;
  background: var(--success-soft);
}

.sample-label,
.data-fallback {
  color: #6d4d14;
  font-weight: 760;
}

.data-fallback:empty { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.disclaimer-card {
  padding: clamp(24px, 4vw, 36px);
  border-color: #f2d394;
  background: var(--warning-soft);
}

.disclaimer-card .section-kicker,
.disclaimer-card h2 {
  color: #5f4517;
}

.disclaimer-card p,
.disclaimer-card .compact-list {
  max-width: 960px;
  margin-bottom: 0;
  color: #5f4517;
  font-size: 17px;
  line-height: 1.75;
}

.site-footer {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.05);
}

.footer-note {
  max-width: 900px;
  margin: 8px auto 0;
  line-height: 1.6;
}

.footer-link {
  color: var(--primary-dark);
  font-weight: 760;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.subscription-card {
  background: var(--bg-card);
}

.two-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.trust-list { color: #5f4517; }

.pricing-grid { align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.price-card .button { margin-top: auto; }

.highlighted-card {
  border-color: #9db9ff;
  border-top: 6px solid var(--primary);
  background:
    linear-gradient(180deg, rgba(232, 240, 255, 0.72), rgba(255, 255, 255, 0.98) 42%),
    var(--bg-card);
  box-shadow: 0 20px 45px rgba(20, 88, 232, 0.10);
}

.disclaimer-card p + p,
.disclaimer-card ul + p { margin-top: 16px; }

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    border-radius: 26px;
    flex-direction: column;
  }

  .nav { justify-content: flex-start; }

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

  .card-grid,
  .performance-grid,
  .quality-grid,
  .methodology-overview { grid-template-columns: 1fr 1fr; }

  .model-flow,
  .compact-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .flow-card:nth-child(3n)::after { display: none; }

  .two-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .topbar { position: static; }

  .nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  main { padding-top: 30px; }

  h1 { font-size: clamp(40px, 14vw, 56px); }

  .actions,
  .button { width: 100%; }

  .button { min-height: 48px; }

  .card-grid,
  .performance-grid,
  .quality-grid,
  .methodology-overview,
  .model-flow,
  .compact-flow { grid-template-columns: 1fr; }

  .flow-card::after,
  .flow-card:nth-child(3n)::after { display: none; }

  .table-wrap { overflow-x: auto; }

  .version-card { grid-template-columns: 1fr; }
}

.subscription-card {
  border: 1px solid rgba(118, 199, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--bg-card);
  border-radius: 22px;
  padding: 24px;
}

.subscription-card p { color: var(--muted); }

.two-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.trust-list { color: #f3dfbd; }

.pricing-grid { align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.price-card .button { margin-top: auto; }

.highlighted-card {
  border-color: rgba(116, 240, 189, 0.35);
  box-shadow: 0 24px 70px rgba(16, 221, 255, 0.12);
}

.disclaimer-card p + p,
.disclaimer-card ul + p { margin-top: 16px; }

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