:root {
  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --ink: #0a0a0a;
  --ink-muted: #5a5a5a;
  --line: #ececea;
  --accent: #0f0f0f;
  --link: #1a4fd6;
  --terminal-bg: #0c0e12;
  --terminal-ink: #eef0f4;
  --terminal-key: #6cd3a1;
  --terminal-meta: #7a8597;
  --terminal-prompt: #6cd3a1;
  --chart-ink: #111111;
  --chart-grid: #ececea;
  --chip-bg: #f4f3ef;
  --chip-border: #e1dfd8;
  --max: 760px;
  --max-wide: 880px;
  --pad-screen: 8rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.6rem 2rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
}

main {
  display: block;
}

.screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-screen) 2rem;
  border-bottom: 1px solid var(--line);
}

.screen:last-child {
  border-bottom: none;
}

.hero-inner,
.pain-inner,
.fix-inner,
.proof-inner,
.install-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.fix-inner {
  max-width: var(--max-wide);
}

/* SCREEN 1 — HERO */

.hero-inner {
  text-align: left;
}

.hero h1,
.hero-inner h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-sub {
  margin: 1.4rem 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-muted);
  max-width: 36ch;
  line-height: 1.45;
}

.hero-stat {
  margin: 2rem 0 0;
  font-size: 1rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stat-arrow {
  color: var(--ink);
  font-weight: 700;
}

.stat-number {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.stat-label {
  color: var(--ink-muted);
}

.stat-source {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.stat-source:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-muted);
}

.hero-cta {
  margin: 2.4rem 0 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 120ms ease, transform 120ms ease;
}

.cta:hover {
  background: #1f1f1f;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-shot {
  margin: 3.6rem 0 0;
  border: 1px solid #1b1f27;
  border-radius: 14px;
  background: var(--terminal-bg);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.45);
}

.hero-shot pre {
  margin: 0;
  padding: 1.6rem 1.8rem;
  color: var(--terminal-ink);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.hero-shot .t-prompt {
  color: var(--terminal-prompt);
  font-weight: 600;
}

.hero-shot .t-cmd {
  color: var(--terminal-ink);
}

.hero-shot .t-key {
  color: var(--terminal-key);
}

.hero-shot .t-meta {
  color: var(--terminal-meta);
  font-size: 0.85rem;
}

.proof-label {
  margin: 3.6rem 0 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.proof-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  align-items: center;
}

.proof-row li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink-muted);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* SCREEN 2 — PAIN */

.pain-inner {
  text-align: left;
}

.pain-number {
  margin: 0;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink);
}

.pain-number .stat-arrow {
  font-size: 0.55em;
  margin-right: 0.15em;
  vertical-align: 0.18em;
  color: var(--ink);
  font-weight: 700;
}

.pain-sub {
  margin: 1.6rem 0 0;
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 56ch;
}

.pain-sub a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.pain-sub a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-muted);
}

.pain-chart {
  margin: 3.6rem 0 0;
  padding: 0;
}

.chart-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 2rem 1.4rem 1.2rem;
  color: var(--chart-ink);
}

.chart-chip {
  position: absolute;
  top: 0.8rem;
  left: 1.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: var(--ink);
  font-weight: 500;
}

.pain-chart svg {
  width: 100%;
  height: clamp(160px, 22vw, 220px);
  display: block;
  color: var(--chart-ink);
}

