:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dbe3ee;
  --accent: #c62828;
  --accent-strong: #8f1d1d;
  --warm: #e53935;
  --shadow: 0 18px 50px rgba(20, 31, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(198, 40, 40, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38rem);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 31, 49, 0.08);
  backdrop-filter: blur(14px);
}

.site-mark {
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav nav a {
  text-decoration: none;
}

.site-nav nav a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 44px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  max-width: 860px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20, 31, 49, 0.06);
}

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

.meta-row {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.teaser {
  margin: 0 0 74px;
}

figure {
  margin: 0;
}

.teaser figure,
.media-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.teaser img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  background: #0b1117;
}

figcaption {
  padding: 13px 16px 15px;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  color: #344054;
  font-size: 17px;
}

.overview-grid p {
  margin: 0;
}

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

.pipeline article,
.implementation-grid article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pipeline h3,
.implementation-grid h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.pipeline p,
.implementation-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.system-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.node {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #0f2330;
  background: linear-gradient(180deg, #ffffff, #eef7fa);
  border: 1px solid rgba(198, 40, 40, 0.28);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.connector {
  height: 2px;
  background: var(--accent);
  position: relative;
}

.connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

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

.media-card.wide {
  grid-column: 1 / -1;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1117;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pipeline,
  .implementation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-diagram {
    grid-template-columns: 1fr;
  }

  .connector {
    width: 2px;
    height: 28px;
    justify-self: center;
  }

  .connector::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 680px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav nav {
    width: 100%;
    gap: 8px 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 64px;
  }

  .overview-grid,
  .media-grid,
  .pipeline,
  .implementation-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 56px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
