@font-face {
  font-family: 'Druk Condensed Super';
  src: url('fonts/DrukCondensed-Super.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('fonts/neuehaasgrotesk/NeueHaasGrotesk-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('fonts/neuehaasgrotesk/NeueHaasGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('fonts/neuehaasgrotesk/NeueHaasGrotesk-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --panel: #0f0f0f;
  --panel-bar: #161616;
  --text: #f4f4f2;
  --dim: #8a8a86;
  --faint: #555555;
  --line: #222222;
  --line-soft: #2a2a2a;
  --accent: #57d9a3;          
  --accent-dim: #3a9d77;
  --cc: #c15f3c;             
  --cc-bright: #de7356;

  --display: 'Druk Condensed Super', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --sans: 'Neue Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-rows: 56px 1fr 56px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo { height: 35px; width: auto; display: block; }

.github-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 5px 0;
  position: relative;
}
.github-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.github-link:hover::after { width: 100%; }

.center {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  align-items: center;
  padding: 0 56px;
  gap: 56px;
  min-height: 0;
}

.left-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 100%; }

.headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(58px, 8.6vw, 124px);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: break-word;
}
.headline .accent { color: var(--accent); }

.subtext {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--dim);
  line-height: 1.65;
  letter-spacing: -0.005em;
  margin-top: 24px;
  margin-bottom: 30px;
  max-width: 430px;
}

.install-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px 12px 18px;
  background: var(--panel);
  margin-bottom: 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
  max-width: 480px;
  width: 100%;
}
.install-pill:hover { border-color: var(--accent-dim); background: #121212; }

.install-code {
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px);
  color: var(--text);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-code .prompt { color: var(--accent); }

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.copy-btn:hover { color: var(--text); transform: scale(1.1); }
.copy-btn.copied { color: var(--accent); }
.hidden { display: none !important; }

.works-with { display: flex; align-items: center; gap: 12px; }
.works-label { font-size: 12px; color: var(--faint); letter-spacing: -0.01em; white-space: nowrap; }
.agent-logos { display: flex; align-items: center; gap: 8px; }
.agent-logo-link { display: flex; align-items: center; opacity: 0.65; transition: opacity 0.15s ease; }
.agent-logo-link:hover { opacity: 1; }
.agent-logo { width: 20px; height: 20px; border-radius: 4px; display: block; }

.right-col { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }

.terminal {
  width: 100%;
  max-height: calc(100vh - 56px - 56px - 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 24px 60px rgba(0,0,0,0.55),
    0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.term-titlebar {
  display: flex;
  align-items: center;
  background: var(--panel-bar);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 14px;
  height: 38px;
  flex-shrink: 0;
  gap: 14px;
}
.term-dots { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.term-tabs { display: flex; align-items: center; gap: 2px; }
.term-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #cfcfcf;
  background: #202020;
  border: 1px solid #2c2c2c;
}
.term-tab.active { color: #fff; background: #2a2a2a; border-color: #383838; }
.term-tab-logo { width: 14px; height: 14px; border-radius: 3px; }

.term-body {
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: clamp(11px, 0.85vw, 12.5px);
  line-height: 1.7;
  color: #c9c9c9;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-welcome-box {
  border: 1px solid var(--cc);
  border-radius: 6px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.cc-welcome-title { display: flex; align-items: baseline; gap: 6px; }
.cc-asterisk { color: var(--cc-bright); font-weight: 700; flex-shrink: 0; }
.cc-welcome-text { color: var(--text); }
.cc-welcome-text strong { font-weight: 700; color: #ffffff; }
.cc-welcome-hints { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; }
.cc-hint { color: #6a6a6a; font-style: italic; }

.cc-input-box {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b0b0b;
  flex-shrink: 0;
}
.cc-chevron { color: var(--accent); flex-shrink: 0; user-select: none; }
.cc-input-text { color: var(--text); white-space: nowrap; overflow: hidden; }
.cc-caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--text);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  flex-shrink: 0;
}
.cc-shortcuts { color: var(--faint); font-style: italic; flex-shrink: 0; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.docs-link:hover { color: var(--accent); }
.copyright { font-size: 11px; color: var(--faint); }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  html, body { overflow-y: auto; }
  body { grid-template-rows: 56px auto 56px; }

  .center {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 28px 48px;
    gap: 36px;
    align-items: start;
  }
  .topbar, .bottombar { padding: 0 28px; }

  .headline { font-size: clamp(40px, 12vw, 72px); }
  .headline br { display: none; }   
  .subtext, .install-pill { max-width: 100%; }
  .terminal { max-height: 380px; }
}

@media (max-width: 420px) {
  .topbar, .bottombar, .center { padding-left: 20px; padding-right: 20px; }
  .works-with { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-caret { animation: none; }
  * { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}