/* Nano Banana MCP — dev-flavored dark theme with banana-yellow accent. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

:root {
  --bg:           #0b0c0f;
  --bg-2:         #14161c;
  --surface:      #181b22;
  --surface-2:    #1f232c;
  --border:       #262a34;
  --border-soft:  #1c2028;
  --text:         #e8eaf0;
  --text-dim:     #a4a9b6;
  --text-faint:   #6b7180;
  --accent:       #ffd23f;
  --accent-ink:   #1a1300;
  --accent-soft:  rgba(255, 210, 63, 0.14);
  --accent-deep:  #e3b300;
  --good:         #34d399;
  --warn:         #fbbf24;
  --bad:          #f87171;
  --danger:       #ef4444;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow:       0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop:   0 16px 40px rgba(0, 0, 0, 0.5);
  --mono:         'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        720px;
}

body {
  background: radial-gradient(ellipse at top, #16181f 0%, #0b0c0f 60%, #08090c 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.shell-install { max-width: 760px; }

/* ========== HERO ========== */

.hero { text-align: center; margin-bottom: 56px; }
.banana { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 20px rgba(255, 210, 63, 0.25)); }
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 20px 0 8px;
}
.hero-tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  margin-left: 6px;
}
.hero-lede {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(255, 210, 63, 0.25);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 210, 63, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--text-faint); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.12); border-color: var(--danger); }

/* ========== FEATURES ========== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}
@media (max-width: 700px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-h {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}
.feature-snip {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ========== HOW / SECTIONS ========== */

.how { margin-bottom: 48px; }
.how h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 16px; }
.how p { color: var(--text-dim); margin: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  counter-increment: step;
}
.steps li strong { color: var(--text); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inline links inside copy (steps, cards, prose). Without this they fall
   back to the browser's default blue/purple, which is unreadable on the
   dark bg. Scoped with :not(.btn) so button-styled anchors are untouched;
   one color rule also covers :visited so links never turn purple. */
.steps a:not(.btn),
.card a:not(.btn),
.how p a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 210, 63, 0.35);
  padding-bottom: 1px;
}
.steps a:not(.btn):hover,
.card a:not(.btn):hover,
.how p a:not(.btn):hover { border-color: var(--accent); }

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.foot a { color: var(--text-dim); border-bottom: 1px solid var(--border); padding-bottom: 1px; text-decoration: none; }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

/* ========== INSTALL / SHARED ========== */

.install-head { margin-bottom: 32px; }
.crumb { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.crumb:hover { color: var(--accent); }
.install-head h1 { font-size: 32px; font-weight: 800; margin: 12px 0 0; letter-spacing: -0.02em; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 200px;
}
.loading .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: pulse 1.3s ease-in-out infinite;
}
.loading .dot:nth-child(2) { animation-delay: 0.15s; }
.loading .dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes pulse { 0%,80%,100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.card-warn {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.card-warn h2 { color: var(--accent); margin: 0 0 8px; font-size: 18px; }
.card-warn p { color: var(--text); margin: 0 0 16px; }

.hint { color: var(--text-dim); font-size: 14px; margin: 0; }
.hint code { color: var(--accent); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 12.5px; }
.hint em { color: var(--text); font-style: normal; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 60;
  box-shadow: var(--shadow-pop);
}

/* end of theme.css */