/* pantheonsim.com. The playground's tokens, so the site and the tool read as
   one product: dark by default, a single petrol accent, system faces (the
   content policy allows no font CDN), and the terminal as the one ornament. */
:root {
  --bg: #0a0d10; --panel: #11161b; --raised: #182027; --sunken: #07090c;
  --line: #232c35; --ink: #e6ecf0; --ink-dim: #9ba8b3; --ink-faint: #6c7984;
  --accent: #38b2c4; --accent-2: #1f8595; --on-accent: #03181c;
  --ok: #5fc98d; --warn: #e2a75c;
  --term-bg: #07090c; --term-ink: #d6dee4;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f6f8; --panel: #ffffff; --raised: #eaf0f3; --sunken: #0b0e11;
    --line: #d9e0e6; --ink: #121a20; --ink-dim: #4d5a65; --ink-faint: #7a868f;
    --accent: #0d6c7a; --accent-2: #0a5561; --on-accent: #ffffff;
    --ok: #17803f; --warn: #a15f0a;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--ink-dim); text-decoration: none; font-size: 14.5px; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent) !important;
  font-weight: 650; text-decoration: none; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--accent);
  transition: background .12s; }
.btn:hover { background: color-mix(in srgb, var(--accent) 84%, #fff); }
.btn.sm { padding: 7px 13px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent-2); background: var(--raised); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 14px; font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.4vw, 54px); font-weight: 750; }
.lede { font-size: 18px; color: var(--ink-dim); margin: 0 0 26px; max-width: 58ch; }
.lede code { color: var(--ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.aside { margin: 18px 0 0; color: var(--ink-faint); font-size: 14.5px; max-width: 52ch; }

/* terminals */
.term { margin: 0; background: var(--term-bg); color: var(--term-ink); border: 1px solid #1d252d;
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / .35);
  container-type: inline-size; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #10151a; border-bottom: 1px solid #1d252d; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a333c; }
.term-bar span { margin-left: 8px; font: 500 12px/1 var(--mono); color: #7f8c97; }
.term pre, .term-out, .snippet { margin: 0; overflow-x: auto; font-size: 12.5px; line-height: 1.5; }
.term pre { padding: 14px 16px; }
/* nvidia-smi's frame is 91 columns and has to be read whole, so the type is
   sized from the terminal's own width -- a monospace cell is about 0.6em --
   rather than from the window, which put the right edge off the card at some
   widths. Where container units are missing it scrolls instead. */
.hero-term pre { font-size: clamp(6px, calc((100cqi - 34px) / 55), 12px); }
.term figcaption { padding: 9px 16px; font-size: 13px; color: #8a97a2; border-top: 1px solid #1d252d; }
.prompt { color: var(--accent); }
.term .prompt, .term-out .prompt { color: #38b2c4; }
.term-out, .snippet { background: var(--term-bg); color: var(--term-ink); border: 1px solid #1d252d;
  border-radius: 10px; padding: 14px 16px; }
.snippet { font-size: 13.5px; }

/* sections */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--panel); }
.band h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 720; }
.section-lede { margin: 0 0 34px; color: var(--ink-dim); max-width: 64ch; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.fact h3 { margin: 0 0 8px; font-size: 17px; }
.fact p { margin: 0 0 12px; color: var(--ink-dim); font-size: 15px; }
.fact .snippet { font-size: 12px; }
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.demo { margin: 0; display: grid; gap: 14px; }
.demo h3 { margin: 0 0 6px; font-size: 18px; }
.demo p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.demo .term-out { font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split p { color: var(--ink-dim); }
.plain { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; color: var(--ink-dim); }
.plain b { color: var(--ink); }
.ci { font-size: 14px; padding: 22px; }
.play .shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(0 0 0 / .3); }
.play .shot img { display: block; width: 100%; height: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
/* Keeps its columns on a phone and scrolls in its own box, rather than
   squeezing a card name into four lines. */
table.gpus { min-width: 640px; }
table.gpus td:first-child { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); background: var(--raised); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ok { color: var(--ok); font-weight: 600; }
.pending { color: var(--warn); font-weight: 600; }

/* docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 72px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; font-size: 14.5px; }
.toc-title { margin: 0 0 6px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.toc a { color: var(--ink-dim); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 76ch; min-width: 0; }
.prose h1 { font-size: 40px; margin: 0 0 12px; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; scroll-margin-top: 84px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose b, .prose code { color: var(--ink); }
.prose pre { margin: 16px 0; }
.prose .term-out { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-faint); font-size: 14px; }
.foot-row { display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot b { color: var(--ink); }
.foot .fine { font-size: 12.5px; }
.foot .links { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.foot a { color: var(--ink-dim); }

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 36px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .band { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
