/* ==========================================================================
   Salla Developers — VARIATION A: "The Launcher"
   A utilitarian developer landing: pick a path, run the quickstart, browse
   the whole surface as one index. Dense, hairline, console-flavoured.
   ========================================================================== */
:root {
  --bg: hsl(0 0% 100%);
  --bg-2: hsl(0 0% 98.5%);
  --ink: hsl(196 40% 12%);
  --ink-2: hsl(0 0% 34%);
  --ink-3: hsl(0 0% 52%);
  --line: hsl(0 0% 89%);
  --line-2: hsl(0 0% 82%);
  --mint: #00D8A8;
  --mint-ink: hsl(191 90% 10%);
  --petrol: hsl(191 100% 17%);
  --term-bg: hsl(196 42% 8%);
  --max: 940px;
  --pad: clamp(1.15rem, 4vw, 1.75rem);
  --ease: cubic-bezier(.4,0,.2,1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
.dark {
  --bg: hsl(196 30% 8%);
  --bg-2: hsl(196 26% 10%);
  --ink: hsl(0 0% 94%);
  --ink-2: hsl(0 0% 70%);
  --ink-3: hsl(0 0% 52%);
  --line: hsl(196 15% 18%);
  --line-2: hsl(196 14% 24%);
  --mint: #2AE6BE;
  --term-bg: hsl(196 45% 6%);
}
* { box-sizing: border-box; }
[class*="hgi-"], [class*="hgi-"]::before, [class*="hgi-"]::after { letter-spacing: normal !important; }
code { background: none !important; padding: 0 !important; border-radius: 0 !important; color: inherit; }
html { font-family: 'PingARLT','PT Sans',system-ui,sans-serif; font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink-2); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--petrol); text-decoration: none; }
.dark a { color: var(--mint); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ol,ul { margin: 0; padding: 0; }
svg { display: block; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--mint); color: var(--mint-ink); padding: .5rem .9rem; border-radius: 4px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

main { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
.kicker { font: 700 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.5rem; }
.kicker--light { color: hsl(0 0% 100% / .55); }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; padding-inline: var(--pad); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; }
.brand svg { color: var(--petrol); }
.dark .brand svg { color: var(--mint); }
.bar__nav { display: flex; align-items: center; gap: 1.4rem; }
.bar__nav > a { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.bar__nav > a:hover { color: var(--ink); text-decoration: none; }
.tmode { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line-2); border-radius: 4px; background: none; color: var(--ink); cursor: pointer; font-size: 1rem; }
.tmode__m { display: none; } .dark .tmode__s { display: none; } .dark .tmode__m { display: inline; }
.cta { display: inline-flex; align-items: center; height: 2.15rem; padding-inline: .95rem; border-radius: 4px; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: .88rem; }
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.cta--lg { height: 2.75rem; padding-inline: 1.4rem; font-size: .98rem; }

/* ---- 1 · launch ---- */
.launch { padding-top: clamp(2.5rem, 7vw, 5rem); }
.launch h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.launch > p { margin-top: .9rem; font-size: 1.08rem; color: var(--ink-2); max-width: 40rem; }
.run { display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; max-width: 34rem; background: var(--term-bg); border: 1px solid var(--line-2); border-radius: 6px; padding: .7rem .9rem; }
.run code { font-family: var(--mono); font-size: .92rem; color: hsl(0 0% 88%); flex: 1; overflow-x: auto; }
.run code::before { content: "$ "; color: hsl(164 60% 55%); }
.run .hl { color: hsl(164 70% 66%); }
.run__copy { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 4px; background: hsl(0 0% 100% / .08); color: hsl(0 0% 70%); cursor: pointer; }
.run__copy:hover { background: hsl(0 0% 100% / .16); color: #fff; }
.run__copy.is-done { color: hsl(164 70% 60%); }
.run--sm { margin-top: .5rem; padding: .5rem .7rem; }
.run--sm code { font-size: .86rem; }
.run__alt { margin-top: .9rem; font-size: .9rem; color: var(--ink-3); }

/* ---- 2 · paths ---- */
.path { border: 1px solid var(--line); border-radius: 8px; margin-bottom: .6rem; overflow: hidden; }
.path[open] { border-color: var(--line-2); }
.path summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.path summary::-webkit-details-marker { display: none; }
.path__i { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 5px; background: color-mix(in srgb, var(--mint) 16%, var(--bg)); color: var(--petrol); font-size: 1.15rem; flex: none; }
.dark .path__i { color: var(--mint); }
.path__x { margin-left: auto; color: var(--ink-3); transition: transform .2s var(--ease); }
.path[open] .path__x { transform: rotate(180deg); }
.path ol { margin: 0 1.1rem; padding-left: 1.2rem; color: var(--ink-2); font-size: .95rem; display: flex; flex-direction: column; gap: .45rem; }
.path .go { display: inline-flex; align-items: center; gap: .4rem; margin: 1rem 1.1rem 1.2rem; font-weight: 700; font-size: .9rem; }

/* ---- 3 · quickstart ---- */
.qs__list { counter-reset: q; display: flex; flex-direction: column; gap: 1.1rem; }
.qs__list > li { counter-increment: q; position: relative; padding-left: 2.4rem; }
.qs__list > li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 800 .85rem/1 var(--mono); color: var(--ink); }
.qs__list > li > p { font-weight: 600; color: var(--ink); }

/* ---- 4 · index ---- */
.idx__group { margin-top: 1.5rem; }
.idx__group:first-of-type { margin-top: 0; }
.idx__group > h3 { font: 700 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: .55rem; border-bottom: 1px solid var(--line-2); }
.idx__row { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: padding-left .15s var(--ease); }
.idx__row:hover { text-decoration: none; padding-left: .5rem; }
.idx__k { font-weight: 700; font-size: .95rem; }
.idx__d { color: var(--ink-3); font-size: .88rem; }
.go--foot { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.5rem; font-weight: 700; font-size: .92rem; }

/* ---- 5 · ship table ---- */
.ship__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.ship table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 34rem; }
.ship th, .ship td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.ship thead th { font: 700 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); }
.ship tbody td:first-child { font-weight: 700; color: var(--ink); }
.ship tbody td:not(:first-child) { color: var(--ink-2); }
.ship tbody tr:last-child td { border-bottom: 0; }

