/* Home only: hero globe, attack-path graph, terminal, read-only flow. */
.hero { padding-top: 68px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; padding-top: var(--s-8); padding-bottom: var(--s-8); }
.hero h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.04em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: inline-block; }
.hero p { margin-top: var(--s-5); color: var(--muted); max-width: 26em; }
.hero .actions { margin-top: var(--s-6); }
.globe { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: end; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* attack path */
.path-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); margin-top: var(--s-6); }
.path-tabs .tab { height: 32px; padding: 0 14px; }
.path-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-7); align-items: center; margin-top: var(--s-6); }
.graph-box { position: relative; min-width: 0; }
.graph-box canvas { width: 100%; height: 0; cursor: default; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.path-fallback { margin: 0; font: 13px/1.5 var(--font-mono); color: var(--muted); white-space: pre; overflow-x: auto; }
.path-fallback b { color: var(--fg-strong); font-weight: 400; }
.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.details[hidden] { display: none; }
.details .card.wide { grid-column: 1 / -1; }
.details .big { font-size: 34px; letter-spacing: -0.035em; font-weight: 500; color: var(--fg-strong); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.details .big small { font-size: 18px; color: var(--muted); letter-spacing: -0.01em; }
.ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ev li { display: flex; align-items: center; gap: 10px; margin: 0 -10px; padding: 5px 10px; border-radius: 10px; font: var(--t-mono)/1.5 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; transition: background .35s var(--ease), color .35s var(--ease); cursor: default; }
.ev li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); transition: background .35s var(--ease); }
.ev li.on { background: var(--surface-3); color: var(--fg-strong); }
.ev li.on::before { background: var(--fg-strong); }
.more-paths { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); font-size: var(--t-small); color: var(--muted); }

/* CLI */
.cli { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.facts { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.facts li { display: flex; flex-direction: column; gap: 22px; padding: 16px 18px 18px; border-radius: var(--r-card); background: var(--surface); font-size: var(--t-small); color: var(--fg); transition: background .4s var(--ease); }
.facts li:hover { background: var(--surface-2); }
.fg { font: 15px/1 var(--font-mono); color: var(--fg-strong); white-space: pre; height: 15px; letter-spacing: 0.02em; }
.term { width: 100%; max-width: 580px; justify-self: end; border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(255,255,255,.06); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 12px 0; }
.tab { height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--subtle); font: 12px/1 var(--font-mono); cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--fg-strong); }
.term pre { margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); height: 400px; overflow: auto; font: var(--t-mono)/1.7 var(--font-mono); color: var(--muted); scrollbar-width: none; }
.term pre::-webkit-scrollbar { display: none; }
.term .p { color: var(--subtle); }
.term .c { color: var(--fg-strong); }
.term .h { color: var(--fg); }
.term .s { color: var(--fg-strong); }
.term .d { color: var(--subtle); }
.term .cursor { display: inline-block; width: 7px; height: 14px; background: var(--fg-strong); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* read-only */
.ro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.ro h2 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.04em; }
.ro h2 span { color: var(--subtle); }
.ro .link { margin-top: var(--s-6); }
.pills { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pills li { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--t-small); color: var(--fg); }
.flow-box { border-radius: var(--r-card); background: var(--surface); padding: var(--s-5) var(--s-4); }
.flow-box canvas { width: 100%; height: 0; }
.policy { position: relative; margin-top: var(--s-3); border-radius: var(--r-card); background: var(--surface); padding: var(--s-4) var(--s-5) var(--s-5); font: 12px/1.75 var(--font-mono); color: var(--subtle); overflow: hidden; }
.policy pre { margin: 0; font: inherit; white-space: pre; overflow: hidden; }
.policy .k { color: var(--muted); }
.policy .a { color: var(--fg); }
.policy .deny { color: var(--fg-strong); }
.policy::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(12,12,12,0), var(--surface)); pointer-events: none; }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.founder blockquote { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: -0.015em; color: var(--fg-strong); }
.founder blockquote p + p { margin-top: var(--s-4); }
.founder cite { display: block; margin-top: var(--s-5); font-style: normal; font-size: var(--t-small); color: var(--muted); }

