:root {
  --bg: #000;
  --terminal-font: "Datatype", "Courier New", Courier, monospace;
  --white: #fff;
  --term-yellow: #d8cb7a;
  --term-blue: #87b9d9;
  --term-green: #7acb8f;
  --term-muted: rgba(185, 191, 198, 0.82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.hero-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-artboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100vh * 1.5673469388));
  height: max(100vh, calc(100vw / 1.5673469388));
  transform: translate(-50%, -50%);
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.monitor-overlay {
  position: absolute;
  top: 13%;
  left: 50%;
  margin-left: -12%;
  width: 27%;
  height: 34.8%;
  pointer-events: none;
  container-type: size;
}

.crt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20% / 20%;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
}

.crt-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 28px);
  text-align: center;
  transform: scaleY(0.98);
}

.logo {
  width: min(90%, 450px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}

.prompt {
  margin: 30px 0 0;
  font-family: var(--terminal-font);
  font-size: clamp(10px, 6.3cqw, 24px);
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 3px rgba(255,255,255,.9), 0 0 12px rgba(255,255,255,.35);
  animation: blinkPrompt 1.2s steps(2, start) infinite;
}

.crt-glow,
.crt-scanlines,
.crt-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-glow {
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 18%, rgba(255,255,255,0) 42%, rgba(0,0,0,.15) 100%);
  mix-blend-mode: screen;
}

.crt-scanlines {
  z-index: 4;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, rgba(0,0,0,.15) 2px, rgba(0,0,0,.15) 4px);
  opacity: .6;
}

.crt-flicker {
  z-index: 6;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  animation: crtSweep 5s linear infinite, crtNoise .16s steps(2, end) infinite;
}

.next-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 60px) 20px;
  background:
    radial-gradient(circle at top, rgba(126, 177, 255, 0.08), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.04), transparent 42%),
    #020304;
  overflow: hidden;
}

.code-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.code-rain-back { opacity: 1; }
.code-rain-front {
  opacity: .8;
  mix-blend-mode: screen;
}

.code-line {
  position: absolute;
  top: -120%;
  width: 120px;
  font-family: var(--terminal-font);
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.45;
  white-space: pre;
  animation-name: codeFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.code-rain-back .code-line {
  color: rgba(205, 226, 255, 0.28);
  text-shadow: 0 0 12px rgba(140, 180, 255, 0.12);
}

.code-rain-front .code-line {
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.console-wrap {
  position: relative;
  z-index: 3;
  width: min(100%, 980px);
}

.console-halo {
  position: absolute;
  inset: 6% 8%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(190,225,255,.08), transparent 68%);
  filter: blur(26px);
}

.console-window {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(180,208,255,.18);
  background: linear-gradient(180deg, rgba(7,10,14,.96), rgba(0,0,0,.98));
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 30px 80px rgba(0,0,0,.65), 0 0 80px rgba(160,205,255,.08);
  overflow: hidden;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  font-family: var(--terminal-font);
  font-size: 13px;
  color: rgba(220,235,255,.85);
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
}

.console-title {
  letter-spacing: .08em;
  text-transform: lowercase;
}

.console-spacer { flex: 1; }
.console-status { color: rgba(255,255,255,.6); }

.console-body {
  position: relative;
  min-height: min(62vh, 560px);
  padding: clamp(24px, 4vw, 44px);
  font-family: var(--terminal-font);
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.03), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
}

.console-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 2px, transparent 4px);
  opacity: .18;
  pointer-events: none;
}

.console-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
}

.typed-output {
  position: relative;
  min-height: 1em;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: clamp(18px, 2.1vw, 34px);
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.18), 0 0 20px rgba(255,255,255,.06);
}

.typed-line {
  display: block;
}

.typed-line + .typed-line {
  margin-top: 0.15em;
}

.typed-line.line-yellow {
  color: var(--term-yellow);
  text-shadow: 0 0 7px rgba(216, 203, 122, .22);
}

.typed-line.line-blue {
  color: var(--term-blue);
  text-shadow: 0 0 7px rgba(135, 185, 217, .22);
}

.typed-line.line-green {
  color: var(--term-green);
  text-shadow: 0 0 7px rgba(122, 203, 143, .22);
}

.typed-line.line-mail,
.typed-line.line-mail a {
  color: #fff;
}

.typed-line.line-empty {
  min-height: 1em;
}

.typed-output a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.45);
}

.typed-output a:hover {
  border-bottom-color: rgba(255,255,255,.9);
}

.cursor {
  display: inline-block;
  margin-left: .08em;
  animation: blinkCursor .9s steps(2, start) infinite;
}

.console-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 18px;
}

.console-separator {
  margin: 0 0 12px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.14);
}

.console-meta {
  font-family: var(--terminal-font);
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.4;
  color: var(--term-muted);
  letter-spacing: .02em;
}

@keyframes blinkPrompt {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .35; }
}

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

@keyframes crtSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes crtNoise {
  0% { opacity: .45; }
  50% { opacity: .62; }
  100% { opacity: .4; }
}

@keyframes codeFall {
  from { transform: translateY(0); }
  to { transform: translateY(240vh); }
}

@media (max-width: 900px) {
  .prompt {
    font-size: clamp(10px, 1.8vw, 18px);
  }

  .console-body {
    min-height: 50vh;
  }
}

@media (max-width: 640px) {
  .crt-content {
    padding: 10px;
  }

  .prompt {
    letter-spacing: .05em;
  }

  .console-header {
    font-size: 11px;
    padding: 12px 14px;
  }

  .typed-output {
    line-height: 1.65;
    font-size: clamp(16px, 4.3vw, 24px);
  }

  .console-footer {
    padding-top: 14px;
  }
}
