:root {
  --bg: #0d1b16;
  --panel: #11241d;
  --panel-2: #173128;
  --text: #d9f3e6;
  --muted: #8bb7a3;
  --accent: #79f2c0;
  --accent-2: #f6cf6e;
  --border: #28493c;
  --button: #1d3d31;
  --button-hover: #295542;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(121, 242, 192, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(246, 207, 110, 0.14), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family:
    "Iosevka Term",
    "JetBrains Mono",
    "SFMono-Regular",
    monospace;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.shell {
  width: min(980px, 100%);
}

.title {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.frame {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 36, 29, 0.96), rgba(11, 25, 20, 0.96));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border-radius: 18px;
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.traffic span:nth-child(1) {
  background: #ff5f56;
}

.traffic span:nth-child(2) {
  background: #ffbd2e;
}

.traffic span:nth-child(3) {
  background: #27c93f;
}

.frame-label {
  font-size: 13px;
  color: var(--muted);
}

.terminal {
  margin: 0;
  min-height: 420px;
  padding: 22px 24px 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: clamp(14px, 1.8vw, 16px);
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.controls button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--button);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.controls button:hover {
  background: var(--button-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.controls strong {
  display: block;
  font-size: 15px;
  color: var(--accent);
}

.controls span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 0 24px 20px;
  color: var(--accent-2);
  font-size: 14px;
}

.footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 4px 0;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 780px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal {
    min-height: 360px;
    padding: 18px;
  }

  .footer {
    padding-top: 12px;
    gap: 10px;
  }
}
