:root {
  --ink: #182033;
  --muted: #626c7f;
  --line: #dfe4ee;
  --surface: #ffffff;
  --page: #f8fafc;
  --blue: #315fa8;
  --blue-soft: #dce8fb;
  --green: #537d52;
  --gold: #aa7a24;
  --rose: #a65757;
  --shadow: 0 18px 50px rgba(24, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(223, 228, 238, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: calc(88vh - 63px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 34px;
  padding: clamp(72px, 12vh, 132px) clamp(20px, 6vw, 72px) 54px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.96)),
    linear-gradient(120deg, #eef4fb 0%, #f8fafc 42%, #f4f8f2 100%);
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 710px;
  color: #3e485c;
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 720;
}

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

.button.secondary {
  background: rgba(255,255,255,0.7);
}

.hero-panel {
  align-self: end;
  padding: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label,
.hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 56px;
  line-height: 1;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metrics-band div {
  padding: 22px clamp(18px, 4vw, 38px);
  border-right: 1px solid var(--line);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metrics-band strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.section-copy p,
.section-heading p,
.case-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.rule-list,
.capability-list {
  display: grid;
  gap: 12px;
}

.rule-list div,
.capability-list div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rule-list span {
  color: var(--gold);
  font-weight: 780;
  font-size: 13px;
}

.rule-list p,
.capability-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chart-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.chart-shell {
  height: clamp(340px, 48vw, 540px);
  padding: 18px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chart-shell canvas {
  width: 100%;
  height: 100%;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.comparison-grid div,
.valuation-ladder div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-grid span,
.valuation-ladder span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.comparison-grid strong,
.valuation-ladder strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 520px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.valuation-ladder {
  display: grid;
  gap: 12px;
}

.valuation-ladder div:nth-child(1) strong {
  color: var(--gold);
}

.valuation-ladder div:nth-child(2) strong {
  color: var(--blue);
}

.valuation-ladder div:nth-child(3) strong {
  color: var(--green);
}

.constituent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.constituent {
  min-height: 86px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.constituent span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.constituent strong {
  display: block;
  margin-top: 9px;
  font-size: 17px;
}

.capabilities {
  background: #f2f6f4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(54px, 8vw, 84px) clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: white;
}

.contact-section .kicker {
  color: #d7b46c;
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-section .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: white;
  border-color: white;
}

.contact-emails {
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.contact-emails a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration-color: rgba(255, 255, 255, 0.36);
}

.contact-emails a:hover {
  color: white;
}

.disclaimer {
  padding: 22px clamp(20px, 6vw, 72px) 34px;
  color: var(--muted);
  background: #f1f3f7;
  font-size: 12px;
}

.disclaimer p {
  max-width: 1100px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .case-section {
    grid-template-columns: 1fr;
  }

  .metrics-band,
  .comparison-grid,
  .constituent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 58px;
  }

  .metrics-band,
  .comparison-grid,
  .constituent-grid {
    grid-template-columns: 1fr;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
