:root {
  --bg: #070b10;
  --panel: rgba(13, 18, 26, 0.78);
  --panel-border: rgba(120, 210, 255, 0.12);
  --text: #e5eef7;
  --muted: #8ea0b5;
  --accent: #67d8ff;
  --accent-soft: rgba(103, 216, 255, 0.13);
  --line: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(103, 216, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(103, 216, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #05080d 0%, #070b10 100%);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* Subtle grid + noise feel without image assets */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.1));
  opacity: 0.26;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.15;
  mix-blend-mode: screen;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.terminal {
  width: min(960px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    transparent 24%
  );
  pointer-events: none;
}

.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.dot:nth-child(1) { background: rgba(255, 95, 86, 0.78); }
.dot:nth-child(2) { background: rgba(255, 189, 46, 0.78); }
.dot:nth-child(3) { background: rgba(39, 201, 63, 0.78); }

.chrome-title {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(103, 216, 255, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.content {
  padding: 26px 20px 22px;
}

.hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.brand {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 72ch;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.commands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.cmd-chip {
  appearance: none;
  border: 1px solid rgba(103, 216, 255, 0.18);
  background: rgba(103, 216, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cmd-chip:hover,
.cmd-chip:focus-visible {
  transform: translateY(-1px);
  background: rgba(103, 216, 255, 0.1);
  border-color: rgba(103, 216, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(103, 216, 255, 0.08);
  outline: none;
}

.terminal-log {
  background: rgba(8, 12, 17, 0.52);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  min-height: 350px;
  max-height: 58vh;
  overflow: auto;
  scroll-behavior: smooth;
}

.entry {
  margin-bottom: 16px;
  animation: fadeIn 240ms ease-out;
}

.entry:last-child {
  margin-bottom: 0;
}

.prompt-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 6px;
  word-break: break-word;
}

.prompt {
  color: var(--accent);
  flex: 0 0 auto;
}

.command {
  color: var(--text);
}

.output {
  color: var(--text);
  line-height: 1.7;
  padding-left: 0;
}

.output .muted {
  color: var(--muted);
}

.output .section-title {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.output ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.output li {
  margin: 7px 0;
  color: var(--text);
}

.output li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.output a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 216, 255, 0.28);
  transition: opacity 160ms ease, border-color 160ms ease;
}

.output a:hover,
.output a:focus-visible {
  opacity: 0.9;
  border-color: rgba(103, 216, 255, 0.72);
  outline: none;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cursor-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  min-width: 0;
  caret-color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 12px rgba(103, 216, 255, 0.45);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 4px;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.kbd {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.14);
  color: var(--text);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.78rem;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

@media (max-width: 720px) {
  .content {
    padding: 20px 14px 18px;
  }

  .chrome {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-pill {
    align-self: flex-start;
  }

  .terminal-log {
    min-height: 320px;
    max-height: 62vh;
    padding: 14px;
  }

  .input-row {
    padding: 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
