@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  background: #e7edf5; 
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif; 
  color: #131c28;
  overflow-x: hidden;
}

#scroller { height: 900vh; }
#root { position: fixed; inset: 0; z-index: 0; }
canvas { display: block; }

/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 20px 36px;
}
.nav-links {
  display: flex; gap: 26px; font-size: 11px; font-weight: 600; 
  letter-spacing: 0.14em; color: #2a3644;
}
.nav-links span,
.nav-links a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.nav-links span:hover,
.nav-links a:hover {
  opacity: 0.7;
}
.logo {
  position: absolute; left: 50%; transform: translateX(-50%); 
  font-size: 19px; font-weight: 700; letter-spacing: 0.34em; color: #131c28;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-contact {
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; 
  padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(19,28,40,0.18); 
  background: rgba(255,255,255,0.55); color: #131c28; cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-start {
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; 
  padding: 11px 22px; border-radius: 999px; border: none; 
  background: #0d1420; color: #fff; cursor: pointer; text-decoration: none;
}

/* HERO INTRO */
#intro {
  position: fixed; inset: 0; z-index: 6; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  pointer-events: none; text-align: center;
}
.subtitle {
  font-size: 15px; font-weight: 600; letter-spacing: 0.22em; color: #5b6a7c; margin-bottom: 18px;
}
h1 {
  margin: 0; font-size: 64px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; color: #131c28;
}
.hero-desc {
  margin: 22px auto 0; max-width: 400px; font-size: 16px; line-height: 1.55; color: #4b5866;
}
.scroll-hint {
  margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; 
  animation: hintBob 1.8s ease-in-out infinite;
}
.scroll-hint div:first-child { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: #5b6a7c; }
.scroll-hint div:last-child { width: 1px; height: 30px; background: #5b6a7c; }

@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* HUD STEPS */
#hud {
  position: fixed; left: 36px; bottom: 40px; z-index: 8; width: 400px; max-width: calc(100vw - 72px);
}
.step {
  display: flex; align-items: flex-start; gap: 16px; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0; max-height: 0px; margin: 0; transform: translateY(16px); overflow: hidden; pointer-events: none;
}
.step.past {
  opacity: 0.85; max-height: 32px; margin: 4px 0; transform: translateY(0);
}
.step.act {
  opacity: 1; max-height: 220px; margin: 14px 0 0; transform: translateY(0);
}
.step .badge {
  width: 36px; flex: 0 0 36px; text-align: center; font-size: 11px; font-weight: 600; color: #66727f; 
  padding-top: 3px; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.step.act .badge {
  height: 36px; border-radius: 9px; background: #fff; border: 1px solid rgba(19,28,40,0.1);
  boxShadow: 0 4px 14px rgba(19,28,40,0.10); display: flex; alignItems: center; justifyContent: center;
  fontSize: 12px; fontWeight: 700; color: #131c28; padding-top: 0;
}

.step .content { flex: 1; min-width: 0; }
.step .title {
  font-size: 12.5px; font-weight: 600; color: #55606e; padding: 3px 0 0; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.step.act .title {
  font-size: 23px; font-weight: 600; color: #131c28; letter-spacing: -0.01em; padding: 6px 0 0;
}
.step .body {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden;
  max-height: 0px; opacity: 0; margin-top: 0; padding-left: 14px;
  border-left: 2px solid #9aa8b8; font-size: 14px; line-height: 1.55; color: #3d4a59; max-width: 340px;
}
.step.act .body {
  max-height: 160px; opacity: 1; margin-top: 12px;
}

/* RAIL */
#rail-track {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 8; 
  width: 3px; height: 170px; background: rgba(19,28,40,0.12); border-radius: 2px;
}
#rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%; 
  background: #FF8A3D; border-radius: 2px; box-shadow: 0 0 10px #FF8A3D;
}

/* FINAL SCREEN */
#final {
  position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; 
  justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.8s;
  background: rgba(231, 237, 245, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#final.show { opacity: 1; pointer-events: auto; }
#final h2 { font-size: 48px; margin-bottom: 24px; font-weight: 700; letter-spacing: -0.02em; }
#final .btn-enter {
  padding: 16px 36px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em;
  background: #0d1420; color: #fff; text-decoration: none; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(13,20,32,0.3); transition: transform 0.3s, box-shadow 0.3s;
}
#final .btn-enter:hover {
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13,20,32,0.4);
}
