/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-secondary: #7a7a7a;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.15);
  --accent-glow: rgba(200, 255, 0, 0.4);
  --cyan: #00f0ff;
  --font: 'Space Grotesk', sans-serif;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   SCROLLSMOOTHER WRAPPERS
   ============================================ */
#smooth-wrapper {
  overflow: hidden;
  position: fixed;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

#smooth-content {
  overflow: visible;
  width: 100%;
}

/* ============================================
   SECTIONS — BASE
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 8vw;
}

.section__inner {
  max-width: 1100px;
  width: 100%;
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 300;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.reveal-text {
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.reveal-text--accent {
  color: var(--accent);
  font-weight: 600;
}

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

h1 {
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

blockquote {
  border: none;
  padding: 0;
  font-style: normal;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  opacity: 0;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  opacity: 0;
  letter-spacing: 0.05em;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: -20vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
}

.scroll-indicator__line {
  width: 1px;
  height: 50px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================
   SECTION 2: KEYBOARD TRUTH
   ============================================ */
.section--keyboard {
  text-align: center;
}

.spacer-line {
  height: 4rem;
}

/* Cursor Demo (IDE mockup) */
.cursor-demo {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  text-align: left;
}

.cursor-demo__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cursor-demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cursor-demo__dot--red { background: #ff5f57; }
.cursor-demo__dot--yellow { background: #febc2e; }
.cursor-demo__dot--green { background: #28c840; }

.cursor-demo__filename {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.cursor-demo__body {
  padding: 1.5rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  line-height: 2;
}

.typed-line {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--accent);
  animation:
    typing 1.5s steps(var(--chars, 30)) var(--delay, 0s) forwards,
    blink 0.6s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.code-keyword { color: #c792ea; }
.code-fn { color: #82aaff; }
.code-string { color: var(--accent); }

/* ============================================
   SECTION 3: THE NEW REALITY
   ============================================ */
.section--reality {
  text-align: center;
  overflow: hidden;
}

.code-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.code-rain span {
  position: absolute;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.3;
  animation: fall linear infinite;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  left: var(--x);
  top: -20px;
}

@keyframes fall {
  to { transform: translateY(110vh); }
}

/* ============================================
   SECTION 4: THE 5-LAYER CAKE
   ============================================ */
.section--cake {
  text-align: center;
}

.cake__attribution {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
}

.cake__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.cake__layer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--accent-dim);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(30px);
  transition: border-color 0.3s;
  text-align: left;
}

.cake__layer:hover {
  border-left-color: var(--accent);
}

.cake__layer--5 {
  border-left-color: var(--accent);
  background: rgba(200, 255, 0, 0.04);
  position: relative;
}

.cake__layer-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2.5rem;
  opacity: 0.4;
}

.cake__layer--5 .cake__layer-number {
  opacity: 1;
}

.cake__layer-content h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.cake__layer-content p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-secondary);
  font-weight: 300;
}

.cake__layer-content strong {
  color: var(--accent);
  font-weight: 700;
}

.cake__layer-arrow {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translate(100%, -50%);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  padding-left: 1rem;
}

.cake__layer-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 2px;
  background: var(--accent);
}

/* ============================================
   SECTION 5: THE WRAPPER TRUTH
   ============================================ */
.section--wrapper {
  text-align: center;
}

.wrapper__big-reveal {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
  margin: 2rem 0 3rem;
  opacity: 0;
  transform: scale(0.5);
}

.wrapper__diagram {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 3rem auto;
  opacity: 0;
}

.wrapper__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200, 255, 0, 0.1);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.wrapper__satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle)));
}

.wrapper__insight {
  margin-top: 3rem;
}

.wrapper__personal {
  font-size: clamp(1.6rem, 4vw, 3.2rem) !important;
}

/* ============================================
   SECTION 6: HORIZONTAL SCROLL
   ============================================ */
.section--bottleneck {
  overflow: hidden;
  padding: 0;
}

.horizontal-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.h-panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vw;
  text-align: center;
}

.h-panel--title h2 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1;
}

.h-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.h-card__label {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--text-secondary);
  font-weight: 300;
}

.h-card__value {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
}

.h-panel--flip h2:first-child {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
  text-transform: none;
  margin-bottom: 1rem;
}

.h-panel--flip .accent-text {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.h-panel--you p {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.h-panel--you .accent-text {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: none;
}

/* ============================================
   SECTION 7: SUPERPOWER (CARDS)
   ============================================ */
.section--superpower {
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.ai-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(200, 255, 0, 0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: border-color 0.3s, background 0.3s;
}

.ai-card:hover {
  border-color: var(--accent);
  background: rgba(200, 255, 0, 0.03);
}

.ai-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.ai-card p {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.4;
  font-weight: 400;
}

/* ============================================
   SECTION 8: INFINITE TUTOR
   ============================================ */
.section--tutor {
  text-align: center;
}

.tutor-list {
  list-style: none;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutor-list li {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text);
  opacity: 0;
  transform: translateX(-30px);
}

.tutor__bridge {
  margin-top: 3rem;
}

.three-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.word-reveal {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: scale(0);
}

/* ============================================
   SECTION 9: MINDSET
   ============================================ */
.section--mindset {
  text-align: center;
  overflow: hidden;
}

.section--mindset blockquote {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.expanding-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -1;
}

.expanding-circles .circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, 0.06);
  opacity: 0;
  transform: scale(0);
}

/* ============================================
   SECTION 9.5: JUST START
   ============================================ */
.section--juststart {
  text-align: center;
}

.juststart__big {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 2rem 0;
  opacity: 0;
}

.juststart__model {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 255, 0, 0.1);
}

/* ============================================
   SECTION 10: THE FULL MAP
   ============================================ */
.section--map {
  text-align: center;
}

.section--map .reveal-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.map__final {
  font-size: clamp(1.8rem, 4.5vw, 3.5rem) !important;
  font-weight: 700 !important;
}

/* ============================================
   SECTION 11: THE PROOF
   ============================================ */
.section--proof {
  text-align: center;
}

.proof__glow {
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 40px rgba(200, 255, 0, 0.2),
    0 0 80px rgba(200, 255, 0, 0.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow:
      0 0 20px var(--accent-glow),
      0 0 40px rgba(200, 255, 0, 0.2);
  }
  50% {
    text-shadow:
      0 0 30px rgba(200, 255, 0, 0.6),
      0 0 60px rgba(200, 255, 0, 0.3),
      0 0 100px rgba(200, 255, 0, 0.15);
  }
}

/* ============================================
   SECTION 12: THE INVITATION
   ============================================ */
.section--invitation {
  text-align: center;
  min-height: 100vh;
}

.invitation__name {
  opacity: 0;
  transform: scale(0.5);
}

.invitation__cta {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 300;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 8vh 6vw;
  }

  .cake__layer-arrow {
    display: none;
  }

  .wrapper__diagram {
    width: 250px;
    height: 250px;
  }

  .wrapper__center {
    width: 90px;
    height: 90px;
  }

  .wrapper__satellite {
    width: 50px;
    height: 50px;
    font-size: 0.55rem;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
