
:root {
  --paper: #f6efe3;
  --paper-warm: #fffaf1;
  --paper-cool: #ede3d1;
  --ink: #11110f;
  --ink-soft: #37342f;
  --muted: #716a5f;
  --line: rgba(17, 17, 15, 0.18);
  --line-strong: rgba(17, 17, 15, 0.82);
  --blue: #005dff;
  --blue-dark: #0044bf;
  --blue-soft: rgba(0, 93, 255, 0.1);
  --surface: rgba(255, 250, 241, 0.82);
  --surface-solid: #fffaf1;
  --shadow: 0 18px 46px rgba(34, 29, 21, 0.1);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;
  --serif: "Newsreader", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 93, 255, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(17, 17, 15, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--paper-warm), var(--paper) 48%, var(--paper-cool));
  background-size: auto, 56px 56px, 56px 56px, auto;
  font-family: var(--serif);
  line-height: 1.58;
  text-rendering: optimizelegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 62%, rgba(0, 93, 255, 0.08) 62.1% 62.35%, transparent 62.45%);
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

:not(pre) > code {
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.88);
  color: var(--blue-dark);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  background: var(--blue);
  color: white;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 60;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-warm);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--blue);
  background: rgba(17, 17, 15, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--paper-warm);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper-warm);
  background: var(--paper-warm);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-title,
.brand-subtitle,
.nav-actions,
.button,
.eyebrow,
.section-label,
.spec-kicker,
.card-index,
.code-panel-bar,
.runbook-steps span,
.platform-badge {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.brand-title {
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.07em;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(255, 250, 241, 0.64);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.nav-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 250, 241, 0.74);
  text-decoration: none;
}

.nav-actions a:hover,
.nav-actions a:focus-visible {
  color: var(--paper-warm);
  background: rgba(255, 250, 241, 0.09);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(17, 17, 15, 0.12);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

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

.button.secondary,
.button.ghost {
  background: rgba(255, 250, 241, 0.72);
}

.nav-actions .button.ghost {
  min-height: 36px;
  margin-left: 6px;
  border-color: rgba(255, 250, 241, 0.86);
  background: var(--paper-warm);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.86fr);
  gap: 44px;
  align-items: center;
  padding: 88px 0 54px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.hero h1,
.section-heading h2,
.cta-band h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 12.5ch;
  margin-top: 18px;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
}

.hero h1::first-line {
  font-style: italic;
  color: var(--blue);
}

.lede {
  max-width: 44rem;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.52;
}

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

.hero-spec,
.blueprint-notes,
.pillars article,
.feature-card,
.use-case,
.platforms {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-spec {
  position: relative;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px),
    var(--surface);
  background-size: 22px 22px;
}

.spec-kicker {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.spec-list {
  margin: 20px 0 22px;
}

.spec-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.spec-stamp {
  display: inline-flex;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.section-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
}

.section-heading p {
  grid-column: 2;
  max-width: 48rem;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.blueprint,
.features,
.runbook,
.use-cases,
.platforms,
.pillars,
.article-list,
.cta-band {
  margin: 76px auto;
}

.article-home {
  padding: 86px 0 30px;
}

.article-home h1,
.article-header h1 {
  max-width: 13ch;
  margin: 18px 0 0;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.article-home h1::first-line,
.article-header h1::first-line {
  font-style: italic;
  color: var(--blue);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-meta {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 30px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-style: italic;
  line-height: 1.02;
}

.article-card h3 a {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.article-card p {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.5;
}

.article-detail {
  padding: 76px 0 92px;
}

.article-header {
  max-width: 900px;
  margin-bottom: 42px;
}

.article-header p {
  max-width: 50rem;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.52;
}

.article-body {
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.72;
}

.article-body h2,
.article-body h3 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-style: italic;
  line-height: 1.08;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body pre {
  margin: 26px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #fff4df;
  box-shadow: var(--shadow);
}

.article-body pre code {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.article-body img {
  display: block;
  width: min(100%, 1680px);
  margin: 32px 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.article-body p:has(img) {
  max-width: none;
  margin-bottom: 8px;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 22px;
}

.code-panel {
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #fff4df;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.16);
  background: var(--blue);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.code-panel pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

.code-panel code {
  color: inherit;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre;
}

.blueprint-notes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.caption {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.pillars,
.features-grid,
.use-cases-grid {
  display: grid;
  gap: 18px;
}

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

.pillars .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.pillars article,
.feature-card,
.use-case {
  min-height: 210px;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card-index {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.pillars h3,
.feature-card h3,
.use-case h3 {
  margin: 28px 0 10px;
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.05;
}

.pillars p,
.feature-card p,
.use-case p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.52;
}

.features-grid,
.use-cases-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card:hover,
.use-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(34, 29, 21, 0.13);
  background: var(--surface-solid);
}

.feature-card.accent {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(0, 93, 255, 0.12), rgba(255, 250, 241, 0.82));
}

.runbook-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.runbook-steps li {
  min-height: 155px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  counter-increment: step;
}

.runbook-steps li + li {
  border-left: 0;
}

.runbook-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.runbook-steps {
  counter-reset: step;
}

.runbook-steps span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.runbook-steps code {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platforms {
  padding: 32px;
  background: linear-gradient(90deg, var(--blue-soft), rgba(255, 250, 241, 0.84));
}

.platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px 0 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cta-band {
  padding: 42px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper-warm);
  box-shadow: var(--shadow);
}

.cta-band .section-label {
  color: #8bb2ff;
}

.cta-band h2 {
  max-width: 16ch;
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
}

.cta-band p {
  max-width: 42rem;
  margin: 20px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: 1.12rem;
}

.cta-band .button.secondary {
  border-color: rgba(255, 250, 241, 0.82);
  color: var(--paper-warm);
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 52px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 1rem;
}

.footer > div:first-child {
  max-width: 760px;
}

.footer a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.reveal {
  animation: rise-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-spec.reveal {
  animation-delay: 70ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .blueprint-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    grid-column: auto;
    margin-top: 0;
  }

  .features-grid,
  .use-cases-grid,
  .pillars,
  .runbook-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars .section-heading {
    grid-column: 1 / -1;
  }

  .runbook-steps li + li {
    border-left: 1px solid var(--line-strong);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100vw - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    overflow-x: auto;
  }

  .nav-actions a {
    flex: 0 0 auto;
    background: rgba(255, 250, 241, 0.08);
  }

  .nav-actions .button.ghost {
    margin-left: 0;
  }

  .hero {
    gap: 30px;
    padding: 54px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .lede,
  .section-heading p,
  .cta-band p {
    font-size: 1.04rem;
  }

  .blueprint,
  .features,
  .runbook,
  .use-cases,
  .platforms,
  .pillars,
  .article-list,
  .cta-band {
    margin: 58px auto;
  }

  .features-grid,
  .use-cases-grid,
  .pillars,
  .article-card-grid,
  .runbook-steps {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .article-home h1,
  .article-header h1,
  .cta-band h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .runbook-steps li + li {
    border-top: 0;
  }

  .code-panel-bar {
    flex-direction: column;
    gap: 4px;
  }

  .code-panel pre {
    padding: 18px;
  }

  .code-panel code {
    font-size: 12px;
  }

  .platforms,
  .cta-band {
    padding: 26px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