/* ---- 6 · agent (the one dark block) ---- */
.agent { background: var(--petrol); color: hsl(0 0% 86%); border-radius: 12px; padding: clamp(1.75rem, 4vw, 2.5rem); border-top: 0; margin-block: clamp(2.75rem, 6vw, 4.5rem); }
.agent p { color: hsl(0 0% 100% / .78); max-width: 42rem; }
.agent strong { color: #fff; }
.agent__run { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; max-width: 30rem; background: hsl(0 0% 0% / .25); border: 1px solid hsl(0 0% 100% / .14); border-radius: 6px; padding: .6rem .8rem; }
.agent__run code { font-family: var(--mono); font-size: .88rem; color: hsl(0 0% 90%); flex: 1; }
.agent__run code::before { content: "$ "; color: hsl(164 60% 60%); }
.agent__run .hl { color: hsl(164 70% 68%); }
.agent__mcp { margin-top: .9rem; font: 500 .82rem/1 var(--mono); color: hsl(0 0% 100% / .5); display: flex; align-items: center; gap: .5rem; }
.copyurl { display: inline-flex; align-items: center; gap: .4rem; font: inherit; cursor: pointer; border: 1px solid hsl(0 0% 100% / .16); background: hsl(0 0% 100% / .06); border-radius: 4px; padding: .18rem .45rem; color: inherit; }
.copyurl code { color: hsl(164 70% 68%); }
.copyurl:hover { border-color: var(--mint); }
.copyurl.is-done { color: var(--mint); }
.go--onlight { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; color: var(--mint); font-weight: 700; font-size: .92rem; }

/* ---- 7 · money ---- */
.money { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.money p { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .95rem; }
.money p span { color: var(--ink); font-weight: 600; }
.money p span::before { content: "› "; color: var(--mint); }

/* ---- 8 · resources ---- */
.res { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }
.res a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.res a:hover { color: var(--ink); text-decoration: none; }
.res .hgi { color: var(--petrol); }
.dark .res .hgi { color: var(--mint); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); }
.foot__row { max-width: var(--max); margin: 0 auto; padding: 1.75rem var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; font-size: .86rem; }
.brand--sm { color: var(--ink-3); font-weight: 600; gap: .4rem; }
.brand--sm svg { color: var(--ink-3); }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot__row nav a { color: var(--ink-2); font-weight: 600; }
.foot__row nav a:hover { color: var(--ink); text-decoration: none; }
.foot__meta { margin-left: auto; color: var(--ink-3); font: 500 .8rem/1 var(--mono); }

/* ---- reveal (very light) ---- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1.4rem); background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; z-index: 200; transition: opacity .25s, transform .25s; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .bar__nav > a:not(.cta) { display: none; }
  .idx__row { grid-template-columns: 1fr; gap: .15rem; }
  .money { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
