/* BloomX landing page
   Brand: Purple (#62257E) on cream (#F7F2E9), green (#3AAA35) as punctuation.
   Type: Montserrat throughout (Afek fallback, matches bloomx.ag actual loaded font).
*/

:root {
  --plum: #62257E;
  --plum-dark: #431F4D;
  --green: #3AAA35;
  --green-soft: #92C575;
  --success: #2E972A;
  --cream: #F7F2E9;
  --cream-deep: #EEE6D4;
  --white: #FFFFFF;
  --ink: #2A1631;
  --muted: #6B5A6F;
  --rule: rgba(67, 31, 77, 0.14);
  --shadow-sm: 0 1px 2px rgba(67, 31, 77, 0.06);
  --shadow-md: 0 8px 24px rgba(98, 37, 126, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap-max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 90% -10%, rgba(146, 197, 117, 0.16), transparent 70%),
    radial-gradient(900px 500px at -10% 10%, rgba(98, 37, 126, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 242, 233, 0.85);
  backdrop-filter: saturate(1.1) blur(4px);
  position: sticky; top: 0; z-index: 20;
}
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { display: block; height: 36px; width: auto; }
.header-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-dark);
  opacity: 0.75;
  text-align: right;
}

/* Type + structure */
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--plum);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
}
h1 {
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.02em;
  color: var(--plum-dark);
  max-width: 22ch;
}
h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  max-width: 24ch;
}
h3 { font-size: 19px; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }

.section-eyebrow, .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid rgba(58, 170, 53, 0.35);
  border-radius: 999px;
  background: rgba(58, 170, 53, 0.06);
}

/* Hero */
.hero { padding: 64px 0 40px; position: relative; }
.hero .deck {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--plum-dark);
  max-width: 62ch;
  margin-top: 28px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat + .stat { padding-left: 20px; }
.stat-num {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Sections */
section { padding: 72px 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.col-lead h2 { margin-top: 14px; }
.col-body p { font-size: 17px; }

.pull {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
  margin: 28px 0 0;
  color: var(--plum-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  font-style: normal;
}

/* 60/30/10 layers */
.layers { background: var(--cream-deep); }
.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.layer {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.layer h3 { color: var(--plum-dark); }
.layer p { color: var(--ink); font-size: 15.5px; line-height: 1.6; margin: 0; }
.layer-bar {
  height: 10px;
  background: rgba(67, 31, 77, 0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.layer-bar span {
  position: absolute;
  right: -2px;
  top: -24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.layer-bar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--plum);
  border-radius: 999px;
}
.bar-60::before { width: 60%; }
.bar-30::before { width: 30%; background: var(--green); }
.bar-10::before { width: 10%; background: var(--green-soft); }

/* Hypothesis */
.hypothesis { background: var(--plum); color: var(--cream); }
.hypothesis .section-eyebrow {
  color: var(--green-soft);
  border-color: rgba(146, 197, 117, 0.45);
  background: rgba(146, 197, 117, 0.1);
}
.hyp-body { max-width: 900px; }
.big-line {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 16px 0 40px;
}
.hyp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.hyp-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 242, 233, 0.18);
}
.hyp-list li:first-child { border-top: 0; padding-top: 0; }
.hyp-list .bullet {
  width: 10px; height: 10px; margin-top: 9px;
  background: var(--green-soft);
  border-radius: 2px;
  display: inline-block;
}
.hyp-list p { color: rgba(247, 242, 233, 0.92); margin: 0; font-size: 16.5px; line-height: 1.55; }

/* Case study + paper */
.paper { background: var(--white); }
.paper h2 { max-width: 30ch; }
.paper-link a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--cream);
  text-decoration: none;
  color: var(--plum);
  transition: border-color 120ms ease, transform 120ms ease;
}
.paper-link a:hover { border-color: var(--plum); transform: translateY(-1px); color: var(--plum); }

/* Partner */
.partner { background: var(--cream-deep); }
.partner-body {
  max-width: 70ch;
  font-size: 16.5px;
  color: var(--plum-dark);
  margin-top: 10px;
}
.partner strong { color: var(--plum); }

/* CTA */
.cta {
  background: var(--plum-dark);
  color: var(--cream);
  padding: 96px 0;
}
.cta .section-eyebrow {
  color: var(--green-soft);
  border-color: rgba(146, 197, 117, 0.45);
  background: rgba(146, 197, 117, 0.1);
}
.cta-wrap { max-width: 780px; }
.cta h2 {
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 6px 0 18px;
}
.cta-body {
  color: rgba(247, 242, 233, 0.88);
  font-size: 18px;
  line-height: 1.55;
  max-width: 58ch;
  margin-bottom: 32px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16.5px;
  border-radius: var(--radius-md);
  letter-spacing: -0.005em;
  box-shadow: 0 10px 30px rgba(58, 170, 53, 0.28);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  min-height: 48px;
}
.cta-button:hover {
  background: var(--success);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(58, 170, 53, 0.38);
}
.cta-button:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 3px;
}
.cta-arrow { transition: transform 140ms ease; }
.cta-button:hover .cta-arrow { transform: translateX(4px); }
.cta-sub {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(247, 242, 233, 0.7);
}
.cta-sub a { color: var(--green-soft); }
.cta-sub a:hover { color: var(--white); }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--rule); }
.footer-wrap { display: flex; flex-direction: column; gap: 6px; }
.prep { margin: 0; font-size: 14px; color: var(--plum-dark); }
.prep a { color: var(--plum); }
.prep-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .layer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--rule); padding: 18px 16px 18px 0; }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 24px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header { padding: 16px 0; }
  .header-meta { display: none; }
  .logo img { height: 32px; }
  h1 { font-size: 32px; line-height: 1.14; }
  h2 { font-size: 24px; }
  .hero { padding: 36px 0 16px; }
  .hero .deck { font-size: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .stat-num { font-size: 28px; }
  .layer { padding: 22px; }
  .cta { padding: 64px 0; }
  .cta-button { width: 100%; justify-content: center; padding: 16px 20px; }
  .big-line { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
