/* ============================================================
 * Hypogrid landing v2 — Stripe-inspired
 * Mesh gradient hero, marquee social proof, big-number stats,
 * bento tiles, cropped table bleed, closing CTA gradient, dense footer.
 *
 * Note: Stripe's actual display weight is ~500-600 (semibold),
 * not the 300 listed in DESIGN.md. Implementation follows live Stripe.
 * ============================================================ */

:root {
  color-scheme: light;

  /* Colors */
  --color-midnight-ink: #0a2540;     /* Stripe's actual near-black tilts navy */
  --color-slate-blue: #425466;
  --color-ghost-gray: #687385;
  --color-platinum-white: #ffffff;
  --color-porcelain-white: #f6f9fc;
  --color-powder-blue: #e3ecf7;
  --color-stone-gray: #d5dbe1;
  --color-deep-violet: #635bff;       /* Stripe's actual violet, slightly cooler */
  --color-violet-press: #4f46e5;
  --color-washed-violet: #c5c4ff;
  --color-soft-violet: #8087ff;
  --color-accent-green: #009f6f;
  --color-vibrant-orange: #ff6118;
  --color-mesh-cyan: #50d5ff;
  --color-mesh-mint: #82e6c2;
  --color-mesh-coral: #ff8484;
  --color-mesh-violet: #8a5cf6;

  /* Typography */
  --font-sohne: "sohne-var", "Sohne", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type scale (Stripe live values, not DESIGN.md weight 300) */
  --text-caption: 13px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-subheading: 18px;
  --text-heading-sm: 22px;
  --text-heading: 32px;
  --text-heading-lg: 44px;
  --text-display: 64px;
  --text-display-lg: 80px;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px;
  --sp-24: 24px; --sp-28: 28px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px;
  --sp-60: 60px; --sp-64: 64px; --sp-80: 80px; --sp-96: 96px; --sp-120: 120px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(20px, 4vw, 40px);

  /* Radius */
  --radius-tag: 4px;
  --radius-button: 999px;       /* Stripe uses fully rounded pills */
  --radius-card: 6px;
  --radius-card-lg: 16px;       /* Bento tiles */

  /* Shadows */
  --shadow-card: 0 2px 5px -1px rgb(50 50 93 / 0.08), 0 1px 3px -1px rgb(0 0 0 / 0.04);
  --shadow-hover: 0 13px 27px -5px rgb(50 50 93 / 0.18), 0 8px 16px -8px rgb(0 0 0 / 0.18);
  --shadow-bleed: 0 50px 100px -20px rgb(50 50 93 / 0.18), 0 30px 60px -30px rgb(0 0 0 / 0.18);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-platinum-white);
  color: var(--color-midnight-ink);
  font-family: var(--font-sohne);
  font-feature-settings: "ss01" on, "tnum";
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--color-midnight-ink); font-weight: var(--weight-medium); }

code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-porcelain-white);
  border: 1px solid var(--color-powder-blue);
  border-radius: var(--radius-tag);
  padding: 1px 6px;
  color: var(--color-midnight-ink);
}

/* =================== Topbar =================== */
.lp2-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgb(10 37 64 / 0.06);
  padding: var(--sp-16) max(var(--container-pad), calc((100% - var(--container-max)) / 2));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: var(--sp-16);
}

.lp2-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  width: fit-content;
}
.lp2-mark { width: 38px; height: 38px; display: block; }
.lp2-wordmark { width: 124px; height: 28px; display: block; }

.lp2-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-32);
}
.lp2-nav a {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-midnight-ink);
  position: relative;
  transition: color 140ms ease;
}
.lp2-nav a:hover { color: var(--color-deep-violet); }

.lp2-controls {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-20);
}

.lp2-link-secondary {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-slate-blue);
}
.lp2-link-secondary:hover { color: var(--color-midnight-ink); }

/* =================== Buttons (Stripe pills) =================== */
.lp2-btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-deep-violet);
  color: var(--color-platinum-white);
  border: 0;
  border-radius: var(--radius-button);
  padding: 12px 20px;
  font-family: var(--font-sohne);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-sm);
  letter-spacing: 0;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.lp2-btn-filled:hover {
  background: var(--color-violet-press);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgb(99 91 255 / 0.5);
}
.lp2-btn-filled span { transition: transform 140ms ease; }
.lp2-btn-filled:hover span { transform: translateX(2px); }

.lp2-btn-ghost-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgb(10 37 64 / 0.06);
  color: var(--color-midnight-ink);
  border: 0;
  border-radius: var(--radius-button);
  padding: 12px 20px;
  font-family: var(--font-sohne);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-sm);
  transition: background 140ms ease, transform 140ms ease;
}
.lp2-btn-ghost-arrow:hover {
  background: rgb(10 37 64 / 0.1);
}
.lp2-btn-ghost-arrow span { transition: transform 140ms ease; }
.lp2-btn-ghost-arrow:hover span { transform: translateX(2px); }

/* Inline arrow link (Stripe's tertiary CTA — used everywhere) */
.lp2-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-deep-violet);
  transition: color 140ms ease;
}
.lp2-arrow-link span { transition: transform 140ms ease; }
.lp2-arrow-link:hover { color: var(--color-violet-press); }
.lp2-arrow-link:hover span { transform: translateX(4px); }

/* =================== Mesh gradient (hero + final) =================== */
.lp2-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lp2-mesh > span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.lp2-mesh-a { top: -10%; left: -5%; width: 55%; height: 70%; background: var(--color-mesh-cyan); }
.lp2-mesh-b { top: 5%; right: -10%; width: 50%; height: 60%; background: var(--color-mesh-mint); opacity: 0.45; }
.lp2-mesh-c { bottom: -15%; left: 20%; width: 55%; height: 60%; background: var(--color-mesh-coral); opacity: 0.4; }
.lp2-mesh-d { top: 30%; left: 35%; width: 40%; height: 50%; background: var(--color-mesh-violet); opacity: 0.35; }

