@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

:root {
  --bg: #0a0a0f;
  --terminal-bg: #12121a;
  --border: #2a2a3a;
  --text: #c9d1d9;
  --text-dim: #6e7681;
  --green: #3fb950;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --orange: #d29922;
  --red: #f85149;
  --cyan: #39c5cf;
  --claude-orange: #da7756;
  --claude-cream: #f0e6d3;
  --glow: rgba(218, 119, 86, 0.15);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

/* Scanline effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* Utility */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-4 { margin-top: 4px; }
.ml-12 { margin-left: 12px; }
.cta-link { color: var(--claude-orange); text-decoration: underline; }

/* ===== ANIMATION PAGE ===== */
.animation-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.animation-page .logo {
  margin-bottom: 32px;
  text-align: center;
}

.animation-page .logo h1 {
  font-size: 28px;
  color: var(--claude-cream);
  letter-spacing: -0.5px;
}

.animation-page .logo h1 .highlight {
  color: var(--claude-orange);
}

.animation-page .logo p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

.terminal-wrapper {
  width: 100%;
  max-width: 700px;
}

.terminal-box {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-box .title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1a1a25;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.title-bar-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.title-bar-text {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Terminal body */
.terminal {
  background: var(--terminal-bg);
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  max-height: 420px;
  min-height: 320px;
}

.terminal::-webkit-scrollbar { width: 8px; }
.terminal::-webkit-scrollbar-track { background: var(--terminal-bg); }
.terminal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Terminal lines */
.line { white-space: pre-wrap; word-break: break-word; }

.prompt-symbol { color: var(--green); font-weight: 700; }
.path { color: var(--blue); }
.command { color: var(--text); }
.flag { color: var(--cyan); }
.string { color: var(--claude-cream); }
.comment { color: var(--text-dim); font-style: italic; }
.error { color: var(--red); }
.success { color: var(--green); }
.claude-brand { color: var(--claude-orange); font-weight: 700; }
.dim { color: var(--text-dim); }
.bold { font-weight: 700; }

/* Blinking cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--claude-orange);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* Thinking animation */
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.thinking-dots span {
  animation: pulse 1.5s ease-in-out infinite;
  color: var(--claude-orange);
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ASCII art */
.ascii-art {
  color: var(--claude-orange);
  line-height: 1.2;
  font-size: 12px;
}

/* Claude banner box */
.claude-banner {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(218, 119, 86, 0.05);
  border-color: rgba(218, 119, 86, 0.2);
}

/* Snarky message */
.snarky-box {
  border: 1px solid var(--claude-orange);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 12px 0;
  background: rgba(218, 119, 86, 0.08);
  text-align: center;
}

.snarky-box .big-text {
  font-size: 18px;
  color: var(--claude-cream);
  margin-bottom: 8px;
  font-weight: 700;
}

.snarky-box .sub-text {
  font-size: 12px;
  color: var(--text-dim);
}

/* Progress bar */
.progress-container { margin: 8px 0; display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; max-width: 300px; }
.progress-fill { height: 100%; background: var(--claude-orange); border-radius: 2px; width: 0%; transition: width 0.3s ease; }
.progress-text { font-size: 11px; color: var(--text-dim); }

/* ===== INPUT PAGE ===== */
.input-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.input-page .logo { margin-bottom: 32px; text-align: center; }
.input-page .logo h1 { font-size: 28px; color: var(--claude-cream); letter-spacing: -0.5px; }
.input-page .logo h1 .highlight { color: var(--claude-orange); }
.input-page .logo p { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

.input-container { width: 100%; max-width: 620px; }

.terminal-input-box { background: var(--terminal-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.terminal-input-box .mini-title-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1a1a25; border-bottom: 1px solid var(--border); }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; }

.terminal-input-area { display: flex; align-items: flex-start; padding: 16px; gap: 8px; }
.terminal-input-area .prompt-prefix { color: var(--green); font-weight: 700; white-space: nowrap; padding-top: 2px; font-size: 14px; }
.terminal-input-area textarea { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.6; resize: none; min-height: 24px; max-height: 120px; }
.terminal-input-area textarea::placeholder { color: var(--text-dim); }

.input-actions { display: flex; gap: 10px; margin-top: 16px; }

.btn { flex: 1; padding: 12px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--terminal-bg); color: var(--text); font-family: inherit; font-size: 13px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: var(--claude-orange); background: rgba(218, 119, 86, 0.1); }
.btn-primary { background: var(--claude-orange); border-color: var(--claude-orange); color: #fff; font-weight: 700; }
.btn-primary:hover { background: #c56a4c; border-color: #c56a4c; }

/* Link result */
.link-result { margin-top: 20px; display: none; }
.link-result.visible { display: block; }
.link-box { background: var(--terminal-bg); border: 1px solid var(--green); border-radius: 6px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.link-box input { flex: 1; background: transparent; border: none; outline: none; color: var(--green); font-family: inherit; font-size: 13px; }
.copy-btn { padding: 6px 14px; background: rgba(63, 185, 80, 0.15); border: 1px solid var(--green); border-radius: 4px; color: var(--green); font-family: inherit; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.copy-btn:hover { background: rgba(63, 185, 80, 0.25); }

.link-hint { margin-top: 8px; font-size: 11px; color: var(--text-dim); text-align: center; }

.footer { margin-top: 40px; text-align: center; font-size: 11px; color: var(--text-dim); }
.footer a { color: var(--claude-orange); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .input-page,
  .animation-page { justify-content: flex-start; padding-top: 40px; }
  .input-page .logo,
  .animation-page .logo { margin-bottom: 20px; }
  .terminal { font-size: 12px; padding: 12px; max-height: 360px; min-height: 260px; }
  .ascii-art { font-size: 8px; }
  .input-page .logo h1,
  .animation-page .logo h1 { font-size: 20px; }
  .title-bar-text { font-size: 10px; }
  .footer { margin-top: 24px; }
}
