:root {
  --ink: #16202d;
  --muted: #627084;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dfe6ef;
  --navy: #0b1726;
  --blue: #1f6fff;
  --cyan: #18bfe3;
  --green: #15a66a;
  --amber: #d98b12;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1120px;
  --shadow: 0 18px 55px rgba(15, 31, 54, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 14% 0, rgba(24, 191, 227, 0.18), transparent 24rem),
    linear-gradient(180deg, #f9fbfe 0, #eef3f8 100%);
}

a { color: inherit; text-decoration: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding: 22px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.nav-links a:hover { color: var(--blue); }

.flowcheck-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 850;
}

.flowcheck-link,
.button-secondary {
  border: 1px solid var(--line);
  background: var(--white);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 34px rgba(31, 111, 255, 0.23);
}

.section-shell,
.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  padding-top: 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.lead {
  color: #43546a;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-note,
.brand-distinction {
  max-width: 680px;
  color: var(--muted);
  font-weight: 700;
}

.hero-note {
  padding-left: 16px;
  border-left: 3px solid rgba(31, 111, 255, 0.26);
}

.brand-distinction {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 111, 255, 0.07);
}

.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hub-card,
.cluster-card,
.article-card,
.process-card,
.cta-panel,
.footer-note,
.toc-card {
  border: 1px solid rgba(22, 32, 45, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}

.hub-card {
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.94), rgba(240,247,255,0.9));
}

.hub-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.hub-stat {
  padding: 16px;
  border-radius: 18px;
  background: #f4f8fd;
}

.hub-stat strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.hub-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.cluster-grid,
.article-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

.cluster-grid { grid-template-columns: repeat(5, 1fr); }
.article-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(3, 1fr); }

.cluster-card,
.article-card,
.process-card {
  padding: 22px;
}

.cluster-card ul,
.article-content ul,
.article-content ol {
  padding-left: 20px;
}

.cluster-card li,
.article-content li { margin: 8px 0; }

.article-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

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

.article-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.process-card strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0, rgba(24,191,227,0.28), transparent 18rem),
    linear-gradient(145deg, var(--navy), #10243b);
}

.cta-panel p { color: #cfdeec; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 20px 56px;
}

.footer-note {
  padding: 24px;
  color: #4b5c70;
}

.article-page {
  background: #f7f9fc;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-header {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 10%, rgba(24,191,227,0.24), transparent 22rem),
    linear-gradient(145deg, #0b1726, #14273d);
}

.article-header h1 { max-width: 900px; }
.article-header .lead { color: #d5e3f0; }

.article-content {
  padding: 34px;
  border: 1px solid rgba(22, 32, 45, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-content section { margin-bottom: 34px; }
.article-content section:last-child { margin-bottom: 0; }

.disclaimer {
  padding: 18px;
  border-left: 4px solid var(--amber);
  border-radius: 0 16px 16px 0;
  background: #fff8eb;
  color: #5d4720;
}

.quick-answer {
  padding: 22px;
  border-radius: var(--radius-md);
  background: #f3f8ff;
}

.quick-answer h2 {
  margin-bottom: 10px;
}

.quick-answer p:last-child {
  margin-bottom: 0;
}

.inline-cta {
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.inline-cta a { font-weight: 950; text-decoration: underline; text-underline-offset: 3px; }

.toc-card {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.toc-card a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 750;
}

.toc-card a:hover { color: var(--blue); }

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #cde0f4;
  font-weight: 850;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero,
  .article-shell,
  .cta-panel { grid-template-columns: 1fr; }
  .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid,
  .process-grid { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 16px;
  }
  .flowcheck-link { display: none; }
  .section-shell,
  .article-shell { padding: 48px 16px; }
  h1 {
    font-size: 38px;
    letter-spacing: -0.055em;
  }
  h2 { font-size: 30px; }
  .cluster-grid,
  .hub-stat-grid { grid-template-columns: 1fr; }
  .hub-card,
  .article-header,
  .article-content,
  .cta-panel { padding: 22px; }
  .article-card { min-height: 0; }
  .hero-actions .button,
  .article-actions .button { width: 100%; }
}