/* Gradient text accent (Stripe-style "single word with gradient") */
.lp2-grad-word {
  background: linear-gradient(120deg, var(--color-mesh-violet) 0%, var(--color-mesh-coral) 50%, var(--color-mesh-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}

/* =================== Hero =================== */
/* Hero sits ABOVE the particle stage (z-index: 5 > particle stage z-index: 4)
   so the headline / lede always reads as the foreground. The background is
   intentionally semi-translucent — particles peek through as ambient color
   without ever competing with the type. */
.lp2-hero {
  position: relative;
  z-index: 5;
  padding: 140px var(--container-pad) 120px;
  overflow: hidden;
  isolation: isolate;
  background: rgb(255 255 255 / 0.62);
}
.lp2-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(10 37 64 / 0.06), transparent);
  z-index: 1;
}
.lp2-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.lp2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  margin: 0 auto var(--sp-32);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  color: var(--color-slate-blue);
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(10 37 64 / 0.08);
  border-radius: var(--radius-button);
  padding: 6px 14px 6px 6px;
  backdrop-filter: blur(8px);
}
.lp2-pill-new {
  background: var(--color-deep-violet);
  color: var(--color-platinum-white);
  font-weight: var(--weight-semibold);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-button);
}

.lp2-hero h1 {
  margin: 0;
  font-family: var(--font-sohne);
  font-size: clamp(40px, 6.4vw, var(--text-display-lg));
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.lp2-hero h1 .lp2-hero-line {
  display: block;
}

.lp2-hero-lede {
  margin: var(--sp-32) auto 0;
  font-size: var(--text-subheading);
  line-height: 1.55;
  color: var(--color-slate-blue);
  max-width: 660px;
  font-weight: var(--weight-regular);
}

.lp2-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-40);
  justify-content: center;
}

/* =================== Marquee social proof =================== */
.lp2-marquee-band {
  padding: var(--sp-48) 0;
  background: var(--color-platinum-white);
  border-bottom: 1px solid rgb(10 37 64 / 0.06);
  overflow: hidden;
}
.lp2-marquee-label {
  margin: 0 0 var(--sp-20);
  text-align: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ghost-gray);
}
.lp2-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.lp2-marquee-track {
  display: inline-flex;
  gap: var(--sp-48);
  white-space: nowrap;
  animation: lp2-marquee-scroll 32s linear infinite;
  padding-right: var(--sp-48);
}
.lp2-marquee-track span {
  font-size: var(--text-subheading);
  font-weight: var(--weight-medium);
  color: var(--color-slate-blue);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
@keyframes lp2-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== Stats band =================== */
.lp2-stats-band {
  padding: var(--sp-80) var(--container-pad);
  background: var(--color-platinum-white);
}
.lp2-stats-tagline {
  margin: 0 auto var(--sp-12);
  max-width: var(--container-max);
  text-align: center;
  font-family: var(--font-sohne);
  font-size: var(--text-subheading);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  color: var(--color-midnight-ink);
}
.lp2-stats-subtagline {
  margin: 0 auto var(--sp-48);
  max-width: 760px;
  text-align: center;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  letter-spacing: -0.005em;
  color: var(--color-slate-blue);
}
.lp2-stats-emph {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 0.24em 1.05em;
  border-radius: 999px;
  background: linear-gradient(120deg, #06b6d4 0%, #2563eb 50%, #10b981 100%);
  border: 1.5px solid rgb(255 255 255 / 0.35);
  box-shadow:
    0 0 0 1px rgb(8 145 178 / 0.4),
    0 1px 0 rgb(255 255 255 / 0.55) inset,
    0 8px 24px -8px rgb(37 99 235 / 0.55),
    0 0 22px -4px rgb(6 182 212 / 0.55);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.18);
  white-space: nowrap;
}
.lp2-stats-emph-num {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgb(255 255 255 / 0.55), 0 1px 0 rgb(0 0 0 / 0.2);
}
.lp2-stats {
  margin: 0 auto;
  padding: 0;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-48);
}
.lp2-stats > div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding-left: var(--sp-20);
  border-left: 1px solid var(--color-powder-blue);
}
.lp2-stats dt {
  margin: 0;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ghost-gray);
  order: 2;
}
.lp2-stats dd {
  margin: 0;
  font-size: var(--text-display);
  line-height: 1;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  color: var(--color-midnight-ink);
  font-variant-numeric: tabular-nums;
  order: 1;
  background: linear-gradient(135deg, var(--color-midnight-ink) 0%, var(--color-deep-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp2-stats span {
  font-size: var(--text-body-sm);
  color: var(--color-slate-blue);
  line-height: 1.5;
  order: 3;
}

/* =================== Comparison visual =================== */
.lp2-comparison-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-96) var(--container-pad) var(--sp-120);
  background:
    linear-gradient(180deg, var(--color-platinum-white) 0%, var(--color-porcelain-white) 100%);
  border-top: 1px solid rgb(10 37 64 / 0.05);
  border-bottom: 1px solid rgb(10 37 64 / 0.06);
}

.lp2-comparison-copy {
  max-width: 900px;
  margin: 0 auto var(--sp-48);
  text-align: center;
}

.lp2-comparison-copy h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}

.lp2-comparison-copy p:not(.lp2-kicker) {
  max-width: 760px;
  margin: var(--sp-20) auto 0;
  color: var(--color-slate-blue);
  font-size: var(--text-subheading);
  line-height: 1.55;
}

.lp2-comparison-figure {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgb(10 37 64 / 0.08);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: var(--shadow-bleed);
}

.lp2-comparison-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* "Customizable" badge — Stripe-style violet pill stamped next to the
   DD axes label. Visual distinction without changing the layout grid. */
.lp2-stat-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--color-deep-violet);
  color: var(--color-platinum-white);
  font-family: var(--font-sohne);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  vertical-align: middle;
  position: relative;
  top: -1px;
  line-height: 1.4;
}

/* Slight emphasis on the customizable stat block — left rule is violet
   instead of powder blue to telegraph "you control this one". */
