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

html, body {
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a08;
  font-family: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Source Code Pro', 'Consolas', monospace;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  color: #e8dcc4;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

canvas#particles { z-index: 0; }
canvas#tunnel    { z-index: 1; }
canvas#matrix    { z-index: 2; }
canvas#flyers    { z-index: 3; }

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.8s ease-out;
}

.bg-glow--1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 70%);
}

.bg-glow--2 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  bottom: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(245,158,11,0.05), transparent 70%);
}

.bg-glow--3 {
  width: clamp(200px, 35vw, 400px);
  height: clamp(200px, 35vw, 400px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251,191,36,0.03), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.center-section, .logo-float, .logo-img, .info-block {
  pointer-events: auto;
}

.center-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  pointer-events: auto;
  background: rgba(10, 8, 5, 0.5);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.1), inset 0 0 30px rgba(249, 115, 22, 0.03);
  opacity: 0;
  animation: expandIn 1.2s ease-out 2s both;
}

.logo-float {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: expandIn 1.2s ease-out 2s both, fadeUp 1.2s ease-out 3.5s both;
  cursor: pointer;
}

.logo-img {
  width: clamp(80px, min(20vw, 20vh), 240px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.3));
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  animation: expandIn 1.2s ease-out 2.3s both, fadeUp 1.2s ease-out 3.8s both;
  max-width: min(480px, 85vw);
}

.tagline {
  color: #f97316;
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.divider {
  width: clamp(60px, 15vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.6), transparent);
}

.quote-block {
  text-align: center;
  width: 100%;
}

.quote {
  color: rgba(249,220,180,0.85);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(249,115,22,0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.5s ease 4s, transform 1.5s ease 4s;
}

.quote.visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-mark {
  color: rgba(249,115,22,0.6);
}

.date-badge {
  color: rgba(249,220,180,0.35);
  font-size: clamp(0.5rem, 1vw, 0.65rem);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.tech-details {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  animation: expandIn 1.2s ease-out 2.6s both, fadeUp 1.2s ease-out 4s both;
}

.tech-item {
  color: rgba(249,220,180,0.25);
  font-size: clamp(0.45rem, 1vw, 0.55rem);
  letter-spacing: 0.1em;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

.tech-item::before {
  content: '> ';
  color: rgba(249,115,22,0.4);
}

/* === Keyframes === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@keyframes expandIn { 
  from { opacity: 0; transform: scale(0.3); } 
  to { opacity: 1; transform: scale(1); } 
}

@keyframes pulseGlow { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 1; transform: scale(1.15); } }

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

.boot-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20vh 5vw 0 5vw;
  font-family: 'Fira Code', 'Consolas', monospace;
  opacity: 1;
}

.boot-line {
  color: #f97316;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  margin: 3px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.boot-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.boot-line.done {
  color: rgba(249,115,22,0.5);
}

.boot-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #f97316;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

#tunnel, #matrix, #particles, #flyers {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

#tunnel.show, #matrix.show, #particles.show, #flyers.show {
  opacity: 1;
}

@media (max-width: 600px) {
  .bg-glow { filter: blur(80px); }
  .bg-grid { background-size: 30px 30px; }
  .tech-details { display: none; }
}

@media (max-width: 400px) {
  .bg-glow { filter: blur(60px); }
  .bg-grid { background-size: 25px 25px; }
}

@media (max-height: 500px) {
  .logo-img { width: clamp(50px, 12vh, 100px); }
  .center-section { gap: 0.5rem; }
}