/* ============================================================
   CoreGrid — SECTIONS
   Hero · Thesis · Branches · Climb · Fit · Why · FAQ · CTA
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(104px, 13vh, 168px) clamp(76px, 10vh, 120px); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink-soft);
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--hair-2);
  background: rgba(99,140,255,0.04); margin-bottom: 28px; white-space: nowrap;
}
.hero__badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt-300); box-shadow: 0 0 0 0 var(--cobalt-glow); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(121,160,255,.5); } 70% { box-shadow: 0 0 0 10px rgba(121,160,255,0); } 100% { box-shadow: 0 0 0 0 rgba(121,160,255,0); } }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero__h1 em { font-style: normal; }
.hero__h1 .grad-rev { text-shadow: 0 0 32px rgba(232,181,99,0.28); }
.hero__h1 .grad-cost { text-shadow: 0 0 36px rgba(83,132,255,0.35); }
.hero .lede { margin-bottom: 34px; max-width: 58ch; }

/* dual capture */
.captures { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 18px; max-width: 880px; align-items: stretch; }
.capt {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  border: 1px solid var(--hair-2); border-radius: var(--r-lg);
  padding: 26px 26px 24px; background: rgba(9,14,31,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s, box-shadow .3s; overflow: hidden;
}
.capt__spot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(76,123,255,0.12), transparent 60%); }
.capt:hover .capt__spot { opacity: 1; }
.capt--primary { border-color: var(--hair-3); box-shadow: 0 24px 60px -32px rgba(76,123,255,0.4); background: linear-gradient(180deg, rgba(20,40,110,0.22), rgba(9,14,31,0.6)); }
.capt--primary:hover { border-color: var(--cobalt-400); }
.capt--secondary:hover { border-color: var(--hair-3); }
.capt__label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.capt--primary .capt__label { color: var(--cobalt-300); }
.capt__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: -0.015em; margin-bottom: 8px; }
.capt__copy { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; margin-bottom: 18px; text-wrap: pretty; flex: 1; }
.capt--primary .capt__copy { font-size: 14px; color: var(--ink-soft); }
.capture__form { display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--hair-2); border-radius: 999px; background: rgba(4,6,14,0.5); transition: border-color .25s, box-shadow .25s; }
.capture__form:focus-within { border-color: var(--cobalt-400); box-shadow: 0 0 0 4px var(--cost-soft); }
.capture__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-family: var(--body); font-size: 14.5px; padding: 9px 14px; }
.capture__input::placeholder { color: var(--ink-dim); }
.capt--secondary .btn { background: rgba(99,140,255,0.06); color: var(--ink); border: 1px solid var(--hair-2); }
.capt--secondary .btn:hover { border-color: var(--cobalt-400); background: rgba(76,123,255,0.12); }
.capture__ok { display: none; align-items: center; gap: 11px; font-size: 14px; color: var(--ink-soft); }
.capt.is-sent .capture__form { display: none; }
.capt.is-sent .capture__ok { display: flex; }
.check { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--cobalt-400); color: #04060e; font-size: 13px; }

/* hero stat strip */
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(36px, 5.5vh, 62px); padding-top: 30px; border-top: 1px solid var(--hair); max-width: 980px; }
.stat__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt-300); margin-bottom: 10px; }
.stat__t { font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.stat__d { font-size: 13.5px; color: var(--ink-mute); max-width: 30ch; }

/* scroll cue */
.scrollcue { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); pointer-events: none; transition: opacity .4s; }
.scrollcue span { text-indent: 0.2em; }
.scrollcue.is-hidden { opacity: 0; }
.scrollcue i { width: 1px; height: 38px; background: linear-gradient(180deg, var(--cobalt-300), transparent); position: relative; overflow: hidden; }
.scrollcue i::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cobalt-300); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 100% { top: 120%; } }

