/* The landing page (index.html). style.css has the shared parts: colours, panes, highlighting. */
body.landing { min-height: 100vh; }
.bands { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bands svg { width: 100%; height: 100%; }
.landing main, .landing header { position: relative; z-index: 1; }

/* ───────── the bar at the top ───────── */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 5vw; max-width: 1560px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; font: 600 20px var(--display); color: var(--text); letter-spacing: -.02em; }
.mark:hover { text-decoration: none; }
.glyph { display: flex; flex-direction: column; gap: 3px; width: 22px; }
.glyph i { height: 4px; border-radius: 2px; background: var(--accent); }
.glyph i:nth-child(2) { background: #b58ad8; width: 80%; margin-left: 20%; }
.glyph i:nth-child(3) { background: var(--accent2); width: 90%; }
header.top nav { display: flex; gap: 6px; align-items: center; }
header.top nav a { font: 500 14px var(--sans); color: var(--muted); padding: 7px 12px; border-radius: 8px; transition: color .2s, background .2s; }
header.top nav a:hover { color: var(--text); background: #ffffff0a; text-decoration: none; }
header.top nav a.gh { color: var(--text); font-family: var(--mono); font-size: 13px; border: 1px solid var(--line2); border-radius: 999px; background: #0d0e12aa; backdrop-filter: blur(6px); margin-left: 8px; }

/* ───────── hero ───────── */
.landing section { margin: 0 auto; max-width: 1560px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 6vh 5vw 70px; min-height: calc(100vh - 90px); }
.rise { opacity: 0; transform: translateY(22px); animation: up .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes up { to { opacity: 1; transform: none; } }
#title { font-size: clamp(76px, 9.5vw, 156px); line-height: .9; letter-spacing: -.05em; margin: 6px 0 0 -4px;
  color: var(--text); }
#title .l { display: inline-block; opacity: 0; transform: translateY(60px) rotate(4deg); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero .tag { font-family: var(--display); font-size: clamp(21px, 1.85vw, 29px); line-height: 1.25; max-width: 30ch; margin: 26px 0 0; }
.hero .tag .dim { color: var(--muted); }

/* the install line */
.install { margin-top: 38px; max-width: 660px; border: 1px solid var(--line2); border-radius: 14px; background: #0f1016e6; box-shadow: 0 30px 80px -40px #000, 0 0 0 1px #8ea2ff14 inset; overflow: hidden; }
.install-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font: 12px var(--mono); color: var(--faint); border-bottom: 1px solid var(--line); }
.install-bar .dots { display: flex; gap: 6px; } .install-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.install-line { display: flex; align-items: center; gap: 14px; padding: 18px 16px 18px 20px; }
.install-line code { flex: 1; background: none; border: 0; padding: 0; font: 500 clamp(13px, 1vw, 15.5px) var(--mono); color: var(--text); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install-line code .prompt { color: var(--accent); margin-right: 6px; }
#copy { font: 600 12.5px var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 13px; cursor: pointer; transition: border-color .2s, color .2s; }
#copy:hover { border-color: var(--accent); }
#copy.done { color: var(--ok); border-color: #5fd07a66; }

/* the way into the tour */
.ctas { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; max-width: 660px; }
.tour-btn { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; padding: 22px 26px; border-radius: 16px; color: #0d0e12; overflow: hidden;
  background: linear-gradient(110deg, var(--accent), #b58ad8 55%, var(--accent2)); background-size: 180% 100%; box-shadow: 0 20px 60px -20px #8ea2ff80; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-position .6s; }
.tour-btn:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 28px 70px -18px #b58ad8a0; background-position: 100% 0; }
.tour-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff55 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s 2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tour-btn .big { font: 600 clamp(24px, 2vw, 30px) var(--display); letter-spacing: -.02em; grid-column: 1; }
.tour-btn .small { font: 500 14px var(--sans); opacity: .75; grid-column: 1; }
.tour-btn .arrow { grid-column: 2; grid-row: 1 / 3; font: 600 34px var(--display); transition: transform .25s; }
.tour-btn:hover .arrow { transform: translateX(6px); }
.minor { display: flex; gap: 22px; flex-wrap: wrap; font: 500 15px var(--sans); }
.minor a { color: var(--muted); border-bottom: 1px solid var(--line2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.minor a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

/* the code on the side */
.showcase { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.showcase::before { content: ""; position: absolute; inset: -40px -30px; background: radial-gradient(closest-side, #8ea2ff22, transparent); z-index: -1; filter: blur(20px); }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vtabs button { font: 500 13px var(--mono); color: var(--muted); background: #13151bcc; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: all .25s; }
.vtabs button:hover { color: var(--text); border-color: var(--line2); }
.vtabs button.on { color: var(--text); border-color: var(--accent); background: #8ea2ff1c; }
.showcase .pane { background: #171a21ee; backdrop-filter: blur(8px); }
.showcase .code .body { min-height: 260px; font-size: 14px; line-height: 1.65; max-height: none; }
.showcase .out .body { min-height: 140px; font-size: 13px; }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; }
.term-line { display: block; }
.term-line.in { animation: linein .45s cubic-bezier(.2,.8,.2,1) both; }
.term-line.note { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 14px; }
@keyframes linein { from { opacity: 0; transform: translateX(-10px); } }
.count { transition: opacity .3s; } .count:empty { opacity: 0; }

/* ───────── the three ideas ───────── */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 20px 5vw 90px; }
.idea { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 16px; background: #13151bd9; backdrop-filter: blur(8px); color: var(--text); transition: transform .25s, border-color .25s; }
.idea:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--accent); }
.idea .n { font: 600 13px var(--mono); color: var(--accent2); }
.idea h3 { font-size: 24px; margin: 10px 0 10px; }
.idea p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; flex: 1; }
.idea .go { font: 500 13px var(--mono); color: var(--accent); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 5vw 34px; max-width: 1560px; margin: 0 auto; font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .ideas { grid-template-columns: 1fr; }
  header.top nav a:not(.gh) { display: none; }
}

/* the pre-alpha note under the install line */
.install-note { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px 14px 20px; border-top: 1px solid var(--line); font: 13.5px/1.5 var(--sans); color: var(--muted); }
.install-note .stage { flex: none; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); border: 1px solid #f0b45c55; border-radius: 999px; padding: 4px 8px; }
.install-note a { color: var(--text); border-bottom: 1px solid var(--line2); }
.install-note a:hover { text-decoration: none; border-color: var(--accent); }

/* ───────── the sections under the hero ───────── */
.block { padding: 70px 5vw 40px; }
.block .kicker { font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.block h2 { font: 600 clamp(28px, 2.6vw, 40px)/1.15 var(--display); letter-spacing: -.02em; max-width: 30ch; margin: 12px 0 14px; }
.block .lede { color: var(--muted); font-size: 17px; max-width: 70ch; margin: 0 0 28px; }
.block .go { display: inline-block; margin-top: 22px; font: 500 14px var(--mono); color: var(--accent); }

/* what Strata changes for agents: two parts, each a few chapters */
.story > h2 { margin-bottom: 0; }
.part { margin-top: 64px; }
.part > h3 { font: 600 clamp(30px, 2.8vw, 44px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; color: var(--accent2); }
.part > .sub { color: var(--muted); font-size: 18px; margin: 8px 0 8px; }
.chapter h4 { font: 600 22px/1.25 var(--display); letter-spacing: -.01em; margin: 0 0 10px; }
.part .flow { color: var(--text); font-size: 17px; max-width: 95ch; margin: 18px 0 26px; }
.part .flow.caption { color: var(--muted); min-height: 3.2em; margin: 18px 0 18px; }
.part > .go { margin-top: 20px; }
.session .vtabs { display: flex; gap: 8px; margin-top: 22px; }
.session .vtabs button { position: relative; overflow: hidden; flex: 1; text-align: left; padding: 9px 14px; border-radius: 10px; }
.session .vtabs button b { color: var(--accent2); margin-right: 6px; }
.session .vtabs .fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.session.playing .vtabs button.on .fill { animation: fill var(--every) linear forwards; }
@keyframes fill { to { width: 100%; } }
.session .flow.caption { min-height: 3.4em; margin: 16px 0 14px; }
.session .vs { align-items: stretch; }
.session .side { display: flex; flex-direction: column; gap: 12px; min-width: 0; height: 820px; }
.session .side .col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.session .side .col .pane { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; }
.session .side .col .pane:last-child { flex: 1 1 0; min-height: 220px; }
.session .side .col .pane:only-child { min-height: 0; }
.session .side .col .pane .body { flex: 1; min-height: 0; max-height: none; overflow: auto; font-size: 12.5px; }
.session .side .graph { height: 300px; flex: none; }

/* the ledger: both sides the same height; the code scrolls, the terminal shows all of its output */
.vs.ledger { align-items: stretch; }
.vs.ledger .side { display: flex; flex-direction: column; gap: 12px; }
/* the Strata side sets the height (all of it shown), the Rust side takes the same and scrolls its code */
.vs.ledger .side.old { height: 0; min-height: 100%; }
.vs.ledger .col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.visual .vs.ledger .side .pane { display: flex; flex-direction: column; min-height: 0; flex: none; height: auto; }
.visual .vs.ledger .side.old .pane:first-child { flex: 1 1 0; }
.vs.ledger .pane .body { flex: 1; min-height: 0; overflow: auto; }

/* Rust, in Rust's orange: the same shapes as Strata, another colour */
.pane.rust { border-color: #f74c0070; box-shadow: 0 0 0 1px #f74c001f, 0 30px 80px -40px #000; }
.pane.rust .bar { background: #1b1513; border-bottom-color: #f74c0040; color: #d9a58a; }
.pane.rust .k { color: #ff8a3d; } .pane.rust .t { color: #ffb072; } .pane.rust .f { color: #ffd3a8; }
.pane.rust .nm { color: #ffc48a; } .pane.rust .s { color: #e9d38a; }
.pane.rust .prompt { color: #ff8a3d; }
.story .vs .side.old > h4 { color: #ff8a3d; }
.part .visual .vs .pane .body { max-height: none; }
.astpair { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.astpair .pane .body { height: 440px; max-height: 440px; }
.astpair .graph { height: 485px; }
.visual .pane.plain .body { color: #cfcec8; }

.chapter { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.8fr); gap: 40px; align-items: start; padding: 44px 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter .text { position: sticky; top: 30px; }
.chapter p { color: var(--muted); font-size: 16px; margin: 0; }
.chapter .go { margin-top: 16px; }
.visual { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.visual.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visual.two > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.visual .cap { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.visual .cap.bad { color: var(--bad); } .visual .cap.ok { color: var(--ok); }
.visual .pane { background: #171a21ee; }
.visual .pane .body { font-size: 12.5px; max-height: none; }
.visual .vs { margin-top: 0; }
.visual .vs .side { display: flex; flex-direction: column; gap: 12px; }
.visual .vs { align-items: start; }
.visual .vs .side .pane { height: auto; display: block; }
.visual .vs .pane .body { max-height: 420px; }
.visual .vs .pane.long .body { max-height: 300px; }
.story .vs .side h4 { display: flex; align-items: baseline; }
.story .vs .side h4 .big-n { font: 600 24px var(--display); letter-spacing: -.02em; margin-left: auto; text-transform: none; }
.story .vs .side.old h4 .big-n { color: var(--bad); } .story .vs .side.new h4 .big-n { color: var(--ok); }
.visual .headline .hl-big { font-size: 18px; }

/* faq */
.faq .qs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; align-items: start; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #13151bd9; backdrop-filter: blur(8px); padding: 0 22px; transition: border-color .25s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 17px var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent2); font: 500 20px var(--mono); line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.faq details a { color: var(--accent); }

/* try it */
.start { padding-bottom: 80px; }
.start .links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.start .links a { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #13151bd9; color: var(--text); transition: border-color .25s; }
.start .links a:hover { text-decoration: none; border-color: var(--accent); }
.start .links span { color: var(--muted); font-size: 14.5px; }
.count.warn { background: #ffb05c1f; color: var(--warn); }

@media (max-width: 1050px) {
  .start .links, .chapter, .visual.two, .visual .vs, .astpair, .faq .qs { grid-template-columns: 1fr; }
  .chapter .text { position: static; }
}

/* with reduced motion, everything is simply there */
@media (prefers-reduced-motion: reduce) {
  .rise, #title .l { animation: none; opacity: 1; transform: none; }
  .tour-btn::after, .caret { animation: none; }
}
