/* HotBot's homepage. Her colours: ember on near-black, chrome greys, and the
   pink and electric blue of her hair. Dark only — she lives in a dark room. */

:root {
  --bg: #0d0a0b;
  --bg-2: #171213;
  --panel: #1d1718;
  --line: #3a2d2e;
  --text: #f1e9e6;
  --muted: #b3a5a2;
  --chrome: #d8d4d6;
  --ember: #ff7a1a;
  --flame: #ffb347;
  --pink: #ff4fa3;
  --blue: #4fb6ff;
  --fire: linear-gradient(100deg, #ffb347 0%, #ff7a1a 35%, #ff4fa3 75%, #b45cff 100%);
  --radius: 14px;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 122, 26, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 79, 163, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
code {
  font: .88em var(--mono);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: .08em .38em;
  border-radius: 6px;
  color: var(--flame);
  white-space: nowrap;
}
pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; white-space: pre; color: var(--text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.small { font-size: .85rem; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(16px, 4vw, 48px);
  background: rgba(13, 10, 11, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font: 700 1.2rem var(--display); }
.brand img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ember); }
.brand span { font-size: .95em; }
.bar nav { display: flex; gap: .2rem; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { color: var(--muted); text-decoration: none; padding: .35rem .7rem; border-radius: 999px; font-size: .93rem; }
.bar nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.bar nav a[aria-current] { color: var(--text); background: rgba(255, 122, 26, .16); }

/* Layouts */
main { padding: 0 clamp(16px, 4vw, 48px) 4rem; }
main.prose { max-width: 820px; margin: 0 auto; padding-top: 2rem; }
main.wide { max-width: 1240px; margin: 0 auto; }
main.prose h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
main.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
main.prose th, main.prose td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
main.prose th { color: var(--flame); font-weight: 600; }
main.prose li { margin: .3em 0; }
.note { background: rgba(79, 182, 255, .08); border: 1px solid rgba(79, 182, 255, .3); border-radius: var(--radius); padding: .8rem 1rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(calc(100vh - 60px), 860px); padding: 2.5rem 0;
}
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--flame); margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 em {
  font-style: normal; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-pic { margin: 0; position: relative; }
.hero-pic::before {
  content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .55), rgba(255, 79, 163, .25) 55%, transparent);
  filter: blur(30px);
}
.hero-pic img {
  width: 100%; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--fire); color: #1a0d0a;
}
.button:hover { color: #000; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--pink); color: var(--text); }

/* Sections */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: n; }
.cards li, .features > div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.cards li { counter-increment: n; position: relative; padding-top: 2.6rem; }
.cards li::before { content: counter(n); position: absolute; top: .55rem; left: 1.2rem; font: 700 1.5rem var(--display); color: rgba(255, 122, 26, .35); }
.cards p, .features p { margin: .5em 0 0; color: var(--muted); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 4rem; }
.split img { border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.split h2 { margin-top: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 4rem; }
.features h3 { color: var(--flame); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.tile { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--panel); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .7rem .5rem; font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.report { margin-top: 4rem; padding: 2rem; border-radius: 20px; background: linear-gradient(120deg, rgba(255, 122, 26, .14), rgba(255, 79, 163, .10)); border: 1px solid var(--line); }
.report h2 { margin-top: 0; }

/* Commands */
.toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.toc a { font-size: .88rem; text-decoration: none; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--ember); }
dl.commands dt { margin-top: 1.3rem; font-weight: 600; }
dl.commands .args { font: .82rem var(--mono); color: var(--muted); margin-left: .3rem; }
dl.commands dd { margin: .3rem 0 0; color: var(--text); }
dl.commands .tries, dl.commands .aka { font-size: .88rem; color: var(--muted); margin-top: .3rem; white-space: normal; }
dl.commands .tries code, dl.commands .aka code { white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 2rem clamp(16px, 4vw, 48px); text-align: center; color: var(--muted); }
footer p { margin: .3rem 0; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-pic { order: -1; }
  .bar { flex-direction: column; align-items: flex-start; }
  .bar nav { justify-content: flex-start; }
  code { white-space: normal; }
}
