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

:root {
  --ink: #11130f;
  --paper: #f3f0e8;
  --white: #fffefa;
  --muted: #686b63;
  --line: rgba(17, 19, 15, .15);
  --violet: #7452f7;
  --violet-dark: #5a38df;
  --lime: #c8ff62;
  --coral: #ff6b57;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow: 0 28px 80px rgba(20, 18, 14, .13);
  --content: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 9%, rgba(116, 82, 247, .14), transparent 25rem),
    linear-gradient(180deg, #f7f4ed 0%, var(--paper) 52%, #ece8de 100%);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--white);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0) !important; }
main:focus { outline: none; }

.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0 8px; pointer-events: none; }
.nav-shell {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(17, 19, 15, .12);
  border-radius: 18px;
  background: rgba(255, 254, 250, .91);
  box-shadow: 0 14px 38px rgba(18, 18, 14, .08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.brand { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { width: 176px; height: auto; }
.desktop-nav, .desktop-actions { display: flex; align-items: center; }
.desktop-nav { gap: 25px; }
.desktop-actions { gap: 17px; }
.desktop-nav a, .nav-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #373a34;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav a[aria-current="page"] { color: var(--violet-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17, 19, 15, .14); }
.button-primary { border-color: var(--violet); background: var(--violet); color: #fff; box-shadow: 0 12px 28px rgba(116, 82, 247, .25); }
.button-primary:hover { background: var(--violet-dark); }
.button-lime { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.button-dark { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.mobile-menu { display: none; }

.page-hero { padding: 14px 0 28px; }
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 8vw, 100px);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 8%, rgba(116, 82, 247, .5), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgba(200, 255, 98, .11), transparent 24rem),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 54%, #000);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 9px 13px;
  border: 1px solid rgba(200, 255, 98, .34);
  border-radius: 999px;
  background: rgba(200, 255, 98, .08);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.page-hero h1 { max-width: 920px; margin-bottom: 28px; font-size: clamp(3.1rem, 7vw, 6.4rem); font-weight: 650; letter-spacing: -.065em; line-height: .94; }
.page-hero h1 span { display: block; color: var(--lime); }
.lead { max-width: 740px; margin-bottom: 31px; color: rgba(255,255,255,.72); font-size: clamp(1.08rem, 1.6vw, 1.23rem); line-height: 1.65; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,.58); font-size: .88rem; line-height: 1.5; }

.section { padding: clamp(72px, 10vw, 118px) 0; }
.section + .section { padding-top: 0; }
.section-kicker { margin-bottom: 18px; color: var(--violet-dark); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.section-title { max-width: 900px; margin-bottom: 22px; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 650; letter-spacing: -.06em; line-height: .98; }
.section-intro { max-width: 730px; margin-bottom: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,254,250,.84);
  box-shadow: 0 18px 50px rgba(20,18,14,.07);
}
.card-number { display: grid; width: 42px; height: 42px; margin-bottom: 66px; place-items: center; border-radius: 11px; background: var(--lime); font-family: var(--font-mono); font-size: .72rem; }
.card h2, .card h3 { margin-bottom: 12px; font-size: 1.38rem; letter-spacing: -.035em; }
.card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.evidence-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr);
  gap: 16px;
  margin-top: 46px;
  padding: 16px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.evidence-copy, .evidence-aside { padding: clamp(30px, 5vw, 56px); border-radius: 18px; }
.evidence-copy { background: var(--ink); color: #fff; }
.evidence-copy h2 { max-width: 650px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.evidence-copy p { max-width: 650px; color: rgba(255,255,255,.65); line-height: 1.7; }
.evidence-aside { background: #e9e1ff; }
.evidence-aside h3 { margin-bottom: 18px; font-size: 1.4rem; }
.evidence-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; line-height: 1.5; }
.evidence-list li::before { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--lime); content: "✓"; font-size: .72rem; font-weight: 800; }

.solution-list { display: grid; gap: 12px; margin-top: 46px; }
.solution-row { display: grid; grid-template-columns: 100px minmax(220px, .7fr) 1fr; gap: 26px; align-items: start; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,250,.82); }
.solution-row .number { color: var(--violet-dark); font-family: var(--font-mono); font-size: .76rem; }
.solution-row h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.solution-row p { margin: 0; color: var(--muted); line-height: 1.65; }

.lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.lane { display: flex; min-height: 390px; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 18px 50px rgba(20,18,14,.07); }
.lane.featured { border-color: var(--violet); background: var(--violet); color: #fff; }
.lane-label { color: var(--violet-dark); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.lane.featured .lane-label { color: #fff; }
.lane h2 { margin: 25px 0 14px; font-size: 2rem; letter-spacing: -.045em; }
.lane p { color: var(--muted); line-height: 1.65; }
.lane.featured p { color: #fff; }
.lane .button { width: 100%; margin-top: 28px; }
.truth-note { margin-top: 16px; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.closing { padding-top: 0; }
.closing-shell { padding: clamp(38px, 6vw, 66px); border: 1px solid var(--line); border-radius: 28px; background: var(--lime); }
.closing-shell h2 { max-width: 840px; margin-bottom: 18px; font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.06em; line-height: .98; }
.closing-shell p { max-width: 700px; color: #41443d; line-height: 1.65; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: start; padding: 42px 0 56px; color: #555850; font-size: .8rem; }
.footer-brand img { width: 158px; }
.footer-brand p { max-width: 360px; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 24px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .67rem; }

@media (max-width: 980px) {
  .desktop-nav, .desktop-actions { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--ink); content: ""; }
  .menu-icon { position: relative; }
  .menu-icon::before { position: absolute; top: -6px; }
  .menu-icon::after { position: absolute; top: 6px; }
  .mobile-menu[open] .menu-icon { background: transparent; }
  .mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-panel { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .mobile-panel a:not(.button) { display: flex; min-height: 48px; align-items: center; padding: 0 12px; border-radius: 9px; font-weight: 650; text-decoration: none; }
  .mobile-panel a:not(.button):hover { background: var(--paper); }
  .card-grid, .lane-grid { grid-template-columns: 1fr; }
  .card, .lane { min-height: 0; }
  .card-number { margin-bottom: 36px; }
  .evidence-panel { grid-template-columns: 1fr; }
  .solution-row { grid-template-columns: 70px 1fr; }
  .solution-row p { grid-column: 2; }
  footer { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--content)); }
  .site-header { padding-top: 8px; }
  .nav-shell { min-height: 62px; padding: 0 8px 0 14px; border-radius: 15px; }
  .brand img { width: 148px; }
  .page-hero { padding-top: 6px; }
  .hero-shell { padding: 48px 20px; border-radius: 24px; }
  .page-hero h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .section { padding: 78px 0; }
  .section-title { font-size: clamp(2.5rem, 13vw, 4rem); }
  .card, .lane, .solution-row { padding: 24px; }
  .solution-row { grid-template-columns: 1fr; gap: 10px; }
  .solution-row p { grid-column: 1; }
  .evidence-panel { padding: 10px; border-radius: 22px; }
  .evidence-copy, .evidence-aside { padding: 28px 22px; }
  .closing-shell { padding: 42px 22px; border-radius: 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

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