/* ---------------- THESIS ---------------- */
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.engine { position: relative; padding: 38px clamp(28px,3vw,44px) 42px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--elev); overflow: hidden; transition: border-color .35s, transform .35s; }
.engine__spot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.engine:hover { transform: translateY(-4px); }
.engine--rev:hover { border-color: var(--revenue-line); }
.engine--cost:hover { border-color: var(--cost-line); }
.engine--rev .engine__spot { background: radial-gradient(460px circle at var(--mx,80%) var(--my,0%), var(--revenue-soft), transparent 60%); }
.engine--cost .engine__spot { background: radial-gradient(460px circle at var(--mx,80%) var(--my,0%), var(--cost-soft), transparent 60%); }
.engine:hover .engine__spot { opacity: 1; }
.engine__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; position: relative; }
.engine h3 { margin: 16px 0 14px; position: relative; }
.engine__body { color: var(--ink-soft); position: relative; max-width: 46ch; }
.engine__list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.engine__list li { display: flex; align-items: baseline; gap: 13px; font-size: 15px; color: var(--ink-soft); }
.engine__list .mk { font-family: var(--mono); font-size: 12px; flex: none; }
.engine--rev .mk { color: var(--revenue); } .engine--cost .mk { color: var(--cost); }

/* ---------------- BRANCHES (the ladder of products) ---------------- */
.branches { margin-top: 56px; display: flex; flex-direction: column; }
.branch {
  position: relative; display: grid; grid-template-columns: 78px 1fr auto; gap: clamp(20px, 3vw, 48px);
  align-items: center; padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 38px);
  border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--elev);
  margin-bottom: 16px; overflow: hidden; transition: border-color .4s, transform .4s, background .4s;
}
.branch::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 0; background: linear-gradient(180deg, var(--revenue), var(--cost)); border-radius: 0 4px 4px 0; transition: height .45s var(--ease); }
.branch:hover::before { height: 64%; }
.branch__spot { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; pointer-events: none;
  background: radial-gradient(540px circle at var(--mx,50%) var(--my,50%), rgba(76,123,255,0.10), transparent 55%); }
.branch:hover { transform: translateY(-3px); border-color: var(--hair-3); background: var(--surface); }
.branch:hover .branch__spot { opacity: 1; }
/* ascending scope: each rung sits slightly inset wider as it climbs */
.branch--01 { margin-left: clamp(0px, 6vw, 96px); }
.branch--02 { margin-left: clamp(0px, 4vw, 64px); }
.branch--03 { margin-left: clamp(0px, 2vw, 32px); }
.branch--04 { margin-left: 0; border-color: var(--hair-2); background: linear-gradient(120deg, rgba(20,40,110,0.18), var(--elev)); }
.branch__rung { position: relative; }
.branch__no { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; transition: color .4s; }
.branch:hover .branch__no { color: var(--cobalt-300); }
.branch__no::after { content: ''; display: block; width: 28px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--revenue), var(--cost)); border-radius: 2px; transition: width .45s var(--ease); }
.branch:hover .branch__no::after { width: 44px; }
.branch__main { position: relative; max-width: 60ch; }
.branch__tagrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.branch__name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.branch__codename { font-family: var(--mono); font-size: 13px; color: var(--cobalt-300); }
.branch__hl { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 10px; }
.branch__body { color: var(--ink-mute); font-size: 15px; max-width: 58ch; text-wrap: pretty; }
.branch__side { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; min-width: 150px; }
.branch__metric { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.02em; }
.branch--01 .branch__metric, .branch--03 .branch__metric { color: var(--revenue); }
.branch--04 .branch__metric { color: var(--cobalt-300); }
.branch__mlab { font-size: 12.5px; color: var(--ink-mute); max-width: 22ch; line-height: 1.4; }
.branch__chev { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 6px; transition: color .3s, gap .3s; }
.branch:hover .branch__chev { color: var(--cobalt-300); gap: 10px; }
.branch__glyph { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--hair-2); display: grid; place-items: center; background: rgba(99,140,255,0.03); }
.branch__glyph svg { width: 20px; height: 20px; }
.branch__catalogue { font-size: 13.5px; color: var(--ink-dim); font-family: var(--mono); letter-spacing: 0.04em; text-align: center; margin-top: 26px; }
.branch__catalogue b { color: var(--cobalt-300); font-weight: 500; }

/* ---------------- CLIMB (ladder + express lane) ---------------- */
.climb { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 4vw, 64px); margin-top: 56px; align-items: start; }
.ladder { display: flex; flex-direction: column; gap: 0; position: relative; }
.ladder__line { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: var(--hair-2); }
.ladder__line i { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--revenue), var(--cost)); transition: height .3s linear; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 22px 0; align-items: start; }
.step__no { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hair-2); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; color: var(--ink-mute); transition: all .4s var(--ease); }
.step.in .step__no { border-color: var(--cobalt-400); color: var(--cobalt-300); box-shadow: 0 0 0 4px var(--cost-soft); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-mute); font-size: 15px; max-width: 52ch; }
.express { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--hair-2); border-radius: var(--r-lg); padding: 32px 30px 34px; background: linear-gradient(170deg, rgba(20,40,110,0.22), var(--elev)); overflow: hidden; }
.express__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 80% 0%, rgba(76,123,255,0.18), transparent 60%); }
.express > * { position: relative; }
.express h3 { margin: 16px 0 12px; }
.express p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; }
.express .btn { align-self: flex-start; }

