:root {
  --bg: #1b3644;
  --bg-deep: #142936;
  --text: #94ff94;
  --highlight: #b5ffc2;
  --muted: rgba(148, 255, 148, 0.68);
  --ink-0: #010203;
  --ink-1: #090d12;
  --paper: #ecffec;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  color: var(--text);
  font-family:
    "Geist Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  background:
    radial-gradient(circle at 18% 4%, rgba(181, 255, 194, 0.18), transparent 28%),
    radial-gradient(circle at 84% 98%, rgba(181, 255, 194, 0.1), transparent 34%),
    linear-gradient(145deg, var(--bg), var(--bg-deep));
}

.terminal-shell {
  width: 100%;
  min-height: 100dvh;
  display: flex;
}

.terminal-frame {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(14rem, 38dvh) minmax(0, 1fr);
  border: 1px solid rgba(181, 255, 194, 0.36);
  background: linear-gradient(180deg, rgba(24, 48, 62, 0.84), rgba(13, 26, 35, 0.93));
  box-shadow:
    inset 0 0 0 1px rgba(181, 255, 194, 0.1),
    0 18px 44px rgba(4, 9, 12, 0.48);
}

.terminal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid rgba(181, 255, 194, 0.28);
  color: var(--highlight);
  background:
    linear-gradient(90deg, rgba(181, 255, 194, 0.08), rgba(181, 255, 194, 0.02)),
    rgba(20, 41, 54, 0.9);
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

.terminal-dots span {
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid rgba(181, 255, 194, 0.72);
  background: rgba(181, 255, 194, 0.2);
}

.terminal-title,
.terminal-meta {
  margin: 0;
  text-transform: uppercase;
}

.terminal-title {
  letter-spacing: 0.13em;
  font-size: 0.74rem;
}

.terminal-meta {
  justify-self: end;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: rgba(181, 255, 194, 0.84);
}

.hero-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(181, 255, 194, 0.15);
  border-bottom: 1px solid rgba(181, 255, 194, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 255, 236, 0.08), transparent 44%),
    linear-gradient(180deg, var(--ink-1), var(--ink-0));
}

.hero-strip::before,
.hero-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-strip::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(181, 255, 194, 0.03) 5px 6px),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(181, 255, 194, 0.02) 6px 7px);
}

.hero-strip::after {
  inset: 0.5rem;
  border: 1px solid rgba(236, 255, 236, 0.2);
  box-shadow: inset 0 0 0 1px rgba(181, 255, 194, 0.05);
}

.hero-banner {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  overflow: hidden;
  white-space: pre;
  text-align: center;
  font-size: clamp(0.38rem, 0.8vw, 0.73rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-shadow:
    0 0 0 transparent,
    0 0 14px rgba(181, 255, 194, 0.08);
}

.terminal-console {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    linear-gradient(180deg, rgba(7, 13, 17, 0.48), rgba(7, 13, 17, 0.06)),
    radial-gradient(circle at 50% 0%, rgba(181, 255, 194, 0.07), transparent 40%);
}

.terminal-output {
  margin: 0;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.15rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: clamp(0.74rem, 1.12vw, 0.95rem);
  line-height: 1.45;
  color: var(--text);
}

.terminal-prompt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(181, 255, 194, 0.28);
  background:
    linear-gradient(90deg, rgba(181, 255, 194, 0.08), rgba(181, 255, 194, 0.02)),
    rgba(9, 18, 24, 0.6);
}

.terminal-prompt::before {
  content: ">-< >-< >-< >-< >-< >-<";
  position: absolute;
  top: -0.72rem;
  left: 1rem;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: rgba(181, 255, 194, 0.48);
  background: rgba(11, 22, 29, 0.9);
  padding: 0 0.35rem;
}

.prompt-prefix {
  color: var(--highlight);
  font-size: clamp(0.58rem, 1vw, 0.88rem);
  white-space: nowrap;
}

#prompt-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  caret-color: var(--highlight);
  font: inherit;
  line-height: 1.2;
}

#prompt-input:focus {
  outline: none;
}

#prompt-input::placeholder {
  color: var(--muted);
}

@media (max-width: 860px) {
  .terminal-frame {
    grid-template-rows: auto minmax(9.5rem, 24dvh) minmax(0, 1fr);
  }

  .hero-banner {
    font-size: clamp(0.43rem, 1.4vw, 0.6rem);
    line-height: 1.03;
  }
}

@media (max-width: 640px) {
  .terminal-header {
    padding: 0.75rem 0.8rem;
  }

  .terminal-title {
    font-size: 0.66rem;
  }

  .terminal-meta {
    display: none;
  }

  .terminal-output {
    padding: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .terminal-prompt {
    padding: 0.78rem 0.85rem 0.9rem;
    gap: 0.5rem;
  }

  .terminal-prompt::before {
    display: none;
  }

  .prompt-prefix {
    font-size: 0.56rem;
  }
}
