/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 70% 50%, rgba(56,189,248,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  #hero { min-height: auto; padding-top: 60px; padding-bottom: 60px; }
}

/* ── LEFT ────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-name-last { color: var(--accent); }

.hero-tagline {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 380px;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }

/* ── MODE TOGGLE ─────────────────────────────────────────── */
.mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.mode-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text3);
  transition: color 0.2s;
}
.mode-lbl.active { color: var(--accent); }

.toggle {
  width: 44px; height: 24px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.toggle.on { background: var(--accent-dim); border-color: var(--accent); }

.toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text2);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle.on .toggle-knob {
  transform: translateX(20px);
  background: var(--accent);
}

/* ── NORMAL NAV ──────────────────────────────────────────── */
.hero-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline, .btn-solid {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid var(--border2);
}

.btn-outline {
  background: transparent;
  color: var(--text2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-solid {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-solid:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
}

/* ── DEV NAV ─────────────────────────────────────────────── */
.dev-nav { display: none; flex-direction: column; gap: 8px; }

.dev-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.dev-route:hover { border-color: var(--accent); background: var(--accent-dim); }

.dev-method { color: var(--accent); font-weight: 600; min-width: 38px; }
.dev-path   { color: var(--text); flex: 1; }
.dev-status { color: var(--green); font-size: 11px; }

/* ── TERMINAL ────────────────────────────────────────────── */
.hero-right { display: flex; justify-content: center; }

.terminal {
  width: 100%;
  max-width: 500px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot-r { background: #3d2020; border: 1px solid #5a2e2e; }
.t-dot-y { background: #3d3520; border: 1px solid #5a4d2e; }
.t-dot-g { background: #1d3d20; border: 1px solid #2e5a30; }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-left: 6px;
}

.terminal-body {
  padding: 16px;
  min-height: 160px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t-line {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.t-hi     { color: var(--accent); font-weight: 600; }
.t-divider{ color: var(--text3); }
.t-out    { color: var(--text2); }
.t-user   { color: var(--accent); }
.t-response { color: var(--text); }
.t-error  { color: #f87171; }
.t-typing::after {
  content: '▋';
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.t-prompt-sym {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  caret-color: var(--accent);
}
#chat-input::placeholder { color: var(--text3); }




/* ── MOBILE FIXES ────────────────────────────────────────── */
@media (max-width: 860px) {
  #hero {
    padding: 48px 20px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-name {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-tagline {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
  }

  .hero-nav {
    gap: 8px;
  }

  .btn-outline, .btn-solid {
    font-size: 11px;
    padding: 9px 16px;
  }

  .hero-right {
    width: 100%;
  }

  .terminal {
    max-width: 100%;
    width: 100%;
  }

  .terminal-body {
    min-height: 120px;
    max-height: 180px;
    padding: 12px;
  }

  .t-line {
    font-size: 11.5px;
  }

  #chat-input {
    font-size: 11.5px;
  }

  .dev-route {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  #hero {
    padding: 40px 16px;
  }

  .hero-name {
    font-size: 38px;
  }

  .btn-outline, .btn-solid {
    font-size: 10.5px;
    padding: 8px 14px;
  }
}