:root {
  --blue: #29B6F6;
  --blue-dark: #0798df;
  --black: #05070a;
  --terminal: #05070c;
  --terminal-top: #151923;
  --muted: rgba(41, 182, 246, 0.16);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  color: var(--black);
  background:
    radial-gradient(circle at 50% 58%, rgba(41, 182, 246, 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 22px;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(1050px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: min(720px, 92vw);
  height: auto;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 24px rgba(41, 182, 246, 0.14));
}

.terminal {
  width: min(920px, 96vw);
  border-radius: 18px;
  overflow: hidden;
  background: var(--terminal);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.22),
    0 0 46px rgba(41, 182, 246, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-top {
  height: 54px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  background: linear-gradient(180deg, #1e2330, var(--terminal-top));
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  display: inline-block;
}

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.terminal-title {
  text-align: center;
  letter-spacing: -0.03em;
}

.terminal-icon {
  text-align: right;
  font-weight: 700;
  font-size: 24px;
}

.terminal-body {
  min-height: 330px;
  padding: 52px 52px 42px;
  background:
    radial-gradient(circle at 20% 30%, rgba(41, 182, 246, 0.05), transparent 25%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--terminal);
  background-size: auto, 14px 14px, 14px 14px, auto;
}

.line {
  display: grid;
  grid-template-columns: 58px 30px 1fr;
  align-items: baseline;
  min-height: 62px;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 600;
  color: #f7f7f7;
  letter-spacing: -0.04em;
}

.line-no {
  color: rgba(255, 255, 255, 0.16);
  font-size: 22px;
  font-weight: 500;
}

.prompt {
  color: var(--blue);
  font-weight: 800;
}

.cursor {
  display: inline-block;
  width: 18px;
  height: 0.65em;
  margin-left: 7px;
  background: var(--blue);
  transform: translateY(5px);
  animation: blink 0.82s steps(2, start) infinite;
}

.ghost {
  opacity: 0.7;
  min-height: 48px;
}

.decor {
  width: min(920px, 92vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
  color: var(--blue);
}

.decor span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 182, 246, 0.55), transparent);
}

.decor strong {
  font-size: 25px;
}

.background-code {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.code-left {
  left: 6vw;
  top: 12vh;
}

.code-right {
  right: 6vw;
  top: 15vh;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 760px) {
  .page {
    padding: 34px 14px;
    align-items: flex-start;
  }

  .logo {
    width: 96vw;
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .terminal-top {
    grid-template-columns: 80px 1fr 60px;
    padding: 0 14px;
    font-size: 13px;
  }

  .terminal-body {
    min-height: 260px;
    padding: 34px 20px 32px;
  }

  .line {
    grid-template-columns: 38px 24px 1fr;
    min-height: 54px;
    letter-spacing: -0.06em;
  }

  .line-no {
    font-size: 15px;
  }

  .background-code {
    display: none;
  }
}