.lp2-stat-customizable {
  border-left-color: var(--color-deep-violet) !important;
  border-left-width: 2px !important;
  padding-left: calc(var(--sp-20) - 1px) !important;
}

/* =================== Section base =================== */
.lp2-section {
  position: relative;
  padding: var(--sp-120) var(--container-pad);
  overflow: hidden;
  isolation: isolate;
}
.lp2-section-default { background: var(--color-platinum-white); }
.lp2-section-porcelain { background: var(--color-porcelain-white); }
.lp2-section > * {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.lp2-section::before,
.lp2-section::after,
.lp2-final::before,
.lp2-final::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: clamp(18px, 2.4vw, 32px);
  height: clamp(18px, 2.4vw, 32px);
  opacity: 0.38;
  border-radius: clamp(4px, 0.5vw, 7px);
  background: linear-gradient(135deg, #7a5cff 0%, #4ea7ff 54%, #38d7e7 100%);
  box-shadow: 0 8px 18px rgb(10 37 64 / 0.10);
  filter: saturate(1.16);
  --lp2-cell-rotate: 0deg;
  --lp2-cell-spin: 22s;
  transform: rotate(var(--lp2-cell-rotate));
  animation: lp2-cell-spin var(--lp2-cell-spin) linear infinite;
}

.lp2-section::before,
.lp2-final::before {
  left: max(18px, calc((100% - var(--container-max)) / 2 - 44px));
  top: clamp(36px, 18%, 150px);
  --lp2-cell-rotate: -7deg;
  --lp2-cell-spin: 24s;
}
.lp2-section::after,
.lp2-final::after {
  right: max(18px, calc((100% - var(--container-max)) / 2 - 44px));
  bottom: clamp(40px, 18%, 160px);
  --lp2-cell-rotate: 18deg;
  --lp2-cell-spin: 28s;
}
.lp2-section:nth-of-type(2n)::before {
  top: auto;
  bottom: clamp(52px, 22%, 180px);
  --lp2-cell-rotate: -16deg;
  --lp2-cell-spin: 31s;
}
.lp2-section:nth-of-type(2n)::after {
  top: clamp(44px, 16%, 140px);
  bottom: auto;
  --lp2-cell-rotate: 33deg;
  --lp2-cell-spin: 20s;
}
.lp2-section:nth-of-type(3n)::before {
  background: linear-gradient(135deg, #58c9ff 0%, #6ee6c3 100%);
  opacity: 0.64;
  --lp2-cell-rotate: 24deg;
  --lp2-cell-spin: 26s;
}
.lp2-section:nth-of-type(3n)::after {
  background: linear-gradient(135deg, #8b5cf6 0%, #50d5ff 52%, #82e6c2 100%);
  opacity: 0.68;
  --lp2-cell-rotate: -28deg;
  --lp2-cell-spin: 34s;
}
.lp2-section:nth-of-type(4n)::before {
  --lp2-cell-rotate: 41deg;
  --lp2-cell-spin: 18s;
}
.lp2-section:nth-of-type(4n)::after {
  --lp2-cell-rotate: -11deg;
  --lp2-cell-spin: 30s;
}

.lp2-section:nth-of-type(5n)::before,
.lp2-final::after {
  animation-direction: reverse;
}

@keyframes lp2-cell-spin {
  from { transform: rotate(var(--lp2-cell-rotate)); }
  to { transform: rotate(calc(var(--lp2-cell-rotate) + 1turn)); }
}

/* Footer stays opaque on top so its dark surface is never washed by particles. */
.lp2-footer { position: relative; z-index: 3; }

.lp2-sec-head {
  max-width: 880px;
  margin: 0 auto var(--sp-64);
  text-align: center;
}
.lp2-kicker {
  margin: 0 0 var(--sp-16);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-violet);
}
.lp2-sec-head h2 {
  margin: 0;
  font-family: var(--font-sohne);
  font-size: clamp(32px, 4vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.lp2-sec-lede {
  margin: var(--sp-20) auto 0;
  font-size: var(--text-subheading);
  line-height: 1.55;
  color: var(--color-slate-blue);
  max-width: 720px;
  font-weight: var(--weight-regular);
}

/* =================== Bento tiles (Method) =================== */
.lp2-bento {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-20);
}
.lp2-bento-1 { grid-column: span 3; min-height: 280px; }
.lp2-bento-2 { grid-column: span 3; min-height: 280px; }
.lp2-bento-3 { grid-column: span 2; min-height: 240px; }
.lp2-bento-4 { grid-column: span 2; min-height: 240px; }
.lp2-bento-5 { grid-column: span 2; min-height: 240px; }

.lp2-bento-tile {
  position: relative;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: var(--color-porcelain-white);
  isolation: isolate;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.lp2-bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.lp2-bento-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lp2-bento-1 .lp2-bento-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgb(99 91 255 / 0.18), transparent 55%),
    radial-gradient(circle at 20% 90%, rgb(80 213 255 / 0.18), transparent 55%),
    var(--color-porcelain-white);
}
.lp2-bento-2 .lp2-bento-overlay {
  background:
    radial-gradient(circle at 70% 30%, rgb(255 132 132 / 0.16), transparent 55%),
    radial-gradient(circle at 10% 90%, rgb(138 92 246 / 0.18), transparent 55%),
    var(--color-porcelain-white);
}
.lp2-bento-3 .lp2-bento-overlay {
  background:
    radial-gradient(circle at 80% 80%, rgb(130 230 194 / 0.22), transparent 60%),
    var(--color-porcelain-white);
}
.lp2-bento-4 .lp2-bento-overlay {
  background:
    radial-gradient(circle at 30% 80%, rgb(255 132 132 / 0.18), transparent 60%),
    var(--color-porcelain-white);
}
.lp2-bento-5 .lp2-bento-overlay {
  background:
    radial-gradient(circle at 60% 20%, rgb(138 92 246 / 0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgb(80 213 255 / 0.16), transparent 60%),
    var(--color-porcelain-white);
}

.lp2-bento-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  padding: var(--sp-32);
}
.lp2-stage-num {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  color: var(--color-deep-violet);
  text-transform: uppercase;
}
.lp2-bento-tile h3 {
  margin: 0;
  font-size: var(--text-heading-sm);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}
.lp2-bento-tile p {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--color-slate-blue);
  flex: 1;
}
.lp2-bento-tile .lp2-arrow-link { margin-top: var(--sp-8); }

/* =================== Hypothesis brief =================== */
.lp2-unit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp-32);
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
}

