/* ==========================================================================
   Quantum Lake Labs — Stylesheet
   Design system: deep-ink + cobalt/teal + single amber accent.
   Type system: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b1220;
  --ink-2: #131c30;
  --ink-3: #1b2740;
  --paper: #f5f6f8;
  --paper-alt: #eef1f6;
  --surface: #ffffff;
  --line: #e2e6ee;
  --line-dark: #263352;

  --cobalt: #1f4fa3;
  --cobalt-2: #2e63c4;
  --cobalt-soft: #e8eefb;
  --teal: #0e9c8c;
  --teal-soft: #e2f5f2;
  --amber: #e8a33d;
  --amber-2: #f3b75c;

  --slate: #4b5768;
  --slate-600: #5b6779;
  --slate-900: #101728;
  --on-dark: #e7ecf5;
  --on-dark-muted: #93a0b8;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 23, 40, .06), 0 1px 1px rgba(16, 23, 40, .04);
  --shadow-md: 0 8px 24px rgba(16, 23, 40, .08);
  --shadow-lg: 0 20px 48px rgba(16, 23, 40, .16);

  --header-h: 76px;
  --container-w: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--slate-900);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
}

p { color: var(--slate); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--space-12);
}

.section--tight { padding-block: var(--space-10); }
.section--muted { background: var(--paper-alt); }
.section--surface { background: var(--surface); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark p { color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section-head--wide { max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

.section--dark .eyebrow { color: var(--amber-2); }
.section--dark .eyebrow::before { background: var(--amber-2); }

.section-title {
  font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  margin-bottom: var(--space-3);
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
}

.section--dark .section-intro { color: var(--on-dark-muted); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(232, 163, 61, .35);
}
.btn-primary:hover {
  background: var(--amber-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 163, 61, .42);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(231, 236, 245, .35);
  color: var(--on-dark);
}
.btn-secondary:hover {
  background: rgba(231, 236, 245, .1);
  border-color: rgba(231, 236, 245, .6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--slate-900);
}
.btn-outline:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  transform: translateY(-2px);
}

.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }

.btn-ghost {
  padding: 0;
  font-weight: 600;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-ghost svg { width: 15px; height: 15px; transition: transform .2s ease; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(231, 236, 245, .08);
}

.nav {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.brand-mark { color: var(--amber-2); width: 30px; height: 30px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  font-weight: 400;
  color: var(--on-dark-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  background: var(--ink-2);
  border-bottom: 1px solid rgba(231, 236, 245, .1);
  padding: 1.25rem 1.5rem 1.75rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 999;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--on-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: .35rem 0;
}
.nav-mobile .btn-primary { align-self: flex-start; margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 4.5rem) 1.5rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(60% 55% at 82% 8%, rgba(31, 79, 163, .35), transparent 60%),
    radial-gradient(45% 45% at 8% 95%, rgba(14, 156, 140, .18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(231, 236, 245, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(231, 236, 245, .045) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: var(--container-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--space-8);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.4rem);
  color: #fff;
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-2);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--on-dark-muted);
  max-width: 560px;
  margin-bottom: var(--space-4);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(231, 236, 245, .12);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 500;
}

.hero-stat span {
  font-size: .82rem;
  color: var(--on-dark-muted);
}

/* Record card stack — signature visual */
.hero-visual {
  position: relative;
  height: 420px;
}

.record-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.record-card {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  width: min(360px, 100%);
  border-radius: var(--radius-lg);
}

.record-card--back {
  top: 46px;
  background: var(--ink-3);
  border: 1px solid rgba(231, 236, 245, .1);
  height: 300px;
  transform: rotate(-6deg);
}

.record-card--mid {
  top: 26px;
  background: linear-gradient(160deg, #182543, var(--ink-3));
  border: 1px solid rgba(231, 236, 245, .12);
  height: 300px;
  transform: rotate(3deg);
}

.record-card--front {
  top: 0;
  background: var(--surface);
  color: var(--slate-900);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.rc-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.rc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.rc-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--slate-600);
}

.rc-company {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.2rem;
}

.rc-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.rc-name { font-weight: 700; font-size: 1.02rem; }
.rc-meta { font-size: .82rem; color: var(--slate); }

.rc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 1rem;
}

.rc-fields dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: .2rem;
}

.rc-fields dd { font-size: .86rem; font-weight: 600; }

.rc-footer {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--teal);
  font-weight: 500;
}
.rc-footer svg { width: 14px; height: 14px; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px var(--teal-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-8);
  align-items: center;
}

.about-copy p { margin-bottom: 1.1rem; font-size: 1.02rem; line-height: 1.75; }
.about-copy p:last-child { margin-bottom: 0; }

.verify-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.verify-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.verify-card__head h3 { font-size: 1.05rem; }

.verify-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 100%, var(--line) 0);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.verify-ring span {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.verify-ring svg { width: 18px; height: 18px; }

.verify-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate-900);
}
.verify-list li svg {
  width: 18px; height: 18px;
  color: var(--teal);
  flex: none;
}

