/* Colours and type follow the Delvor product's own design tokens. */
:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716c;
  --paper: #f7f5ef;
  --panel: #fff;
  --line: #d9ddd8;
  --green: #0f5b46;
  --green-2: #d9eee6;
  --amber: #b46b22;
  --blue: #2f6f91;
  --blue-2: #deedf5;
  --purple: #6a4f86;
  --purple-2: #eae3f1;
  --shadow: 0 16px 40px rgba(23, 32, 29, .08);
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 7vw, 112px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  background: rgba(247, 245, 239, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.topbar nav a:hover, .topbar nav a:focus { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  background: radial-gradient(circle at 88% 12%, #dcebe5 0, transparent 32%), linear-gradient(135deg, #fbfaf7, #f0eee6);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 28px 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-action, .secondary-action {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
}
.primary-action { background: var(--green); color: #fff; }
.secondary-action { border: 1px solid var(--line); color: var(--ink); background: #fff; }

/* Layer illustration */
.tower { display: grid; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tower-layer { display: grid; grid-template-columns: 112px 1fr; min-height: 62px; background: #f0f2ef; }
.layer-label { display: flex; align-items: center; padding: 0 14px; background: #e8ebe7; font-size: 12px; font-weight: 700; }
.shares { display: flex; }
.shares i { border-left: 1px solid rgba(255, 255, 255, .7); background: var(--blue-2); }
.shares i:nth-child(2n) { background: var(--green-2); }
.shares i:nth-child(3n) { background: var(--purple-2); }
.tower-layer.retention .shares i { background: #e4e8e4; }
.tower-caption { padding-top: 8px; color: var(--muted); font-size: 11px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) var(--gutter); scroll-margin-top: 70px; }
.muted-section { background: #ecefe9; }
.white-section { background: #fff; }
.dark-section { background: var(--ink); color: #f5f5f0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.025em;
}
.section-heading > p { color: var(--muted); }
.dark-section .section-heading > p { color: #b8c5c0; }
.dark-section .eyebrow { color: #8fcab5; }

/* The four views */
.truth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.truth { min-height: 250px; padding: 24px; background: #fff; }
.truth > span { font-family: var(--serif); font-size: 28px; color: var(--blue); }
.truth h3 { font-size: 17px; margin: 28px 0 10px; }
.truth p { color: var(--muted); font-size: 14px; }
.t-amber > span { color: var(--amber); }
.t-green > span { color: var(--green); }
.t-purple > span { color: var(--purple); }

/* Capability cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-grid article { padding: 24px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(217, 221, 216, .9); }
.card-grid h3 { font-size: 16px; margin-bottom: 8px; }
.card-grid p { color: var(--muted); font-size: 14px; }

/* Participants */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip-list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px; background: #fff; font-weight: 600; font-size: 14px; }

/* Modes */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode { padding: 28px; border-top: 5px solid var(--blue); background: var(--paper); }
.mode > span { display: block; font-family: var(--serif); font-size: 32px; color: var(--blue); margin-bottom: 14px; }
.mode p { color: var(--muted); font-size: 14px; }
.m-green { border-color: var(--green); }
.m-green > span { color: var(--green); }
.m-purple { border-color: var(--purple); }
.m-purple > span { color: var(--purple); }

/* Principles */
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #3a4541; border: 1px solid #3a4541; }
.principle-grid article { padding: 24px; background: #202a27; }
.principle-grid h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; }
.principle-grid p { color: #b8c5c0; font-size: 14px; }

/* Status + footer */
.status-note { padding: 28px var(--gutter); background: var(--green-2); color: #164d3d; font-size: 15px; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 34px var(--gutter);
  background: var(--ink);
  color: #bdc9c4;
  font-size: 12px;
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; gap: 18px; padding: 64px var(--gutter); text-align: center; }
.notfound h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); font-weight: 400; }
.notfound a { color: var(--green); font-weight: 700; }

@media (max-width: 1000px) {
  .hero, .section-heading { grid-template-columns: 1fr; }
  .section-heading { gap: 16px; align-items: start; }
  .truth-grid, .principle-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .truth { min-height: 0; }
  .topbar nav { display: none; }
}

@media (max-width: 640px) {
  .truth-grid, .principle-grid, .card-grid, .mode-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
