:root {
  --primary: #185DAD;
  --secondary: #713B98;
  --accent: #F1644B;
  --ink: #211E1E;
  --body: #2C2C2C;
  --cream: #FCF5E6;
  --surface: #FFFFFF;
  --panel: #F6F6F6;
  --muted: #6A6770;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-subtle: 0 2px 8px rgba(30, 30, 30, 0.06);
  --shadow-medium: 0 12px 32px rgba(24, 93, 173, 0.14);
  --section-gap: 96px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em 0;
}

p { margin: 0 0 1.1em 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
a:hover { color: var(--secondary); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 96px;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(241, 100, 75, 0.35) 0%, transparent 55%),
    radial-gradient(90% 110% at 15% 100%, rgba(113, 59, 152, 0.85) 0%, transparent 60%),
    linear-gradient(135deg, #185DAD 0%, #3C4DAD 45%, #713B98 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
}

.prepared-for {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  font-weight: 500;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero .lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 40px;
}

/* ---------- CTA ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  color: var(--ink);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  min-height: 48px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(24, 93, 173, 0.22);
}
.cta-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.cta-arrow {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform 180ms ease;
}
.cta-primary:hover .cta-arrow { transform: translateX(3px); }

.cta-caption {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 24px;
  max-width: 22ch;
}

.body-lg {
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.65;
  color: var(--body);
}

/* Body section background tint */
.body-section {
  background: var(--cream);
}

/* Frame section: the 60/30/10 */
.frame-section { background: var(--surface); }

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.layer {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 22px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.layer:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-subtle);
}

.layer-pct {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 34px;
  color: var(--primary);
  line-height: 1;
  min-width: 78px;
  flex-shrink: 0;
}

.layer-lbl {
  font-size: 16px;
  line-height: 1.45;
  color: var(--body);
}

.layer-ai {
  background: linear-gradient(135deg, rgba(24, 93, 173, 0.04), rgba(113, 59, 152, 0.06));
  border-left-color: var(--accent);
}
.layer-ai .layer-pct { color: var(--accent); }

/* Case section */
.case-section {
  background: var(--cream);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 32px 0 28px;
}

.case-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  box-shadow: var(--shadow-subtle);
}

.case-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.case-value {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.case-note {
  font-style: italic;
  color: var(--body);
  border-left: 2px solid var(--secondary);
  padding-left: 18px;
  margin-top: 28px;
  font-size: 16px;
}

/* Method section */
.method-section { background: var(--surface); }
.method-section a { word-break: break-word; }

/* Credibility */
.cred-section {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
}
.cred-section .kicker { color: var(--accent); }
.cred-line {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
}

/* Final CTA */
.cta-section {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(241, 100, 75, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #185DAD 0%, #713B98 100%);
  color: #fff;
  text-align: left;
}
.cta-section .kicker { color: var(--cream); }
.cta-section h2 { color: #fff; }
.cta-body {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 32px;
}

.cta-large {
  padding: 18px 28px;
  font-size: 17px;
}

.cta-subline {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.cta-subline a {
  color: var(--cream);
  text-decoration-color: rgba(252, 245, 230, 0.55);
}
.cta-subline a:hover { color: #fff; }

/* Footer */
.footer {
  background: #15171C;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0;
  font-size: 13px;
}
.footer-note {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}
.footer-sub { color: rgba(255, 255, 255, 0.5); margin: 0; }
.footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.footer a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  :root { --section-gap: 64px; }
  body { font-size: 16px; }
  .hero { padding-top: 22px; padding-bottom: 72px; }
  .hero-inner, .section-inner { padding: 0 22px; }
  .brandbar { margin-bottom: 44px; }
  .logo { height: 38px; }
  .prepared-for { font-size: 11px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .hero .lede { font-size: 16px; }
  h2 { font-size: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .layer { padding: 18px; gap: 16px; }
  .layer-pct { font-size: 28px; min-width: 62px; }
  .cta-primary { width: 100%; justify-content: space-between; }
  .cta-large { padding: 16px 20px; font-size: 16px; }
}

@media (max-width: 375px) {
  .hero-inner, .section-inner { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

::selection {
  background: var(--accent);
  color: #fff;
}
