:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --surface-strong: #0f172a;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --border: #dbe5ef;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --green: #15803d;
  --amber: #b45309;
  --rose: #be123c;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --container: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef4fb 44%, #f8fafc 100%);
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 229, 239, 0.88);
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  font-family: Manrope, Inter, sans-serif;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  width: 100%;
}

.nav-links a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0.45rem 0.62rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1.05rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

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

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

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

.button-dark {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #111827;
}

.hero {
  padding: clamp(44px, 7vw, 82px) 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

.eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 0.42rem 0.62rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.24rem;
  line-height: 1.2;
}

p,
li,
td,
th {
  font-size: 1rem;
  line-height: 1.72;
}

p {
  margin: 0;
}

.lead {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.card-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-media,
.visual-panel,
.mock-screen {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

.hero-media-natural img {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.media-caption {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--muted);
}

.media-caption strong {
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  color: var(--muted-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-dark);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.metric strong {
  display: block;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  padding: clamp(42px, 6vw, 72px) 0;
}

.section-tight {
  padding: 28px 0;
}

.section-header {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.article-card,
.resource-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.card p,
.article-card p,
.resource-card p {
  color: var(--muted);
}

.card-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  text-decoration: underline;
}

.card-image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
}

.product-shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-shot img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #ffffff;
}

.product-shot figcaption {
  border-top: 1px solid var(--border);
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.36rem 0.55rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.pill:hover,
.pill:focus-visible {
  border-color: rgba(37, 99, 235, 0.32);
  color: var(--accent-dark);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: start;
}

.prose,
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.prose {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--accent-dark);
  font-weight: 800;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.sidebar-card strong {
  font-family: Manrope, Inter, sans-serif;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.toc a + a {
  margin-top: 0.55rem;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent-dark);
}

.cta-panel {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  background: #0f172a;
  color: #ffffff;
}

.cta-panel h2,
.cta-panel h3,
.cta-panel p {
  color: #ffffff;
}

.feature-preview {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.preview-title {
  color: var(--text);
  font-weight: 900;
}

.preview-status {
  border-radius: 8px;
  padding: 0.32rem 0.48rem;
  background: rgba(21, 128, 61, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.6fr;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f8fafc;
}

.preview-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.preview-bar {
  height: 0.48rem;
  border-radius: 8px;
  background: var(--accent-soft);
}

.preview-bar strong {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.data-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

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

th {
  background: #eff6ff;
  color: var(--text);
  font-size: 0.9rem;
}

td {
  color: var(--muted);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-row button {
  min-height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-row button[aria-pressed="true"],
.filter-row button:hover,
.filter-row button:focus-visible {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.search-box {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.search-box:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.glossary-card[hidden],
.filter-card[hidden] {
  display: none;
}

.definition {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.footer {
  padding: 28px 0 38px;
  color: var(--muted);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero-grid,
  .content-layout,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero {
    padding-top: 34px;
  }

  .preview-row {
    grid-template-columns: 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr;
  }
}
