:root {
  --ink: #0f1f17;
  --ink-soft: #355445;
  --paper: #eef7f1;
  --green: #16a34a;
  --green-deep: #14532d;
  --green-soft: #86efac;
  --terminal: #0b1510;
  --font-display: "JetBrains Mono", Consolas, monospace;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow-x: hidden;
}

.terminal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 50% at 20% 25%, rgba(22, 163, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 80%, rgba(134, 239, 172, 0.35), transparent 50%),
    linear-gradient(160deg, #f3faf5 0%, #e5f4ea 45%, #d7ecdf 100%);
  animation: drift 20s ease-in-out infinite alternate;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  animation: rise 0.75s ease both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--green-deep);
  animation: rise 0.85s ease both 0.1s;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  animation: rise 0.85s ease both 0.2s;
}

.terminal {
  margin-top: 1.75rem;
  width: min(100%, 28rem);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--terminal);
  box-shadow: 0 18px 40px rgba(15, 31, 23, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.25);
  text-align: left;
  animation: rise 0.85s ease both 0.35s;
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.terminal-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #3f3f46;
}

.terminal-bar span:nth-child(1) {
  background: #f87171;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #4ade80;
}

.terminal-body {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #d1fae5;
  overflow-x: auto;
}

.prompt {
  color: var(--green-soft);
}

.ok {
  color: #4ade80;
}

.host {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--green);
  animation: rise 0.85s ease both 0.5s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03) translate3d(1%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-bg,
  .eyebrow,
  .brand,
  .lead,
  .terminal,
  .host {
    animation: none;
  }
}