.lp2-feature-card {
  background: var(--color-platinum-white);
  border: 0;
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.lp2-brief-head {
  padding: var(--sp-20) var(--sp-24);
  background: var(--color-porcelain-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-brief-id-row, .lp2-brief-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8);
}
.lp2-id {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  background: var(--color-platinum-white);
  border: 1px solid var(--color-powder-blue);
  border-radius: var(--radius-tag);
  padding: 4px 10px;
  color: var(--color-midnight-ink);
}

.lp2-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-tag);
  padding: 3px 8px;
  background: var(--color-platinum-white);
  border: 1px solid var(--color-stone-gray);
  color: var(--color-slate-blue);
}
.lp2-tag-layer { background: rgb(99 91 255 / 0.08); border-color: var(--color-washed-violet); color: var(--color-deep-violet); }
.lp2-tag-axis { background: var(--color-porcelain-white); border-color: var(--color-powder-blue); color: var(--color-slate-blue); }
.lp2-tag-proven { background: rgb(0 159 111 / 0.1); border-color: rgb(0 159 111 / 0.3); color: var(--color-accent-green); }
.lp2-tag-validating { background: rgb(255 97 24 / 0.1); border-color: rgb(255 97 24 / 0.3); color: #c84a13; }
.lp2-tag-open { background: var(--color-porcelain-white); border-color: var(--color-stone-gray); color: var(--color-ghost-gray); }
.lp2-tag-impact { background: var(--color-powder-blue); border-color: transparent; color: var(--color-midnight-ink); }
.lp2-tag-strength { background: rgb(99 91 255 / 0.08); border-color: var(--color-washed-violet); color: var(--color-deep-violet); }

.lp2-brief-claim {
  margin: 0;
  padding: var(--sp-24);
  font-size: var(--text-heading-sm);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: var(--weight-medium);
  color: var(--color-midnight-ink);
  border-bottom: 1px solid var(--color-powder-blue);
}

.lp2-brief-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-brief-row:last-of-type { border-bottom: 0; }
.lp2-brief-axis {
  padding: var(--sp-16) var(--sp-20);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate-blue);
  background: var(--color-porcelain-white);
  border-right: 1px solid var(--color-powder-blue);
}
.lp2-brief-row ul {
  margin: 0;
  padding: var(--sp-16) var(--sp-20);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.lp2-brief-row li {
  position: relative;
  padding-left: var(--sp-16);
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--color-slate-blue);
}
.lp2-brief-row li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-stone-gray);
}
.lp2-row-support .lp2-brief-axis { color: var(--color-accent-green); }
.lp2-row-support li::before { background: var(--color-accent-green); }
.lp2-row-contra .lp2-brief-axis { color: #c84a13; }
.lp2-row-contra li::before { background: var(--color-vibrant-orange); }
.lp2-row-open .lp2-brief-axis { color: var(--color-deep-violet); }
.lp2-row-open li::before { background: var(--color-soft-violet); }

.lp2-brief-foot {
  padding: var(--sp-16) var(--sp-24);
  background: var(--color-porcelain-white);
  border-top: 1px solid var(--color-powder-blue);
  font-size: var(--text-caption);
  color: var(--color-ghost-gray);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  align-items: center;
}

.lp2-ledger-callout {
  position: sticky;
  top: 92px;
  background: var(--color-platinum-white);
  border-radius: var(--radius-card-lg);
  padding: var(--sp-32);
  box-shadow: var(--shadow-card);
}
.lp2-ledger-callout h3 {
  margin: 0 0 var(--sp-12);
  font-size: var(--text-heading-sm);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}
.lp2-ledger-callout p {
  margin: 0 0 var(--sp-20);
  font-size: var(--text-body-sm);
  color: var(--color-slate-blue);
  line-height: 1.6;
}
.lp2-ledger-list {
  list-style: none;
  margin: 0 0 var(--sp-20);
  padding: 0;
  display: grid;
  gap: var(--sp-8);
}
.lp2-ledger-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--color-porcelain-white);
  border-radius: var(--radius-card);
}
.lp2-ledger-list code {
  width: fit-content;
  font-size: var(--text-body-sm);
  background: var(--color-platinum-white);
  border-color: var(--color-powder-blue);
  color: var(--color-deep-violet);
}
.lp2-ledger-list span {
  font-size: var(--text-caption);
  color: var(--color-ghost-gray);
}
.lp2-ledger-note {
  font-size: var(--text-caption) !important;
  color: var(--color-ghost-gray) !important;
  line-height: 1.55 !important;
  margin-bottom: var(--sp-16) !important;
}

/* =================== Matrix preview (cropped bleed) =================== */
.lp2-matrix-section { padding-bottom: var(--sp-80); }
.lp2-matrix {
  background: var(--color-platinum-white);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-bleed);
  overflow: hidden;
  max-width: var(--container-max);
  margin: 0 auto;
}
/* Cropped bleed: tilt slightly off the right edge on wide screens */
@media (min-width: 1280px) {
  .lp2-matrix-bleed {
    max-width: calc(var(--container-max) + 200px);
    margin-left: auto;
    margin-right: auto;
  }
}

