:root {
  --ink: #08151a;
  --ink-2: #0e2429;
  --panel: #123038;
  --line: color-mix(in srgb, #8fd9cc 22%, transparent);
  --mist: #9bb8b4;
  --paper: #eef6f3;
  --suit: #38c7b1;
  --suit-deep: #138e85;
  --helm: #ffdc83;
  --helm-deep: #eda637;
  --danger: #ef6b5a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgb(4 12 14 / 0.45);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgb(56 199 177 / 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 100%, rgb(237 166 55 / 0.08), transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  line-height: 1.55;
}

a {
  color: var(--suit);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--helm);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--helm);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.chrome-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: stretch;
  min-height: 52px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  grid-column: 1;
  gap: 10px;
  padding: 0 18px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--mist);
  font-weight: 400;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  grid-column: 3;
  gap: 18px;
  padding: 0 16px;
}

.nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--helm);
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  grid-column: 5;
  gap: 8px;
  padding: 0 18px;
}

.rail-slot {
  position: relative;
  min-width: 72px;
  min-height: 28px;
  overflow: visible;
}

.tool {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 12px/1 var(--sans);
}

.tool:hover {
  border-color: var(--suit);
}

.badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--helm);
  border: 1px solid color-mix(in srgb, var(--helm) 40%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 160px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px 0 40px;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--suit);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
}

.lede {
  margin: 0;
  max-width: 46rem;
  color: var(--mist);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 14px/1 var(--sans);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--helm);
  color: var(--ink);
}

.btn-primary:hover {
  background: #ffe7a8;
}

.btn-ghost {
  color: var(--paper);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--suit);
}

.install {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgb(8 21 26 / 0.55);
  overflow: auto;
}

.install code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--helm);
}

.copy {
  cursor: pointer;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--mist);
  font: 600 12px/1 var(--sans);
}

.copy:hover {
  color: var(--paper);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 56px;
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 42%, transparent);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

section {
  margin: 64px 0;
}

section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-lead {
  margin: 0 0 22px;
  color: var(--mist);
  max-width: 46rem;
}

.shell-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 22px;
  border-left: 3px solid var(--suit);
  background: rgb(56 199 177 / 0.08);
  color: var(--paper);
  font-size: 0.95rem;
}

pre,
.code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}

pre {
  margin: 0 0 16px;
  padding: 16px 18px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071114;
  color: #d7efe9;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--mist);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

td code,
p code,
li code {
  color: var(--helm);
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--paper);
}

.say-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.say-row input {
  flex: 1 1 220px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #071114;
  color: var(--paper);
  padding: 0 12px;
  font: 400 14px/1 var(--sans);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  color: var(--mist);
}

.chrome-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 44px;
  padding: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, #0a1c21 92%, transparent);
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: var(--mist);
}

.bar-end {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.chrome-bar .rail-slot {
  min-height: 44px;
}

.chrome-bar .tool {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  margin: 6px 12px;
}

.ticker {
  display: none;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker.is-on {
  display: flex;
  align-items: center;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.missing {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(239 107 90 / 0.12);
  color: #ffc4bb;
  font-size: 14px;
}

.missing.show {
  display: block;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}