/* ---------- ask the graph ---------- */
.ask { position: relative; margin-top: var(--s-7); border-radius: 24px; background: var(--surface); padding: var(--s-6) var(--s-6) var(--s-5); overflow: hidden; box-shadow: 0 50px 100px -50px rgba(255,255,255,.08); }
.ask-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ask-pills button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--subtle); font: 12px/1 var(--font-mono); cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease); }
.ask-pills button:hover { color: var(--fg); }
.ask-pills button[aria-pressed="true"] { background: var(--surface-3); color: var(--fg-strong); }
.ask-q { margin: var(--s-6) auto 0; max-width: 30em; min-height: 1.35em; text-align: center; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.3; letter-spacing: -0.025em; color: var(--fg-strong); }
.ask-q .cursor { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--fg-strong); vertical-align: -0.12em; animation: blink 1s steps(2, start) infinite; }
.ask-graph { margin-top: var(--s-5); }
.ask-graph canvas { width: 100%; height: 0; }
.ask-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: var(--s-5); min-height: 72px; text-align: center; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .ask:not(.answered) .ask-out { opacity: 0; transform: translateY(8px); }
.ask-a { flex-basis: 100%; font-size: 16px; color: var(--fg); }
.ask-chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ask-chips b { font: 400 11.5px/1 var(--font-mono); color: var(--fg); padding: 7px 9px; border-radius: 8px; background: var(--surface-3); }
.ask-st { font: 500 11px/1 var(--font-mono); letter-spacing: .04em; padding: 8px 11px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ask-st.crit { background: rgba(255,69,58,.12); color: var(--critical); }
.ask-st.warn { background: var(--surface-3); color: var(--fg-strong); }
.ask-st.ok { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--faint); }
.ask-more { display: flex; justify-content: center; margin-top: var(--s-6); }

/* ---------- the assistant writes the fix ---------- */
.ide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: 22px; background: var(--surface); overflow: hidden; box-shadow: 0 50px 100px -50px rgba(255,255,255,.08); }
.ide-ed { min-width: 0; display: flex; flex-direction: column; }
.ide-bar { display: flex; align-items: center; gap: 4px; padding: 12px 12px 0; min-width: 0; overflow: hidden; }
.ide-bar .lights { display: inline-flex; gap: 6px; margin: 0 10px 0 4px; }
.ide-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.ide-tab { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); font: 12px/1 var(--font-mono); color: var(--subtle); transition: background .35s var(--ease), color .35s var(--ease); white-space: nowrap; }
.ide-tab.on { background: var(--surface-3); color: var(--fg-strong); }
.ide-branch { margin-left: auto; font: 12px/1 var(--font-mono); color: var(--subtle); white-space: nowrap; padding-right: 6px; transition: color .4s; }
.ide-branch.moved { color: var(--fg-strong); }
.ide-code { margin: 0; padding: var(--s-4) 0 var(--s-5); min-height: 330px; overflow-x: auto; font: 12.5px/1.75 var(--font-mono); color: var(--muted); scrollbar-width: none; }
.ide-code::-webkit-scrollbar { display: none; }
.ide-code[hidden] { display: none; }
.ide-code .l { display: block; padding: 0 var(--s-5) 0 0; white-space: pre; transition: background .4s var(--ease), color .4s var(--ease); }
.ide-code .l::before { content: attr(data-n); display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: var(--faint); }
.ide-code .k { color: var(--fg); }
.ide-code .s { color: var(--fg-strong); }
.ide-code .c { color: var(--subtle); }
.ide-code .l.del { color: var(--subtle); text-decoration: line-through; text-decoration-color: var(--subtle); background: rgba(255,255,255,.025); }
.ide-code .l.add { color: var(--fg-strong); background: rgba(255,255,255,.06); }
.ide-code .l.add::before { content: "+"; color: var(--fg-strong); }
.ide-code .l.del::before { content: "-"; }
.ide-code .l.pending { display: none; }
.ide-code .cursor, .ide-log .cursor { display: inline-block; width: 7px; height: 14px; background: var(--fg-strong); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
.ide-log { min-width: 0; display: flex; flex-direction: column; background: var(--surface-2); padding: var(--s-4) var(--s-5) var(--s-5); font: 12.5px/1.6 var(--font-mono); }
.ide-log .lh { display: flex; justify-content: space-between; color: var(--subtle); font-size: 12px; padding-bottom: var(--s-4); }
.ide-log .lg { color: var(--muted); padding: 5px 0; transition: opacity .5s var(--ease), transform .6s var(--ease); overflow-wrap: anywhere; }
.ide-log .lg .who { color: var(--subtle); margin-right: 8px; }
.ide-log .lg.you { color: var(--fg-strong); }
.ide-log .lg.ask { color: var(--fg-strong); }
.ide-log .lg.ok::before { content: "✓ "; color: var(--fg-strong); }
.ide-log .lg.closed { margin-top: auto; padding-top: var(--s-4); color: var(--fg-strong); }
.ide-log .lg.closed s { color: var(--subtle); text-decoration-color: var(--critical); }
.ide.armed .ide-log .lg:not(.shown) { opacity: 0; transform: translateY(6px); }
.fix-notes { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); font-size: var(--t-small); color: var(--muted); }
.fix-notes span { display: inline-flex; gap: 10px; align-items: baseline; }
.fix-notes b { font: 500 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--fg-strong); padding: 5px 8px; border-radius: var(--r-pill); background: var(--surface-2); }

