
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050807;
  --panel: #0b100e;
  --green: #8cffb0;
  --green-dark: #3ccf78;
  --text: #d6e4da;
  --muted: #738078;
  --border: #20382a;
  --red: #ff6565;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, #12251a 0%, transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.13;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    #000 4px
  );
}

.app {
  width: min(920px, 92%);
  margin: auto;
  padding: 32px 0 24px;
}

.topbar,
.brand,
.status,
.terminal-header,
.window-dots,
.terminal-footer {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.brand {
  gap: 13px;
}

.ghost-icon {
  font-size: 35px;
  filter: drop-shadow(0 0 12px #70ff9c66);
}

h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 3px;
}

.accent,
.hero h2 span {
  color: var(--green);
}

.subtitle,
.status,
.eyebrow,
.message-label,
.terminal-header,
.terminal-footer,
footer {
  font-family: "Share Tech Mono", monospace;
}

.subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.status {
  gap: 9px;
  color: var(--green);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s infinite;
}

.hero {
  text-align: center;
  padding: 54px 0 38px;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 11px;
  letter-spacing: 3px;
}

.hero h2 {
  font-size: clamp(32px, 6vw, 55px);
  margin: 17px 0;
  letter-spacing: -2px;
}

.hero p {
  max-width: 510px;
  margin: auto;
  color: #8b9b90;
  line-height: 1.8;
  font-size: 14px;
}

.terminal {
  background: #080d0a;
  border: 1px solid #294534;
  border-radius: 9px;
  overflow: hidden;
  box-shadow:
    0 0 45px #39ff7b0a,
    0 18px 60px #0008;
}

.terminal-header {
  min-height: 46px;
  padding: 0 16px;
  gap: 15px;
  color: #839489;
  font-size: 12px;
  background: #101812;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c6253;
}

.window-dots span:first-child {
  background: #f16c6c;
}

.window-dots span:nth-child(2) {
  background: #edc66d;
}

.window-dots span:nth-child(3) {
  background: #72d797;
}

.terminal-label {
  margin-left: auto;
  color: var(--green-dark);
  font-size: 10px;
}

.messages {
  height: 350px;
  overflow-y: auto;
  padding: 24px;
  font-family: "Share Tech Mono", monospace;
  line-height: 1.8;
  scrollbar-color: #294534 #080d0a;
}

.message {
  margin-bottom: 27px;
  animation: fadeIn 0.35s ease both;
}

.message-label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 2px;
}

.system-message .message-label {
  color: #7b8a7e;
}

.system-message p {
  margin: 4px 0;
  color: #829186;
  font-size: 13px;
}

.system-message .success {
  color: var(--green-dark);
}

.ghost-message .message-label {
  color: var(--green);
}

.ghost-message p {
  margin: 0;
  color: #d3e8d8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.user-message .message-label {
  color: #7ca8ff;
}

.user-message p {
  margin: 0;
  color: #d7e0ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.typing {
  color: var(--green-dark);
  animation: pulse 1s infinite;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 20px;
}

.suggestion {
  border: 1px solid #284333;
  border-radius: 4px;
  background: #101912;
  color: #a4c5ad;
  font-size: 11px;
  padding: 10px 12px;
  transition: 0.2s;
}

.suggestion:hover {
  border-color: var(--green);
  color: var(--green);
  background: #15281b;
}

.input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prompt-symbol {
  color: var(--green);
  font-family: "Share Tech Mono", monospace;
}

.input-area input {
  flex: 1;
  width: 0;
  min-width: 0;
  background: transparent;
  color: white;
  border: none;
  outline: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
}

.input-area input::placeholder {
  color: #59685d;
}

.input-area button {
  border: 1px solid var(--green-dark);
  background: #183a25;
  color: var(--green);
  padding: 11px 13px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  transition: 0.2s;
}

.input-area button:hover {
  background: #245334;
  box-shadow: 0 0 15px #5cff8c20;
}

.input-area button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.terminal-footer {
  justify-content: space-between;
  padding: 14px 24px;
  color: #5d7062;
  font-size: 10px;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #66776a;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 2;
}

.footer-note {
  color: #435448;
  letter-spacing: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .app {
    width: 94%;
    padding-top: 20px;
  }

  .hero {
    padding: 40px 8px 28px;
  }

  .hero h2 {
    letter-spacing: -1px;
  }

  .messages {
    height: 340px;
    padding: 18px;
  }

  .suggestions {
    padding: 0 18px 16px;
  }

  .suggestion {
    flex: 1 1 100%;
    text-align: left;
  }

  .input-area {
    margin: 0 16px;
    gap: 8px;
  }

  .input-area button {
    padding: 10px 8px;
    font-size: 10px;
  }

  .terminal-footer {
    padding: 13px 16px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
