/* ==========================================================================
   CORRISDALE — Landing page
   Full-bleed front door. The hero is deliberately navy in both themes
   (the brand ground behind the live model); everything below it follows
   the shared light/dark tokens from app.css.
   ========================================================================== */

/* Landing mode hides the classroom chrome and gives the page the whole window. */
.app.is-landing { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; }
.app.is-landing .topbar, .app.is-landing .rail, .app.is-landing .statusbar { display: none; }
#view-home.view-scroll { padding: 0; }

.landing { --ld-ink: #EEF2F8; --ld-ink-2: #AFBBD0; --ld-hero: #0E1830; color: var(--ink); }
.landing .mono { font-family: var(--f-mono); }

/* Nav */
.ld-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 3vw, 40px);
  background: color-mix(in srgb, var(--ld-hero) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--ld-ink);
}
.ld-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ld-ink); }
.ld-brand svg { width: 34px; height: 34px; }
.ld-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.ld-brand b { font: 800 15px/1 var(--f-display); font-stretch: 118%; letter-spacing: .05em; text-transform: uppercase; }
.ld-brand i { font: 500 9.5px/1.7 var(--f-mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ld-links { display: flex; gap: 22px; margin-left: auto; }
.ld-links a { color: var(--ld-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.ld-links a:hover { color: var(--ld-ink); }
.ld-cta-sm { height: 36px; padding: 0 14px; background: var(--gold); color: #1B2A4A; font-size: 13px; }

/* Hero: live 4D site */
.ld-hero { position: relative; height: clamp(520px, 78vh, 760px); background: var(--ld-hero); overflow: hidden; color: var(--ld-ink); }
.ld-stage { position: absolute; inset: 0; }
.ld-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.ld-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 24, 48, .92) 0%, rgba(14, 24, 48, .72) 30%, rgba(14, 24, 48, 0) 62%), linear-gradient(0deg, rgba(14, 24, 48, .75) 0%, rgba(14, 24, 48, 0) 28%); }
.ld-hero-copy { position: absolute; left: clamp(16px, 5vw, 72px); top: 50%; transform: translateY(-54%); max-width: 560px; pointer-events: none; }
.ld-hero-copy a { pointer-events: auto; }
.ld-kicker { margin: 0 0 18px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ld-h1 { margin: 0; font: 850 clamp(3.2rem, 7.4vw, 6.6rem)/.9 var(--f-display); font-stretch: 116%; letter-spacing: -.02em; color: #fff; }
.ld-h1 em { font-style: normal; color: var(--gold); }
.ld-lede { margin: 22px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.6; color: var(--ld-ink-2); }
.ld-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ld-btn-gold { background: var(--gold); color: #1B2A4A; border-color: var(--gold); height: 46px; padding: 0 22px; font-size: 15px; }
.ld-btn-gold:hover { background: #D6B75E; }
.ld-btn-line { border: 1px solid rgba(255, 255, 255, .35); color: #fff; height: 46px; padding: 0 20px; font-size: 15px; }
.ld-btn-line:hover { border-color: #fff; }
.ld-ticker {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: 26px; width: min(380px, calc(100% - 32px));
  padding: 14px 16px; border-radius: 9px; background: rgba(14, 24, 48, .78); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ld-t-date { margin: 0; font: 600 18px/1.2 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }
.ld-t-now { margin: 6px 0 10px; font-size: 13px; line-height: 1.4; color: var(--ld-ink-2); min-height: 2.8em; }
.ld-t-now b { font: 700 11px var(--f-mono); color: var(--pc); margin-right: 4px; }
.ld-t-now span { color: #7C889E; }
.ld-t-bar { height: 3px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.ld-t-bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* Live figures strip */
.ld-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); }
.ld-figs > div { padding: 22px clamp(12px, 2vw, 26px); border-right: 1px solid var(--line); min-width: 0; }
.ld-figs > div:last-child { border-right: 0; }
.ld-fig { margin: 0; font: 800 clamp(24px, 2.6vw, 36px)/1 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-fig-l { margin: 6px 0 2px; font: 600 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.ld-fig-n { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* Sections */
.ld-sec { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px) 0; }
.ld-sec-head { max-width: 760px; margin-bottom: 32px; }
.ld-h2 { margin: 10px 0 14px; font: 780 clamp(1.8rem, 3.2vw, 2.7rem)/1.06 var(--f-display); font-stretch: 106%; letter-spacing: -.01em; text-wrap: balance; }
.ld-p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 66ch; }

.ld-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ld-compare figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 14px; }
.ld-compare figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; }
.ld-compare figcaption span { color: var(--ink-3); font-size: 12.5px; }
.ld-compare svg { display: block; width: 100%; height: auto; }
.cb { opacity: .9; } .cb-civ { fill: var(--civ); } .cb-mec { fill: var(--mec); } .cb-eic { fill: var(--eic); } .cb-int { fill: var(--gold); }
.cb-crit { stroke: var(--crit); stroke-width: 1.4; }
.cf { stroke: var(--ink-3); stroke-width: 1.2; fill: none; }
.cl { stroke: var(--crit); stroke-width: 1.2; fill: none; }
.cd { fill: var(--gold); stroke: var(--navy); stroke-width: .6; }

.ld-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; border-top: 2px solid var(--ink); }
.ld-trio article { padding: 18px 20px 4px 0; }
.ld-trio article + article { padding-left: 20px; border-left: 1px solid var(--line); }
.ld-code { margin: 0; font: 850 34px/1 var(--f-display); font-stretch: 125%; color: var(--pc); }
.ld-pname { margin: 10px 0 0; font-weight: 650; }
.ld-ppkg { margin: 2px 0 8px; font-size: 13px; color: var(--ink-3); }
.ld-pscope { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.ld-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-mod {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, transform .15s;
}
.ld-mod:hover { border-color: var(--gold); transform: translateY(-2px); }
.ld-mod svg { width: 84px; height: 56px; margin-bottom: 8px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ld-mod svg .g-gold { stroke: var(--gold); stroke-width: 2.4; }
.ld-mod svg .g-bar { stroke: var(--mec); stroke-width: 5; }
.ld-mod svg .g-link { stroke: var(--ink-3); stroke-dasharray: 3 2; }
.ld-mod svg .g-dia { fill: var(--gold); stroke: var(--navy); stroke-width: 1; }
.ld-mod svg .g-soft { stroke: var(--line-strong); }
.ld-mod svg .g-crit { stroke: var(--crit); }
.ld-mod-t { font: 700 18px/1.2 var(--f-display); font-stretch: 104%; }
.ld-mod-d { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ld-mod-go { margin-top: auto; padding-top: 8px; font: 600 12px var(--f-mono); color: var(--gold-ink); }

.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.ld-steps li { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ld-steps li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.ld-n { font-size: 12px; color: var(--gold-ink); font-weight: 600; }
.ld-steps b { font-size: 15px; }
.ld-steps span:last-child { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.ld-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.ld-feats { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ld-feats > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ld-feats dt { font-size: 12px; font-weight: 600; color: var(--gold-ink); }
.ld-feats dd { margin: 0; font-size: 14px; color: var(--ink-2); }
.ld-teach { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 2.4vw, 28px); align-self: start; }
.ld-scen { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 6px; }
.ld-scen button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; font-weight: 550; color: var(--ink); }
.ld-scen button:hover { border-color: var(--gold); }
.ld-scen .mono { font-size: 11.5px; color: var(--gold-ink); }
.ld-small { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

.ld-final { margin: clamp(64px, 9vw, 110px) 0 0; padding: clamp(48px, 7vw, 84px) 24px; text-align: center; background: var(--ld-hero); color: #fff; }
.ld-final .ld-h2 { margin: 0 0 24px; color: #fff; }
.ld-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 36px; font-size: 13px; color: var(--ink-2); }
.ld-foot p { margin: 0; }
.ld-foot a { color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.ld-foot a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .ld-links { display: none; }
  .ld-cta-sm { margin-left: auto; }
  .ld-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ld-figs > div:nth-child(3n) { border-right: 0; }
  .ld-figs > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .ld-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .ld-steps li:nth-child(4) { padding-left: 0; border-left: 0; }
  .ld-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ld-hero { height: auto; min-height: 640px; }
  .ld-hero-shade { background: linear-gradient(0deg, rgba(14, 24, 48, .95) 0%, rgba(14, 24, 48, .7) 45%, rgba(14, 24, 48, .2) 100%); }
  .ld-hero-copy { position: relative; top: auto; transform: none; padding: 260px 16px 150px; }
  .ld-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-figs > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .ld-compare, .ld-trio, .ld-mods, .ld-steps { grid-template-columns: minmax(0, 1fr); }
  .ld-trio article + article, .ld-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ld-feats > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.ld-t-pause { position: absolute; top: 12px; right: 12px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 600 11px var(--f-mono); }
.ld-t-pause:hover { border-color: #fff; }
@media (min-width: 1800px) {
  .ld-sec, .ld-foot { max-width: 1480px; }
  .ld-sec-head { max-width: 900px; }
}