/* ---------- read-only spec sheet ---------- */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin-top: var(--s-7); }
.spec div { display: grid; gap: 8px; }
.spec b { font: 400 40px/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.spec span { font-size: var(--t-small); color: var(--muted); line-height: 1.45; max-width: 15em; }

/* ---------- ways to buy (no prices on the home) ---------- */
.journey { margin-top: var(--s-8); border-radius: 28px; background: var(--surface); padding: var(--s-8) var(--s-6) var(--s-6); overflow: hidden; }
.stops { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.stops::before, .stops::after { content: ""; position: absolute; top: 22px; left: calc(100% / 6); right: calc(100% / 6); height: 1px; }
.stops::before { background: var(--faint); }
.stops::after { background: linear-gradient(90deg, transparent, var(--fg-strong), transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: travel 4.2s var(--ease) infinite; opacity: .8; }
@keyframes travel { from { background-position: -30% 0; } to { background-position: 130% 0; } }
@keyframes travel-v { from { background-position: 0 -30%; } to { background-position: 0 130%; } }
.stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); }
.stop .node { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-3); box-shadow: 0 0 0 8px var(--surface); font: 15px/1 var(--font-mono); color: var(--fg-strong); transition: background .4s var(--ease), color .4s var(--ease); }
.stop:hover .node { background: var(--fg-strong); color: var(--bg); }
.stop .when { margin-top: var(--s-3); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--subtle); }
.stop h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.stop p { color: var(--muted); font-size: 15px; max-width: 19em; }
.stop .kind { margin-top: var(--s-2); font: 12px/1 var(--font-mono); color: var(--fg); padding: 7px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.journey-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-8); }
.journey-foot p { color: var(--subtle); font-size: var(--t-small); }

@media (max-width: 960px) {
  .ide { grid-template-columns: minmax(0, 1fr); }
  .ide { gap: 0; }
  .stops { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .stops::before, .stops::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1px; height: auto; }
  .stops::after { background: linear-gradient(180deg, transparent, var(--fg-strong), transparent); background-size: 100% 30%; animation-name: travel-v; }
  .stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-5); row-gap: 6px; align-items: start; text-align: left; }
  .stop > *:not(.node) { grid-column: 2; justify-self: start; }
  .stop .node { grid-row: 1 / span 5; }
  .stop .when { margin-top: 4px; }
}
@media (max-width: 560px) {
  .ask { padding: var(--s-5) var(--s-3) var(--s-4); }
  .ask-pills button { padding: 0 10px; }
  .ide-code { min-height: 0; font-size: 11.5px; }
  .ide-bar .lights, .ide-branch { display: none; }
  .ide-code .l::before { width: 30px; padding-right: 10px; }
  .spec b { font-size: 32px; }
  .journey { padding: var(--s-7) var(--s-4) var(--s-5); border-radius: 22px; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero .wrap, .path-grid, .cli, .ro, .founder { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .globe { justify-self: center; max-width: 520px; }
  .term { justify-self: stretch; max-width: none; }
}
@media (max-width: 560px) {
  .hero .wrap { padding-top: var(--s-7); padding-bottom: var(--s-6); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .facts li { gap: 16px; padding: 14px; }
  .term pre { height: 380px; font-size: 11.5px; padding: var(--s-4); white-space: pre-wrap; overflow-wrap: anywhere; }
  .founder blockquote { font-size: 19px; }
  .path-tabs { display: flex; }
  .path-tabs .tab { flex: 1; padding: 0 8px; }
}