.lp2-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-16) var(--sp-24);
  background: var(--color-porcelain-white);
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-matrix-toolbar input {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--color-powder-blue);
  border-radius: 6px;
  padding: 10px var(--sp-12);
  background: var(--color-platinum-white);
  font-family: var(--font-sohne);
  font-size: var(--text-body-sm);
  color: var(--color-ghost-gray);
}
.lp2-toggle {
  display: inline-flex;
  background: var(--color-platinum-white);
  border: 1px solid var(--color-powder-blue);
  border-radius: 6px;
  padding: 2px;
}
.lp2-toggle span {
  padding: 6px 14px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--color-slate-blue);
  border-radius: 4px;
}
.lp2-toggle .active {
  background: var(--color-deep-violet);
  color: var(--color-platinum-white);
  box-shadow: var(--shadow-sm);
}
.lp2-summary {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--color-slate-blue);
}

.lp2-layer { border-bottom: 1px solid var(--color-powder-blue); }
.lp2-layer:last-of-type { border-bottom: 0; }
.lp2-layer-head {
  padding: var(--sp-16) var(--sp-24);
  background: var(--color-platinum-white);
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-layer-head h3 {
  margin: 0;
  font-size: var(--text-subheading);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}
.lp2-layer-head h3 span {
  margin-left: var(--sp-8);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  color: var(--color-ghost-gray);
}

.lp2-mtx-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--color-platinum-white);
}
.lp2-mtx-table col.c-id { width: 86px; }
.lp2-mtx-table col.c-axis { width: 168px; }
.lp2-mtx-table col.c-impact { width: 96px; }
.lp2-mtx-table col.c-strength { width: 110px; }
.lp2-mtx-table col.c-status { width: 130px; }

.lp2-mtx-table thead th {
  background: var(--color-porcelain-white);
  text-align: left;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate-blue);
  padding: var(--sp-12) var(--sp-20);
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-mtx-table tbody td {
  padding: var(--sp-16) var(--sp-20);
  border-bottom: 1px solid var(--color-powder-blue);
  vertical-align: top;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--color-midnight-ink);
}
.lp2-mtx-table tbody tr:last-child td { border-bottom: 0; }
.lp2-mtx-table tbody tr:hover { background: var(--color-porcelain-white); }
.lp2-mtx-table td code {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  background: var(--color-porcelain-white);
}

.lp2-impact {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--color-platinum-white);
  border: 1px solid var(--color-stone-gray);
  color: var(--color-slate-blue);
}
.lp2-impact-critical { border-color: var(--color-vibrant-orange); color: var(--color-vibrant-orange); background: rgb(255 97 24 / 0.06); }
.lp2-impact-high { border-color: var(--color-vibrant-orange); color: #c84a13; }
.lp2-impact-medium { border-color: var(--color-soft-violet); color: var(--color-deep-violet); }
.lp2-impact-low { border-color: var(--color-accent-green); color: var(--color-accent-green); }

.lp2-strength {
  display: inline-flex;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--color-porcelain-white);
  border: 1px solid var(--color-powder-blue);
  color: var(--color-slate-blue);
}
.lp2-strength-strong { background: rgb(0 159 111 / 0.1); border-color: rgb(0 159 111 / 0.3); color: var(--color-accent-green); }
.lp2-strength-moderate { background: rgb(99 91 255 / 0.08); border-color: var(--color-washed-violet); color: var(--color-deep-violet); }
.lp2-strength-weak { background: rgb(255 97 24 / 0.1); border-color: rgb(255 97 24 / 0.3); color: #c84a13; }
.lp2-strength-unknown { background: var(--color-porcelain-white); border-color: var(--color-stone-gray); color: var(--color-ghost-gray); }

.lp2-matrix-caption {
  margin: var(--sp-24) auto 0;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-ghost-gray);
  max-width: 800px;
}

/* =================== Audience =================== */
.lp2-audience {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-24);
}
.lp2-audience-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  padding: var(--sp-40);
  background: var(--color-porcelain-white);
  border-radius: var(--radius-card-lg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.lp2-audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.lp2-audience-card header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--color-powder-blue);
}
.lp2-audience-tag {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-violet);
}
.lp2-audience-card h3 {
  margin: 0;
  font-size: var(--text-heading-sm);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}
.lp2-audience-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  flex: 1;
}
.lp2-audience-card li {
  position: relative;
  padding-left: var(--sp-24);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-slate-blue);
}
.lp2-audience-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-deep-violet);
  font-weight: var(--weight-semibold);
}

/* =================== Built-in analysis agents =================== */
.lp2-agent-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-24);
}
.lp2-agent-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  min-height: 260px;
  padding: var(--sp-32);
  background:
    radial-gradient(circle at 88% 12%, rgb(99 91 255 / 0.11), transparent 44%),
    var(--color-porcelain-white);
  border: 1px solid rgb(10 37 64 / 0.05);
  border-radius: var(--radius-card-lg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.lp2-agent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.lp2-agent-card-primary {
  grid-column: span 2;
  background:
    radial-gradient(circle at 90% 14%, rgb(80 213 255 / 0.20), transparent 42%),
    radial-gradient(circle at 12% 88%, rgb(255 132 132 / 0.14), transparent 48%),
    var(--color-porcelain-white);
}
.lp2-agent-label {
  width: fit-content;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-violet);
}
.lp2-agent-card h3 {
  margin: 0;
  font-size: var(--text-heading-sm);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
}
.lp2-agent-card p {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-slate-blue);
}
.lp2-agent-pack {
  margin-top: auto;
  padding-top: var(--sp-16);
  display: grid;
  gap: var(--sp-12);
  border-top: 1px solid var(--color-powder-blue);
}
.lp2-agent-pack-row {
  display: grid;
  gap: 6px;
}
.lp2-agent-pack-row span {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-violet);
  background: rgb(99 91 255 / 0.08);
  border: 1px solid var(--color-washed-violet);
  border-radius: var(--radius-tag);
  padding: 4px 7px;
}
.lp2-agent-pack-row p {
  color: var(--color-midnight-ink);
}
.lp2-agent-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: var(--sp-16) 0 0;
  display: grid;
  gap: var(--sp-8);
  border-top: 1px solid var(--color-powder-blue);
}
.lp2-agent-card li {
  position: relative;
  padding-left: var(--sp-20);
  font-size: var(--text-body-sm);
  line-height: 1.45;
  color: var(--color-midnight-ink);
}
.lp2-agent-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-deep-violet);
}

