/* ═══════════════════════════════════════════════════════════════
   zero-lab.ai — TEASER / COMING SOON
   "Looking at our website should be like looking at an impossibly
   thin containment field holding back a power that is near
   impossible to understand."
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */

@font-face {
  font-family: 'Glitch Pixelated';
  src: url('fonts/glitch-regular-webfont.woff2') format('woff2'),
       url('fonts/glitch-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

:root {
  --bg: #0a0a0a;
  --text: #e5e5e5;
  --text-dim: #666;
  --text-ghost: #333;
  --accent: #059669;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Glitch Pixelated', monospace;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html, body {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Scanlines & CRT ──────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 999;
}

/* ── Main Container ───────────────────────────────────────── */

.teaser {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  min-height: 100vh;
}

/* ── Crystal Logo ─────────────────────────────────────────── */

.crystal {
  width: 220px;
  height: auto;
  margin-bottom: 48px;
  animation: crystal-enter 2s ease-out both;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.06));
}

@keyframes crystal-enter {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.06));
  }
}

/* ── Classification Header ────────────────────────────────── */

.classification {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-ghost);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fade-in 1s ease-out 0.8s both;
}

/* ── Title ────────────────────────────────────────────────── */

.title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  animation: fade-in 1s ease-out 1s both;
  position: relative;
}

.title-dot {
  color: var(--accent);
}

/* ── Subtitle ─────────────────────────────────────────────── */

.tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 56px;
  animation: fade-in 1s ease-out 1.2s both;
}

/* ── Status Block ─────────────────────────────────────────── */

.status-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text-dim);
  text-align: left;
  margin-bottom: 56px;
  min-width: 340px;
}

.status-block .status-line {
  opacity: 0;
  transform: translateX(-8px);
}

.status-block .status-line.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.status-label {
  color: var(--text-ghost);
  display: inline-block;
  min-width: 140px;
}

.status-value {
  color: var(--text);
}

.status-live {
  color: var(--accent);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Thesis ───────────────────────────────────────────────── */

.thesis {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0;
}

.thesis.visible {
  opacity: 1;
  transition: opacity 1s ease;
}

.thesis em {
  font-style: normal;
  color: var(--text);
}

/* ── CTA ──────────────────────────────────────────────────── */

.cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border: 1px solid #1a3a2a;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0;
}

.cta.visible {
  opacity: 1;
  transition: opacity 0.8s ease, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.cta:hover {
  border-color: var(--accent);
  background: rgba(5, 150, 105, 0.08);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.15);
  color: var(--accent);
  opacity: 1;
}

/* ── Mini Terminal ────────────────────────────────────────── */

.mini-terminal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  background: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #999;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  cursor: text;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.mini-terminal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 3.5s, transform 0.8s ease 3.5s;
}

.mini-terminal.active {
  border-color: #333;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mini-terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.005) 2px,
    rgba(255, 255, 255, 0.005) 4px
  );
  pointer-events: none;
  border-radius: 6px;
}

.term-chrome {
  display: flex;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }

.term-body {
  position: relative;
  z-index: 1;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  white-space: pre-wrap;
  line-height: 1.6;
}

.term-body::-webkit-scrollbar { width: 3px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

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

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
  opacity: 0.7;
}

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

.term-line {
  display: block;
}

/* ── Footer ───────────────────────────────────────────────── */

.teaser-footer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ghost);
  letter-spacing: 0.05em;
  z-index: 50;
}

.teaser-footer a {
  color: var(--text-ghost);
  text-decoration: none;
  transition: color 0.2s;
}

.teaser-footer a:hover {
  color: var(--text-dim);
}

/* ── Glitch Animation ─────────────────────────────────────── */

@keyframes glitch-shift {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 2px); }
}

/* ── Fade In ──────────────────────────────────────────────── */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .crystal {
    width: 160px;
    margin-bottom: 32px;
  }

  .title {
    font-size: 36px;
  }

  .status-block {
    min-width: unset;
    width: 100%;
    padding: 0 16px;
  }

  .status-label {
    min-width: 110px;
  }

  .mini-terminal {
    display: none;
  }

  .teaser-footer {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 28px;
    letter-spacing: 0.02em;
  }

  .tagline {
    font-size: 12px;
  }
}
