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

:root {
  --bg: var(--kv-bg);
  --bg-deep: var(--kv-bg-deep);
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.4);
  --text: var(--kv-text);
  --textsub: var(--kv-text-sub);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Boot sequence ── */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-line { opacity: 0; margin: 4px 0; }
.boot-line.show { opacity: 1; }
.boot-cursor::after { content: '\2588'; animation: blink 0.6s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Main content ── */
#content {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}
#content.show { opacity: 1; }

/* Ambient glow */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.3;
}
.glow-orb.g1 { width: 400px; height: 400px; background: var(--green); top: -100px; left: -100px; }
.glow-orb.g2 { width: 300px; height: 300px; background: #6366F1; bottom: -80px; right: -80px; opacity: 0.2; }

/* Logo */
.logo-wrap {
  position: relative;
  margin-bottom: 48px;
}
.logo-img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  filter: drop-shadow(0 0 40px var(--green-glow));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 1.5px solid var(--green);
  opacity: 0.3;
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.1; transform: scale(1.06); }
}

/* Built by */
.built-by {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--mono);
}

/* Name */
.creator-name {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--green);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

/* Subtitle */
.subtitle {
  font-size: 18px;
  color: var(--textsub);
  max-width: 520px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--green);
  color: var(--kv-btn-text);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px var(--green-glow);
  margin-bottom: 48px;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--green-glow);
}
.cta-btn svg { width: 18px; height: 18px; }

/* Tech pills */
.tech-section {
  text-align: center;
  margin-bottom: 48px;
}
.tech-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--textsub);
  margin-bottom: 16px;
  font-family: var(--mono);
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pill {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--green);
  font-family: var(--mono);
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Back link */
.back-link {
  color: var(--textsub);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  font-family: var(--mono);
}
.back-link:hover { color: var(--green); }

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0;
  transition: opacity 0.5s;
}
.scanlines.active { opacity: 1; }