/* =================== Stack =================== */
.lp2-stack {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-24);
}
.lp2-stack-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 38px 230px;
  gap: 6px;
  align-items: end;
  min-height: 400px;
  padding: var(--sp-32);
  background: var(--color-platinum-white);
  border: 1px solid rgb(122 92 255 / 0.10);
  border-radius: var(--radius-card-lg);
  box-shadow: 0 18px 54px rgb(10 37 64 / 0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.lp2-stack-item::before,
.lp2-stack-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp2-stack-item::before {
  background-image: var(--stack-image);
  background-size: cover;
  background-position: center top;
  opacity: 1;
  transform: scale(1.02);
  transition: transform 420ms ease, opacity 420ms ease;
}
.lp2-stack-item::after {
  background:
    radial-gradient(circle at 8% 8%, rgb(124 92 255 / 0.10), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 0.00) 0%, rgb(255 255 255 / 0.64) 46%, rgb(255 255 255 / 0.96) 100%);
}
.lp2-stack-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgb(10 37 64 / 0.12);
}
.lp2-stack-item:hover::before {
  opacity: 1;
  transform: scale(1.055);
}
.lp2-stack-item h3 {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
  text-shadow: 0 1px 18px rgb(255 255 255 / 0.72);
}
.lp2-stack-item p {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-slate-blue);
}
.lp2-stack-item-agent {
  --stack-image: url("assets/landing-v2/stack-multi-agent-orchestrator-light.png");
}
.lp2-stack-item-graph {
  --stack-image: url("assets/landing-v2/stack-evidence-graph-light.png");
}
.lp2-stack-item-routing {
  --stack-image: url("assets/landing-v2/stack-hybrid-llm-routing-light.png");
}
.lp2-stack-item-markdown {
  --stack-image: url("assets/landing-v2/stack-markdown-native-light.png");
}

/* =================== Final CTA on gradient =================== */
.lp2-final {
  position: relative;
  --lp2-final-logo-size: 200px;
  --lp2-final-logo-zone: calc(var(--lp2-final-logo-size) + 20px);
  --lp2-final-text-y: calc((var(--lp2-final-logo-zone) - var(--lp2-final-logo-size)) / 2);
  padding: var(--sp-120) var(--container-pad);
  background: var(--color-platinum-white);
  overflow: hidden;
  isolation: isolate;
}
.lp2-mesh-final span {
  opacity: 0.45;
  filter: blur(100px);
}
.lp2-final-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(100px, 16vw, 100px);
  align-items: center;
  text-align: left;
}
.lp2-final-logo-zone {
  width: var(--lp2-final-logo-zone);
  height: var(--lp2-final-logo-zone);
  align-self: center;
  justify-self: end;
}
.lp2-final-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-16);
  min-height: var(--lp2-final-logo-size);
  margin-top: var(--lp2-final-text-y);
  max-width: 480px;
  justify-self: start;
}
.lp2-final h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
  color: var(--color-midnight-ink);
  max-width: 16ch;
}
.lp2-final p {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-slate-blue);
  max-width: 38ch;
}
.lp2-final-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-4);
}

/* =================== Request access =================== */
.lp2-request-section {
  border-top: 1px solid rgb(10 37 64 / 0.06);
}

.lp2-request-form {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-16);
  padding: var(--sp-32);
  background: var(--color-platinum-white);
  border: 1px solid rgb(10 37 64 / 0.08);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
}

.lp2-request-form label {
  display: grid;
  gap: var(--sp-8);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ghost-gray);
}

.lp2-request-form label:nth-child(3),
.lp2-request-form button,
.lp2-request-form p {
  grid-column: 1 / -1;
}

.lp2-request-form input,
.lp2-request-form textarea {
  width: 100%;
  border: 1px solid var(--color-powder-blue);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--color-platinum-white);
  color: var(--color-midnight-ink);
  font: inherit;
  font-size: var(--text-body-sm);
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
}

.lp2-request-form input:focus,
.lp2-request-form textarea:focus {
  outline: 2px solid rgb(99 91 255 / 0.28);
  outline-offset: 2px;
  border-color: var(--color-deep-violet);
}

.lp2-request-form button {
  justify-self: start;
  cursor: pointer;
}

.lp2-request-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.lp2-request-form p {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--color-ghost-gray);
}

.lp2-request-status[data-state="success"] {
  color: var(--color-accent-green);
}

.lp2-request-status[data-state="error"] {
  color: #c84a13;
}

@media (max-width: 980px) {
  .lp2-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lp2-final-text {
    align-items: center;
    min-height: auto;
    margin-top: 0;
  }
  .lp2-final p { margin-left: auto; margin-right: auto; }
  .lp2-final-actions { justify-content: center; }
  .lp2-final-logo-zone { min-height: 200px; }
}

/* =================== Footer (dense, dark) =================== */
.lp2-footer {
  background: var(--color-midnight-ink);
  color: rgb(255 255 255 / 0.7);
  padding: var(--sp-80) var(--container-pad) var(--sp-32);
  font-size: var(--text-body-sm);
}
.lp2-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(0, 2fr);
  gap: var(--sp-64);
  padding-bottom: var(--sp-48);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.lp2-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.lp2-footer-brand .lp2-mark { width: 32px; height: 32px; }
.lp2-footer-brand .lp2-wordmark-light {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  width: 110px;
  height: 24px;
}
.lp2-footer-brand p {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.55);
  max-width: 320px;
}

.lp2-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-32);
}
.lp2-footer-cols h4 {
  margin: 0 0 var(--sp-16);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}
.lp2-footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.lp2-footer-cols a {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: rgb(255 255 255 / 0.85);
  transition: color 140ms ease;
}
.lp2-footer-cols a:hover { color: var(--color-platinum-white); }