/* ---------- Why-us cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

.why-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.why-card p { font-size: .92rem; line-height: 1.6; }

/* ---------- Data schema section ---------- */
.data-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}

.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: var(--space-3) 0 var(--space-4);
}

.chip {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border: 1px solid rgba(31, 79, 163, .15);
}

.data-callout {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.data-callout strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--amber-2);
  flex: none;
}
.data-callout span { font-size: .86rem; color: var(--on-dark-muted); }

.schema-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.schema-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--paper-alt);
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.schema-table td {
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  vertical-align: top;
}

.schema-table tr:last-child td { border-bottom: none; }

.schema-table td.field {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--cobalt);
  white-space: nowrap;
}

.schema-table td.example { color: var(--slate-600); }

/* ---------- Glossary ---------- */
.glossary-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.glossary-search {
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 380px;
}
.glossary-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--slate-600);
}
.glossary-search input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .88rem;
}
.glossary-search input:focus {
  border-color: var(--cobalt);
  outline: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filter-pill {
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--slate-600);
  transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--cobalt); color: var(--cobalt); }
.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
}

.term-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.term-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}

.term-card h3 {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate-900);
}

.term-tag {
  font-size: .64rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: .2rem .5rem;
  border-radius: 5px;
  white-space: nowrap;
  flex: none;
}

.term-card p { font-size: .87rem; line-height: 1.6; }

.glossary-empty {
  display: none;
  text-align: center;
  padding: var(--space-6) 1rem;
  color: var(--slate-600);
  font-size: .92rem;
}
.glossary-empty.is-visible { display: block; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .card-icon { background: var(--cobalt-soft); color: var(--cobalt); }
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.blog-card__tile {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  color: #fff;
}
.blog-card__tile svg { width: 24px; height: 24px; opacity: .85; }

.blog-card__mono {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}

.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card h3 {
  font-size: 1.08rem;
  margin-bottom: .55rem;
  line-height: 1.35;
}

.blog-card p {
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--slate-600);
  margin-bottom: .9rem;
  font-family: var(--font-mono);
}

/* Category accent variants for blog tiles */
.tile-a { background: linear-gradient(135deg, var(--cobalt), var(--cobalt-2)); }
.tile-b { background: linear-gradient(135deg, #0e9c8c, #12b6a3); }
.tile-c { background: linear-gradient(135deg, #2a3a5c, #1b2740); }
.tile-d { background: linear-gradient(135deg, #b9791f, var(--amber)); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px; height: 20px;
  flex: none;
  color: var(--cobalt);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 .5rem 1.5rem;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 700px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner .section-head { max-width: 640px; margin-inline: auto; }
.cta-banner .eyebrow { justify-content: center; }
.cta-banner .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: var(--on-dark);
  padding: var(--space-10) 1.5rem var(--space-4);
}

.footer-grid {
  max-width: var(--container-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  color: var(--on-dark-muted);
  font-size: .9rem;
  margin: 1rem 0 1.4rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}

.footer-col li { margin-bottom: .7rem; }
.footer-col a {
  color: var(--on-dark);
  font-size: .9rem;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--amber-2); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--on-dark-muted);
}
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; color: var(--amber-2); }

.social-icons { display: flex; gap: .6rem; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(231, 236, 245, .08);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.social-icons svg { width: 16px; height: 16px; }
.social-icons a:hover { background: var(--amber); color: var(--ink); transform: translateY(-3px); }

.footer-bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(231, 236, 245, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.25rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber); color: var(--ink); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Article page ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--slate-600);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--cobalt); font-weight: 500; }
.breadcrumb span { color: var(--line); }

.article-header {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  text-align: left;
}

.article-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: .3rem .7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--slate-600);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 1rem;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 .8rem;
}
.article-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.article-body ul {
  margin: 0 0 1.2rem;
  padding-left: 0;
}
.article-body ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .65rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55rem;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.article-callout {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-callout p { color: var(--on-dark-muted); margin: 0; font-size: .95rem; max-width: 420px; }
.article-callout strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .3rem; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: var(--space-5) 0;
}

.related-wrap {
  max-width: var(--container-w);
  margin: 0 auto;
}
.related-wrap h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.not-found {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-10) 0;
}
.not-found .card-icon { margin-inline: auto; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .hero-grid, .about-grid, .data-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; margin-top: 1rem; }
  .about-grid { gap: var(--space-6); }
  .about-grid .verify-card { max-width: 420px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding-block: var(--space-8); }
  .hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; }
  .hero-stats { gap: var(--space-4); }
  .why-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .data-callout { flex-direction: column; align-items: flex-start; text-align: left; }
  .glossary-controls { flex-direction: column; align-items: stretch; }
  .glossary-search { max-width: none; }
  .schema-table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-callout { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