/* ---------------- WHO IT'S FOR (recognition strip) ---------------- */
.recog { margin-top: 52px; border-top: 1px solid var(--hair); }
.recog__row { position: relative; display: grid; grid-template-columns: auto 1fr auto 64px; gap: clamp(18px,3vw,40px); align-items: center; padding: clamp(22px,2.6vw,32px) clamp(8px,1.4vw,20px); border-bottom: 1px solid var(--hair); transition: background .35s, padding-left .35s; cursor: pointer; overflow: hidden; }
.recog__row:hover { background: rgba(99,140,255,0.045); padding-left: clamp(18px, 2.4vw, 36px); }
.recog__go { justify-self: end; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--cobalt-300); white-space: nowrap; opacity: 0; transform: translateX(-10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.recog__row:hover .recog__go { opacity: 1; transform: none; }
.recog__idx { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); transition: color .35s; }
.recog__row:hover .recog__idx { color: var(--cobalt-300); }
.recog__exp { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.7rem); letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; text-wrap: balance; }
.recog__exp b { color: var(--ink-mute); font-weight: 500; transition: color .35s; }
.recog__row:hover .recog__exp b { color: var(--ink-soft); }
.recog__eg { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); letter-spacing: 0.05em; text-align: right; max-width: 26ch; line-height: 1.5; }

/* ---------------- WHY ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.why { position: relative; padding: 30px 26px 34px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--elev); overflow: hidden; transition: border-color .35s, transform .35s; }
.why:hover { transform: translateY(-3px); border-color: var(--hair-3); }
.why__spot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(76,123,255,0.10), transparent 60%); }
.why:hover .why__spot { opacity: 1; }
.why__icon { width: 34px; height: 34px; color: var(--cobalt-300); margin-bottom: 20px; position: relative; }
.why h4 { font-size: 1.12rem; margin-bottom: 10px; position: relative; }
.why p { font-size: 14.5px; color: var(--ink-mute); position: relative; }

/* ---------------- FAQ ---------------- */
.faq { margin-top: 44px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; transition: color .25s; }
.faq summary:hover { color: var(--cobalt-300); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-family: var(--mono); color: var(--ink-mute); transition: transform .35s var(--ease), color .25s; flex: none; font-size: 1.2rem; }
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--cobalt-300); }
.faq__a { overflow: hidden; }
.faq p { color: var(--ink-mute); padding: 0 0 28px; max-width: 74ch; }

/* ---------------- CLOSING CTA ---------------- */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair-2); background: var(--bg-2); padding: clamp(48px, 6vw, 88px); }
.cta-band__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 12% 8%, rgba(76,123,255,0.18), transparent 52%), radial-gradient(55% 120% at 92% 95%, var(--revenue-soft), transparent 52%); }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 18px; max-width: 18ch; }
.cta-band .lede { margin-bottom: 34px; }
.cta-band .captures { max-width: 820px; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .engines { grid-template-columns: 1fr; }
  .captures { grid-template-columns: 1fr; }
  .climb { grid-template-columns: 1fr; }
  .express { position: relative; top: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .branch { grid-template-columns: 60px 1fr; }
  .branch__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--hair); }
  .branch__mlab { text-align: left; }
  .branch--01, .branch--02, .branch--03 { margin-left: 0; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .recog__row { grid-template-columns: 1fr; gap: 6px; }
  .recog__idx { display: none; }
  .recog__eg { text-align: left; }
  .recog__go { justify-self: start; opacity: 1; transform: none; margin-top: 4px; }
  .capture__form { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .capture__input { padding: 12px 14px; }
  .capt .btn { justify-content: center; }
  .branch__no { font-size: 2rem; }
}
/* hide the scroll cue when the viewport is too short to fit it below the hero content */
@media (max-height: 840px) {
  .scrollcue { display: none; }
}