.lp2-footer-legal {
  max-width: var(--container-max);
  margin: var(--sp-32) auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-16);
  font-size: 13px;
  color: rgb(255 255 255 / 0.45);
}

/* =================== Responsive =================== */
@media (max-width: 1080px) {
  .lp2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-32); }
  .lp2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp2-bento-1, .lp2-bento-2, .lp2-bento-3, .lp2-bento-4, .lp2-bento-5 {
    grid-column: span 1;
    min-height: 220px;
  }
  .lp2-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp2-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp2-unit-grid { grid-template-columns: 1fr; }
  .lp2-ledger-callout { position: static; }
  .lp2-footer-inner { grid-template-columns: 1fr; gap: var(--sp-40); }
  .lp2-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lp2-topbar { grid-template-columns: 1fr auto; padding: var(--sp-12) var(--sp-20); }
  .lp2-nav, .lp2-link-secondary { display: none; }
  .lp2-section { padding: var(--sp-80) var(--sp-20); }
  .lp2-hero { padding: var(--sp-96) var(--sp-20) var(--sp-80); }
  .lp2-final { padding: var(--sp-96) var(--sp-20); }
  .lp2-comparison-band { padding: var(--sp-64) var(--sp-20) var(--sp-80); }
  .lp2-comparison-copy { margin-bottom: var(--sp-32); }
  .lp2-comparison-copy p:not(.lp2-kicker) { font-size: var(--text-body); }
  .lp2-comparison-figure { padding: 6px; border-radius: 14px; }
  .lp2-comparison-figure img { border-radius: 10px; }
  .lp2-stats-band { padding: var(--sp-48) var(--sp-20); }
  .lp2-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
  .lp2-bento { grid-template-columns: 1fr; }
  .lp2-audience { grid-template-columns: 1fr; }
  .lp2-agent-grid { grid-template-columns: 1fr; }
  .lp2-agent-card-primary { grid-column: span 1; }
  .lp2-stack { grid-template-columns: 1fr; }
  .lp2-stack-item {
    grid-template-rows: 1fr auto auto;
  }
  .lp2-request-form { grid-template-columns: 1fr; padding: var(--sp-24); }
  .lp2-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-24); }
  .lp2-marquee-track { gap: var(--sp-32); }
  .lp2-marquee-track span { font-size: var(--text-body); }

  .lp2-mtx-table thead { display: none; }
  .lp2-mtx-table, .lp2-mtx-table tbody, .lp2-mtx-table tr, .lp2-mtx-table td {
    display: block; width: 100%;
  }
  .lp2-mtx-table tr {
    border-bottom: 1px solid var(--color-powder-blue);
    padding: var(--sp-12) var(--sp-20);
  }
  .lp2-mtx-table tr:last-child { border-bottom: 0; }
  .lp2-mtx-table td { padding: var(--sp-4) 0; border-bottom: 0; }
  .lp2-mtx-table td:nth-child(1) { display: inline-block; margin-right: var(--sp-8); }
  .lp2-mtx-table td:nth-child(2) { display: inline-block; }
  .lp2-mtx-table td:nth-child(3) { display: block; padding: var(--sp-8) 0; font-weight: var(--weight-medium); }
  .lp2-mtx-table td:nth-child(4),
  .lp2-mtx-table td:nth-child(5),
  .lp2-mtx-table td:nth-child(6) {
    display: inline-flex; margin-right: var(--sp-8);
  }

  .lp2-footer-legal { flex-direction: column; gap: var(--sp-8); }
}

/* ============================================================
 * MOTION LAYER
 * Concept: hypothesis (mesh gradient) → matrix (grid).
 * As the user scrolls the hero, the mesh resolves into a grid.
 * Loops, reveals, count-up — all gated by prefers-reduced-motion.
 * ============================================================ */