.chart-grid line {
  stroke: var(--chart-grid);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart-line {
  stroke: var(--chart-ink);
}

.chart-dot {
  fill: var(--chart-ink);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pain-caption {
  margin: 2.4rem 0 0;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 48ch;
  line-height: 1.4;
}

/* SCREEN 3 — FIX */

.screen-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}

.chat {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.chat-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.chat-site {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.chat-site select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.3rem 0.5rem;
  font: inherit;
  cursor: pointer;
}

.chat-stream {
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--bg);
}

.chat-bubble {
  max-width: 86%;
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble.assistant pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.86rem;
  color: var(--ink);
}

.chat-bubble.assistant .meta {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-bubble.assistant .meta span {
  word-break: break-all;
}

.chat-bubble.assistant.intro {
  background: #ffffff;
  border-style: dashed;
}

.chat-bubble.error {
  border-color: #f0c9c1;
  background: #fdf3f0;
  color: #6c2d1f;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.4rem 1rem;
  background: var(--bg);
}

.chat-chip {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.chat-chip:hover {
  background: #ebe9e2;
  transform: translateY(-1px);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.chat-prompt {
  color: var(--terminal-prompt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  background: #ffffff;
  color: var(--ink);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--ink);
}

.chat-input button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
}

.chat-input button:hover {
  background: #1f1f1f;
}

.fix-caption {
  margin: 1.8rem 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
  text-align: left;
}

/* SCREEN 4 — PROOF */

.proof-headline {
  margin: 0 0 2rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.25;
  max-width: 36ch;
}

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

.proof-table th,
.proof-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.proof-table th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.proof-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

.proof-table td:nth-child(2),
.proof-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 7rem;
}

.proof-table th:nth-child(2),
.proof-table th:nth-child(3) {
  text-align: right;
}

.proof-foot {
  margin: 1.4rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.proof-cta {
  margin: 3rem 0 0;
}

/* SCREEN 5 — INSTALL */

.install-headline {
  margin: 0 0 2rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 32ch;
}

.install-code {
  margin: 0;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  font-size: 0.9rem;
  overflow-x: auto;
  line-height: 1.6;
}

.install-steps {
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.install-steps li {
  margin: 0.4rem 0;
}

.install-cta {
  margin: 3rem 0 0;
}

/* FOOTER */

.site-footer {
  padding: 2.4rem 2rem 3rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* BLOG / POSTS */

.post {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-header {
  margin-bottom: 2.4rem;
}

.post-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.post h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.post-lede {
  margin: 1.2rem 0 0;
  font-size: 1.18rem;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 60ch;
}

.last-updated {
  margin: 1.4rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}

.post h2 {
  margin: 3rem 0 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.post h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 600;
}

.post p {
  margin: 0.9rem 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
}

.post ul,
.post ol {
  margin: 1rem 0 1.4rem;
  padding-left: 1.4rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.post li {
  margin: 0.45rem 0;
}

.post li > strong {
  font-weight: 600;
}

.post a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(26, 79, 214, 0.35);
  text-underline-offset: 3px;
}

.post a:hover {
  text-decoration-color: var(--link);
}

.post blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--ink);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1rem;
}

.post code {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 5px;
  padding: 0.08em 0.36em;
  font-size: 0.9em;
}

.post pre {
  margin: 1.4rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: auto;
}

.post pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.8rem;
  font-size: 0.94rem;
}

.post table th,
.post table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.post table th {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.post table code {
  font-size: 0.84em;
}

.tldr {
  margin: 1.6rem 0 2.2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--bg-soft);
}

.tldr-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.tldr p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.sources {
  margin: 3rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.sources h2 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.sources ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.sources a {
  color: var(--ink-muted);
  text-decoration-color: var(--line);
}

.sources a:hover {
  color: var(--ink);
}

.cite-me {
  margin: 2.4rem 0 0;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cite-me-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terminal-meta);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cite-me pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--terminal-ink);
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.cite-me .t-key {
  color: var(--terminal-key);
}

.cite-me .t-meta {
  color: var(--terminal-meta);
}

.post-cta {
  margin: 3rem 0 0;
}

.post-nav {
  margin: 3rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.post-nav-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.post-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Blog index */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.post-list li {
  border-top: 1px solid var(--line);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.post-list a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.4rem 0;
  color: var(--ink);
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: none;
}

.post-list a:hover .post-list-title {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 3px;
}

.post-list-title {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.post-list-desc {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.post-list-date {
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: -0.005em;
}

@media (max-width: 720px) {
  .post {
    padding: 2.6rem 1.4rem 4rem;
  }
  .post pre {
    padding: 1rem 1.1rem;
    font-size: 0.8rem;
  }
  .post table {
    font-size: 0.86rem;
  }
}

/* RESPONSIVE */

@media (max-width: 720px) {
  :root {
    --pad-screen: 5rem;
  }
  body {
    font-size: 17px;
  }
  .site-header {
    padding: 1.2rem 1.4rem;
  }
  .screen {
    padding: var(--pad-screen) 1.4rem;
  }
  .hero-shot pre {
    padding: 1.2rem 1.2rem;
    font-size: 0.82rem;
  }
  .chat-stream {
    min-height: 260px;
  }
  .proof-row {
    gap: 1rem 1.6rem;
  }
}
