:root {
  --bg: #f3f1ea;
  --paper: rgba(255, 255, 251, 0.78);
  --paper-strong: #fffdf8;
  --ink: #17181a;
  --muted: #59606b;
  --line: rgba(30, 39, 50, 0.14);
  --accent: #0f5676;
  --accent-soft: #d8ecf6;
  --signal: #8e4b17;
  --signal-soft: #f5dfc9;
  --shadow: 0 22px 54px rgba(31, 35, 45, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 86, 118, 0.14), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(142, 75, 23, 0.16), transparent 20%),
    linear-gradient(180deg, #f8f7f2 0%, var(--bg) 54%, #ece8de 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(28, 32, 39, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1f779f);
  color: #fffaf0;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 28px;
  padding: 78px 0 42px;
}

.hero-copy,
.hero-panel,
.stack-layer,
.route-card,
.topic-card,
.approach-card,
.timeline-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 86, 118, 0.18), transparent 68%);
}

.eyebrow,
.kicker,
.metric-label,
.layer-tag,
.note-label {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.1vw, 3.3rem);
}

h3 {
  font-size: 1.34rem;
}

.hero-text,
.section-heading {
  max-width: 72ch;
}

.hero-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  background: var(--ink);
  color: #fffaf3;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-signals span,
.route-steps span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  border: 1px solid rgba(38, 47, 58, 0.1);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(228, 240, 246, 0.82)),
    var(--paper);
}

.metric-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 47, 58, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.metric-value {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.34rem;
  font-weight: 700;
}

.metric-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.section {
  padding: 28px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 6px;
}

.stack-layout,
.route-grid,
.topic-grid,
.approach-grid,
.next-layout {
  display: grid;
  gap: 18px;
}

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

.stack-column {
  display: grid;
  gap: 18px;
}

.stack-layer,
.route-card,
.topic-card,
.approach-card,
.timeline-card,
.note-card {
  padding: 24px;
}

.stack-layer p,
.route-card p,
.topic-card p,
.approach-card p,
.note-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.stack-layer ul {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.stack-layer li + li {
  margin-top: 8px;
}

.layer-ai {
  background:
    linear-gradient(160deg, rgba(232, 239, 252, 0.82), rgba(255, 255, 251, 0.86)),
    var(--paper);
}

.layer-eu {
  background:
    linear-gradient(160deg, rgba(236, 247, 241, 0.82), rgba(255, 255, 251, 0.86)),
    var(--paper);
}

.layer-unece {
  background:
    linear-gradient(160deg, rgba(246, 238, 226, 0.86), rgba(255, 255, 251, 0.86)),
    var(--paper);
}

.layer-assurance {
  background:
    linear-gradient(160deg, rgba(237, 239, 243, 0.84), rgba(255, 255, 251, 0.86)),
    var(--paper);
}

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

.route-index,
.topic-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.topic-card-primary {
  background:
    linear-gradient(160deg, rgba(216, 236, 246, 0.78), rgba(255, 255, 251, 0.86)),
    var(--paper);
}

.next-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.timeline-list {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-list li + li {
  margin-top: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 2px 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1080px) {
  .hero,
  .stack-layout,
  .route-grid,
  .topic-grid,
  .approach-grid,
  .next-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--content-width), calc(100% - 22px));
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
    border-radius: 24px;
  }

  .topnav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-copy,
  .hero-panel,
  .stack-layer,
  .route-card,
  .topic-card,
  .approach-card,
  .timeline-card,
  .note-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-signals,
  .route-steps {
    flex-direction: column;
  }
}
