:root {
  --bg: #050810;
  --bg-2: #070c16;
  --blue: #5ecbff;
  --blue-soft: #8fdcff;
  --blue-dim: rgba(94, 203, 255, 0.35);
  --text: #e7f3fb;
  --text-dim: #8aa0b4;
  --border: rgba(94, 203, 255, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

#tunnel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(2, 4, 8, 0.65) 78%, rgba(2, 4, 8, 0.95) 100%);
}

.stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 32px 24px;
  max-width: 720px;
  width: 100%;
}

.glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--blue-dim), transparent 65%);
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.05);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue-soft);
  backdrop-filter: blur(6px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px 2px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.wordmark {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(94, 203, 255, 0.25);
}

.wordmark .bracket {
  color: var(--text-dim);
  font-weight: 400;
}

.wordmark .accent {
  color: var(--blue);
  text-shadow: 0 0 24px var(--blue-dim), 0 0 60px rgba(94, 203, 255, 0.35);
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--blue-soft);
  letter-spacing: 0.01em;
}

.lede {
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.terminal {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(94, 203, 255, 0.06), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.7;
}
.tdot.r { background: #ff6a6a; }
.tdot.y { background: #ffd166; }
.tdot.g { background: #6affa0; }

.terminal-title {
  margin-left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 14px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-align: left;
  color: var(--blue-soft);
  min-height: 20px;
}

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

.cursor {
  color: var(--blue);
  animation: blink 1s step-end infinite;
}

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

.notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify input::placeholder {
  color: var(--text-dim);
}

.notify input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(94, 203, 255, 0.12);
}

.notify button {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #04101c;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 24px rgba(94, 203, 255, 0.25);
}

.notify button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(94, 203, 255, 0.45);
}

.notify button:active {
  transform: translateY(0);
}

.notify-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  margin-top: -4px;
  min-height: 1em;
}

.foot {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.foot .sep {
  margin: 0 8px;
  color: var(--border);
}

@media (max-height: 700px) {
  .stage { gap: 12px; }
  .lede { display: none; }
}

@media (max-width: 480px) {
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
}
