@font-face {
  font-family: 'Sohne';
  src: url('fonts/Sohne-Buch.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IoskeleyMono';
  src: url('fonts/ioskeleyMono/IoskeleyMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: 'Sohne', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: #ffffff;
  color: #000000;
  display: grid;
  grid-template-rows: 52px 1fr 52px;
  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 #e8e8e8;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 18px;
  width: auto;
  display: block;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #000;
  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: #000;
  transition: width 0.2s ease;
}

.github-link:hover::after {
  width: 100%;
}

.github-icon {
  width: 18px;
  height: 18px;
  display: block;
}

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

.left-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.headline {
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 20px;
}

.headline .underline {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.subtext {
  font-size: clamp(13px, 1.1vw, 15px);
  color: #666;
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 380px;
}

.install-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #111;
  border-radius: 10px;
  padding: 12px 14px 12px 18px;
  background: #fafafa;
  margin-bottom: 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
  max-width: 460px;
}

.install-pill:hover {
  background: #ffffff;
  border-color: #000;
}

.install-code {
  font-family: 'IoskeleyMono', 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: clamp(10px, 0.9vw, 13px);
  color: #000;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-code .prompt {
  color: #aaa;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  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: #000;
  transform: scale(1.1);
}

.copy-btn.copied {
  color: #16a34a;
}

.hidden {
  display: none !important;
}

/* Works with */
.works-with {
  display: flex;
  align-items: center;
  gap: 12px;
}

.works-label {
  font-size: 12px;
  color: #999;
  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.7;
  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;
}

.terminal {
  width: 100%;
  max-height: calc(100vh - 52px - 52px - 48px); 
  background: #0d0d0d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.term-titlebar {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 14px;
  height: 36px;
  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: 'IoskeleyMono', monospace;
  font-size: 11px;
  color: #ccc;
  background: #2a2a2a;
  border: 1px solid #333;
}

.term-tab.active {
  color: #fff;
  background: #333;
  border-color: #444;
}

.term-tab-logo {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.term-body {
  padding: 16px 18px 14px;
  font-family: 'IoskeleyMono', 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: clamp(10px, 0.85vw, 12px);
  line-height: 1.7;
  color: #ccc;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ascii-banner {
  color: #ffffff;
  font-size: clamp(8px, 0.7vw, 10.5px);
  line-height: 1.4;
  white-space: pre;
  letter-spacing: 0;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.banner-sub {
  color: #555;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.term-divider {
  width: 100%;
  height: 1px;
  background: #222;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.term-session {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.term-line {
  display: block;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line.visible {
  opacity: 1;
}

.term-user {
  color: #888;
}

.term-user-arrow {
  color: #555;
}

.term-user-text {
  color: #e5e5e5;
}

.term-check  { color: #4ade80; }
.term-dim    { color: #444; }
.term-white  { color: #ffffff; }
.term-muted  { color: #666; }
.term-blue   { color: #93c5fd; }
.term-sub    { color: #555; font-size: 0.9em; }

.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 6px;
}

.badge-critical {
  background: #450a0a;
  color: #fca5a5;
}

.badge-high {
  background: #431407;
  color: #fdba74;
}

.badge-medium {
  background: #422006;
  color: #fcd34d;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #e5e5e5;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}

@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 #e8e8e8;
  flex-shrink: 0;
}

.source-note {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.02em;
}

.copyright {
  font-size: 11px;
  color: #aaa;
}

.qedgen-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #999;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
 
.qedgen-link:hover {
  color: #000;
  text-decoration-color: #000;
}

.knowledge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
 
.knowledge-link:hover {
  color: #666;
}

.cc-welcome-box {
  border: 1px solid #C15F3C;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.cc-welcome-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cc-asterisk {
  color: #DE7356;
  font-weight: 700;
  flex-shrink: 0;
}

.cc-welcome-text {
  color: #e5e5e5;
}

.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: #666;
  font-style: italic;
}

.cc-input-box {
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  flex-shrink: 0;
}

.cc-chevron {
  color: #888;
  flex-shrink: 0;
  user-select: none;
}

.cc-input-text {
  color: #e5e5e5;
  white-space: nowrap;
  overflow: hidden;
}

.cc-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #e5e5e5;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  flex-shrink: 0;
}

.cc-shortcuts {
  color: #555;
  font-style: italic;
  flex-shrink: 0;
}


@media (max-width: 900px) {
  body {
    overflow: auto; 
  }

  .center {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 40px;
    align-items: start;
  }

  .topbar,
  .bottombar {
    padding: 0 28px;
  }

  .headline {
    font-size: clamp(32px, 7vw, 48px);
  }

  .terminal {
    max-height: 420px;
  }

  .subtext {
    max-width: 100%;
  }

  .install-pill {
    max-width: 100%;
  }
}