:root {
  color-scheme: dark;
  --bg: #10120f;
  --bg-raised: #161914;
  --panel: #1b1e18;
  --panel-soft: #20241d;
  --line: #343a2e;
  --line-bright: #515a45;
  --text: #f4f4ed;
  --muted: #a3a998;
  --green: #a6e22e;
  --cyan: #66d9ef;
  --pink: #f92672;
  --yellow: #e6db74;
  --orange: #fd971f;
  --violet: #ae81ff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(166, 226, 46, 0.08), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--green);
  color: #11140d;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark-mark { color: var(--green); }

nav { display: flex; align-items: center; gap: 1.6rem; }

nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

nav a:hover, nav a:focus-visible { color: var(--text); }

.nav-github {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-bright);
  color: var(--text);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: 7rem 0 6rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.1rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(166, 226, 46, 0.8);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 700px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  font-weight: 790;
}

h1 span { color: var(--green); }

.hero-summary {
  max-width: 580px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.install-command,
.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(8, 10, 7, 0.72);
}

.install-command { max-width: 680px; padding: 0.3rem 0.35rem 0.3rem 1rem; }

.install-command code,
.code-block code {
  min-width: 0;
  overflow-x: auto;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
  scrollbar-width: none;
}

.copy-button {
  flex: 0 0 auto;
  border: 1px solid var(--line-bright);
  padding: 0.5rem 0.72rem;
  background: var(--panel-soft);
  color: var(--muted);
  font: 700 0.68rem var(--mono);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.copy-button:hover,
.copy-button:focus-visible { border-color: var(--green); color: var(--text); }
.copy-button.copied { background: var(--green); color: #11140d; border-color: var(--green); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-bright);
  text-decoration: none;
  font: 800 0.76rem var(--mono);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { border-color: var(--green); background: var(--green); color: #11140d; }
.button-secondary { background: var(--panel); color: var(--text); }

.terminal {
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #090b08;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(255, 255, 255, 0.018);
  transform: rotate(0.5deg);
}

.terminal-bar,
.editor-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 42px;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: 700 0.64rem var(--mono);
  letter-spacing: 0.03em;
}

.terminal-dots { display: flex; gap: 5px; margin-right: auto; }
.terminal-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bright); }
.terminal-dots span:first-child { background: var(--pink); }
.terminal-dots span:nth-child(2) { background: var(--yellow); }
.terminal-dots span:nth-child(3) { background: var(--green); }
.terminal-live { margin-left: auto; color: var(--green); }

.terminal pre,
.editor-card pre {
  margin: 0;
  overflow: auto;
  font: 0.78rem/1.9 var(--mono);
  tab-size: 2;
}

