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

:root {
  --ink: #e8eef7;
  --ink-soft: #a8b6cc;
  --ink-mute: #66748c;
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --accent3: #f472b6;
  --glass: rgba(18, 24, 38, 0.62);
  --glass-border: rgba(140, 170, 220, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --bg: #070b14;
}

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

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  filter: blur(110px);
  opacity: 0.42;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: float 22s ease-in-out infinite;
}
.aurora span:nth-child(1) {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  top: 0%; left: 0%;
}
.aurora span:nth-child(2) {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 35%; right: 0%;
  animation-delay: -8s;
}
.aurora span:nth-child(3) {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: 0%; left: 32%;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(6vw, -4vh) scale(1.15); }
  66%      { transform: translate(-5vw, 5vh) scale(0.9); }
}

.waves {
  position: fixed;
  left: 0;
  width: 100%;
  height: 45vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}
.waves-bottom { bottom: 0; }
.waves-top {
  top: 0;
  transform: scaleY(-1);
}
.waves svg {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
}
.waves-bottom svg { bottom: 0; }
.waves-top svg { top: 0; }

.wave1 { animation: waveMove 16s linear infinite; }
.wave2 { animation: waveMove 22s linear infinite reverse; opacity: 0.7; }
.wave3 { animation: waveMove 30s linear infinite; opacity: 0.5; }

@keyframes waveMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.stage {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.terminal {
  position: relative;
  width: min(780px, 100%);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.term-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(140, 170, 220, 0.12);
}

.term-title {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.6px;
  font-weight: 500;
  text-transform: lowercase;
}

.status {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
}
.status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.term-body {
  padding: 24px 26px 30px;
  font-size: 14.5px;
  line-height: 1.8;
  min-height: 360px;
  max-height: 62vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 231, 255, 0.3) transparent;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 255, 0.3);
  border-radius: 3px;
}

.line { white-space: pre-wrap; word-break: break-word; }
.prompt-user { color: var(--accent2); font-weight: 600; }
.prompt-path { color: var(--accent); font-weight: 600; }
.prompt-sym  { color: var(--ink-mute); }
.cmd         { color: #ffffff; font-weight: 500; }
.out         { color: var(--ink-soft); }
.out-accent  { color: var(--accent); }
.out-purple  { color: var(--accent2); }
.out-pink    { color: var(--accent3); }
.muted       { color: var(--ink-mute); }
.bold        { font-weight: 700; }

.input-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.input-line input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  caret-color: var(--accent);
  padding: 0;
}

.hint {
  color: var(--ink-mute);
  opacity: 0.7;
}

.term-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(140, 170, 220, 0.12);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.4px;
}
.term-foot .dot-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-mute);
  margin: 0 8px;
  vertical-align: middle;
}
.clock { font-variant-numeric: tabular-nums; }

.chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  background: rgba(110, 231, 255, 0.1);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(110, 231, 255, 0.15);
}
.chip.p {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent2);
  border-color: rgba(167, 139, 250, 0.15);
}

@media (max-width: 600px) {
  .term-body { font-size: 13px; padding: 18px; }
  .term-head, .term-foot { padding: 12px 16px; }
}