/* ---- Mesh blob continuous drift + color cycle ---- */
@keyframes lp2-drift-a {
  0%   { transform: translate(0%, 0%) scale(1); }
  33%  { transform: translate(8%, 4%) scale(1.08); }
  66%  { transform: translate(-4%, 6%) scale(0.96); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes lp2-drift-b {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-6%, -4%) scale(1.06); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes lp2-drift-c {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(4%, -6%) scale(1.1); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes lp2-drift-d {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-3%, 5%) scale(0.94); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes lp2-hue-shift {
  0%   { filter: blur(80px) hue-rotate(0deg); }
  50%  { filter: blur(80px) hue-rotate(40deg); }
  100% { filter: blur(80px) hue-rotate(0deg); }
}

.lp2-mesh-animated > span {
  animation: lp2-hue-shift 16s ease-in-out infinite;
  will-change: transform, filter;
}
.lp2-mesh-animated .lp2-mesh-a { animation: lp2-drift-a 22s ease-in-out infinite, lp2-hue-shift 18s ease-in-out infinite; }
.lp2-mesh-animated .lp2-mesh-b { animation: lp2-drift-b 26s ease-in-out infinite, lp2-hue-shift 20s ease-in-out infinite reverse; }
.lp2-mesh-animated .lp2-mesh-c { animation: lp2-drift-c 30s ease-in-out infinite, lp2-hue-shift 24s ease-in-out infinite; }
.lp2-mesh-animated .lp2-mesh-d { animation: lp2-drift-d 28s ease-in-out infinite, lp2-hue-shift 22s ease-in-out infinite reverse; }

/* ---- Hero scroll variable: 0 (top) → 1 (mostly scrolled out) ---- */
.lp2-hero { --hero-scroll: 0; }

/* As scroll progresses: mesh reduces blur + opacity, grid fades in */
.lp2-hero .lp2-mesh {
  opacity: calc(1 - var(--hero-scroll) * 0.55);
  transform: translateY(calc(var(--hero-scroll) * -40px));
  transition: opacity 200ms linear, transform 200ms linear;
}
.lp2-hero .lp2-mesh > span {
  filter: blur(calc(80px - var(--hero-scroll) * 30px)) hue-rotate(calc(var(--hero-scroll) * 60deg));
}

/* ---- Hero grid overlay (matrix metaphor — appears as you scroll) ---- */
.lp2-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(99 91 255 / 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(99 91 255 / 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
  opacity: calc(var(--hero-scroll) * 0.9);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  transition: opacity 200ms linear;
}

/* Hero text: small parallax — copy stays sharper while gradient moves */
.lp2-hero-inner {
  transform: translateY(calc(var(--hero-scroll) * -16px));
  transition: transform 200ms linear;
}

/* ---- Gradient text: continuously cycling hypothesis / structure word ---- */
.lp2-grad-word {
  background: linear-gradient(
    120deg,
    var(--color-mesh-violet) 0%,
    var(--color-mesh-coral) 25%,
    var(--color-deep-violet) 50%,
    var(--color-mesh-cyan) 75%,
    var(--color-mesh-violet) 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
  animation: lp2-grad-cycle 9s ease-in-out infinite;
}
@keyframes lp2-grad-cycle {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Reveal-on-enter ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveals start slightly later so they layer over the gradient settle */
.lp2-hero [data-reveal] {
  transition-duration: 800ms;
}

/* ---- Stats count-up: tabular feel, gradient stays static ---- */
.lp2-stats dd {
  transition: opacity 300ms ease;
}

/* ---- Final CTA mesh — slow pulse so the closing band feels alive ---- */
.lp2-mesh-final > span {
  animation: lp2-final-pulse 14s ease-in-out infinite;
}
@keyframes lp2-final-pulse {
  0%   { transform: scale(1); opacity: 0.45; }
  50%  { transform: scale(1.08); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0.45; }
}
.lp2-mesh-final .lp2-mesh-a { animation-delay: 0s; }
.lp2-mesh-final .lp2-mesh-b { animation-delay: 4s; }
.lp2-mesh-final .lp2-mesh-c { animation-delay: 8s; }

/* ---- Marquee: pause on hover so the band feels interactive ---- */
.lp2-marquee:hover .lp2-marquee-track {
  animation-play-state: paused;
}

/* ---- Bento tiles: extra polish on hover (overlay subtly shifts) ---- */
.lp2-bento-tile .lp2-bento-overlay {
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lp2-bento-tile:hover .lp2-bento-overlay {
  transform: scale(1.06);
}

/* ---- Inline arrow link: arrow translate already in base; keep ---- */

/* ============================================================
 * PARTICLE STAGE — scroll-driven mesh → logo crystallization
 * Six fixed-position blobs animated entirely by JS.
 * Stroke + circle fade in at end to complete the brand mark.
 * ============================================================ */
.lp2-particle-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Always paints in front of sections, but JS keeps opacity very low during
     mid-scroll (~0.10) so body copy stays fully readable through the wash.
     Opacity ramps up at the hero entry and at the final lock — those are the
     moments where the gradient drama is supposed to be visible. */
  z-index: 4;
  mix-blend-mode: normal;
}
.lp2-particle-stage.is-locked {
  z-index: 5;
}

.lp2-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: var(--color-deep-violet);
  opacity: 0;
  filter: blur(70px);
  transform: translate3d(0, 0, 0) scale(2);
  will-change: transform, filter, background, border-radius, opacity;
  /* All animated transforms happen via JS; CSS transition keeps lock-in crisp */
}

/* When the stage locks, JS calls update(1.0) which writes the final cell
   visuals as inline styles. The transitions below are defined ONLY under the
   .is-locked selector — they become active at the moment the class is added,
   so the small visual delta between the user's actual scroll position and
   the fully-locked state animates smoothly instead of snapping. During the
   pre-lock scroll-driven phase no transitions are active, so per-frame style
   updates remain instant. */
.lp2-particle-stage.is-locked .lp2-particle {
  filter: blur(0);
  box-shadow: 0 4px 12px rgb(10 37 64 / 0.12);
  transition:
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 500ms ease-out,
    background-color 600ms ease-out,
    border-radius 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 500ms ease-out,
    box-shadow 240ms ease-out 200ms;
}
.lp2-particle-stage.is-locked .lp2-particle-svg {
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms;
}

/* Final SVG logo — the actual hypogrid-mark.svg fades in to replace the
   converging particle cells. JS owns the transform (positioning + scale).
   A subtle drop-shadow gives it weight against the white section. */
.lp2-particle-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  opacity: 0;
  z-index: 3;
  transform: translate(0, 0) scale(0.92);
  transform-origin: center center;
  filter: drop-shadow(0 16px 32px rgb(10 37 64 / 0.14)) drop-shadow(0 4px 8px rgb(10 37 64 / 0.08));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* When particles take over, attenuate the existing decorative mesh in hero
   and final CTA so they don't compete with the assembled logo. */
.lp2-particle-stage ~ * { /* no-op selector — placeholder for clarity */ }

/* Once the stage is locked, the final section's own mesh fades quickly so
   the logo reveal isn't muddied by additional gradient noise. */
.lp2-particle-stage.is-locked ~ main .lp2-mesh-final {
  opacity: 0.15;
  transition: opacity 400ms ease-out;
}

/* Logo dimensions stay constant across viewports — 173×173 fits comfortably
   even on a 390px-wide phone, and the constraint keeps stroke/circle math
   simple. JS positions the particles in pixel offsets from viewport center. */

/* ---- Reduced motion: kill all animations + zero out scroll var ---- */
@media (prefers-reduced-motion: reduce) {
  .lp2-mesh-animated > span,
  .lp2-mesh-final > span,
  .lp2-grad-word,
  .lp2-marquee-track,
  .lp2-section::before,
  .lp2-section::after,
  .lp2-final::before,
  .lp2-final::after {
    animation: none !important;
  }
  .lp2-grad-word {
    background-position: 50% 50%;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp2-hero { --hero-scroll: 0 !important; }
  .lp2-hero-grid { opacity: 0 !important; }
  .lp2-particle-stage { display: none !important; }
}