.terminal pre { min-height: 340px; padding: clamp(1.2rem, 3vw, 2.1rem); }
.muted, .timestamp { color: #757b6d; }
.info, .notice, .accent { color: var(--cyan); font-weight: 800; }
.detail { color: #f8f8f2; }
.endpoint { color: var(--orange); font-weight: 800; }
.warning { color: var(--yellow); font-weight: 800; }
.error { padding: 0 0.22em; background: var(--pink); color: #fff; font-weight: 900; }
.cursor { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.15rem; vertical-align: -0.16em; background: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip div { padding: 1.5rem; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { display: block; color: var(--text); font: 800 0.88rem var(--mono); }
.proof-strip span { color: var(--muted); font-size: 0.78rem; }

.section { padding: clamp(5rem, 10vw, 8rem) 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading h2, .closing-section h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; }
.section-heading > p:last-child, .pipeline-section p { color: var(--muted); font-size: 1.02rem; }
.compact-heading { margin-bottom: 2.2rem; }

.workflow-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 1rem; }
.workflow-card, .signal-card, .editor-card, .reference-shell { border: 1px solid var(--line); background: rgba(27, 30, 24, 0.8); }
.workflow-card { min-height: 310px; padding: 1.5rem; display: flex; flex-direction: column; }
.workflow-card:hover, .signal-card:hover { border-color: var(--line-bright); }
.featured-card { background: linear-gradient(145deg, rgba(166, 226, 46, 0.1), rgba(27, 30, 24, 0.85) 55%); }
.card-number { margin-bottom: auto; color: var(--green); font: 800 0.7rem var(--mono); }
.workflow-card h3, .signal-card h3 { margin-bottom: 0.45rem; font-size: 1.15rem; }
.workflow-card p, .signal-card p { color: var(--muted); font-size: 0.86rem; }
.workflow-card .code-block { margin-top: 1rem; padding: 0.35rem 0.35rem 0.35rem 0.7rem; }

.signal-section { padding-top: 6rem; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.signal-card { min-height: 210px; padding: 1.5rem; }
.signal-sample { display: inline-block; margin-bottom: 3rem; font: 800 0.78rem var(--mono); }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.theme-card { position: relative; min-height: 170px; padding: 1.25rem; border: 1px solid var(--line); background: rgba(10, 12, 9, 0.82); }
.theme-card:hover { border-color: var(--theme-a); }
.theme-card h3 { margin: 2.8rem 0 0.3rem; font-size: 0.95rem; }
.theme-card h3 span { margin-left: 0.35rem; color: var(--green); font: 700 0.58rem var(--mono); text-transform: uppercase; }
.theme-card code { color: var(--muted); font: 0.68rem var(--mono); }
.theme-swatches { display: grid; grid-template-columns: repeat(3, 1fr); height: 8px; gap: 4px; }
.theme-swatches i { background: var(--theme-a); }
.theme-swatches i:nth-child(2) { background: var(--theme-b); }
.theme-swatches i:nth-child(3) { background: var(--theme-c); }
.default-theme { box-shadow: inset 0 0 0 1px var(--green); }
.theme-command { margin-top: 1rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--green); background: #090b08; color: var(--yellow); font: 0.8rem var(--mono); overflow-x: auto; }

.customize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor-label { justify-content: space-between; }
.editor-label span:last-child { color: var(--green); text-transform: uppercase; }
.editor-card pre { min-height: 340px; padding: 1.5rem; color: var(--muted); background: #0a0c09; }
.yaml-key { color: var(--cyan); }
.yaml-value { color: var(--yellow); }

.reference-shell { overflow: hidden; }
.usage-line { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); background: #0a0c09; color: var(--green); font: 0.8rem var(--mono); overflow-x: auto; }
.flag-list { margin: 0; }
.flag-list div { display: grid; grid-template-columns: minmax(180px, 0.7fr) 2fr; gap: 2rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); }
.flag-list div:last-child { border-bottom: 0; }
.flag-list dt { color: var(--yellow); }
.flag-list dd { margin: 0; color: var(--muted); }
.flag-list code { font-family: var(--mono); }

.pipeline-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.pipeline-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.05em; }
.pipeline-command { overflow-x: auto; padding: 1.5rem; border-left: 3px solid var(--green); background: #090b08; color: var(--text); font: 0.8rem var(--mono); white-space: nowrap; }
.pipeline-command b { color: var(--pink); }

.closing-section { padding: clamp(6rem, 13vw, 11rem) 0; text-align: center; }
.closing-section h2 { max-width: 760px; margin-inline: auto; }
.closing-actions { justify-content: center; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2.2rem 0 3rem; color: var(--muted); font-size: 0.75rem; }
footer p { margin: 0; }
footer a:hover { color: var(--text); }
.footer-mark { color: var(--text); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 900px) {
  nav a:not(.nav-github) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .terminal { transform: none; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-column: 1 / -1; }
  .signal-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-card { min-height: 0; }
  .signal-sample { margin-bottom: 1.5rem; }
  .pipeline-section { grid-template-columns: 1fr; gap: 2rem; }
  footer { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 1.5rem, 1180px); }
  .site-header { min-height: 66px; }
  .nav-github { padding: 0.45rem 0.6rem; }
  .hero { min-height: 0; padding: 4rem 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .install-command { align-items: stretch; flex-direction: column; padding: 0.8rem; }
  .copy-button { min-height: 40px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 5rem 0; }
  .workflow-grid, .customize-grid, .theme-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .flag-list div { grid-template-columns: 1fr; gap: 0.35rem; }
  .terminal pre, .editor-card pre { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
