html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

#scene {
  position: relative;
  width: 100%;
  height: 100%;
}

#baseline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: min(90vw, 1200px);
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.letter {
  position: absolute;
  color: #fff;
  font-family: Impact, Haettenschweiler, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 14vw;
  line-height: 1;
  text-shadow:
    2px 2px 0 #bcbcbc,
    4px 4px 0 #8a8a8a,
    6px 6px 8px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 50%;
  user-select: none;
  pointer-events: auto;
  cursor: default;
  transition: transform 0.1s ease;
}

.letter:hover {
  transform: scale(1.05);
  text-shadow:
    2px 2px 0 #bcbcbc,
    4px 4px 0 #8a8a8a,
    6px 6px 8px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 255, 255, 0.3);
}

.letter:active {
  transform: scale(0.95);
}


.letter:hover {
  animation: jiggle 0.18s ease;
}

@keyframes jiggle {
  0%, 100% { 
    transform: rotate(0deg); 
  }
  25% { 
    transform: rotate(2.2deg); 
  }
  75% { 
    transform: rotate(-2.2deg); 
  }
}

/* Screen shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px); }
  20% { transform: translateX(2px); }
  30% { transform: translateX(-1px); }
  40% { transform: translateX(1px); }
  50% { transform: translateX(-1px); }
  60% { transform: translateX(1px); }
  70% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  90% { transform: translateX(-1px); }
}

.shake {
  animation: shake 0.12s ease-in-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .letter {
    transition: none;
    animation: none;
  }
  
  .shake {
    animation: none;
  }
  
  .letter:hover {
    animation: none;
  }
}

/* Interactive cursor styles */
.letter[data-dragging="true"] {
  cursor: grabbing !important;
  z-index: 100 !important;
  transform: scale(1.1) !important;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Particle effects */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}


/* Main page styling */
#main-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 60px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Main page logo */
#main-logo {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.logo-line {
  font-family: Impact, Haettenschweiler, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 4rem;
  color: #fff;
  text-shadow:
    2px 2px 0 #bcbcbc,
    4px 4px 0 #8a8a8a,
    6px 6px 8px rgba(0, 0, 0, 0.6);
  line-height: 0.9;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Logo particles */
#logo-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.logo-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

.logo-particle:nth-child(1) {
  animation: orbit1 6s linear infinite;
}

.logo-particle:nth-child(2) {
  animation: orbit2 8s linear infinite;
}

.logo-particle:nth-child(3) {
  animation: orbit3 10s linear infinite;
}

.logo-particle:nth-child(4) {
  animation: orbit4 7s linear infinite;
}

.logo-particle:nth-child(5) {
  animation: orbit5 9s linear infinite;
}

.logo-particle:nth-child(6) {
  animation: orbit6 5s linear infinite;
}

@keyframes orbit1 {
  0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes orbit2 {
  0% { transform: rotate(60deg) translateX(80px) rotate(-60deg); }
  100% { transform: rotate(420deg) translateX(80px) rotate(-420deg); }
}

@keyframes orbit3 {
  0% { transform: rotate(120deg) translateX(100px) rotate(-120deg); }
  100% { transform: rotate(480deg) translateX(100px) rotate(-480deg); }
}

@keyframes orbit4 {
  0% { transform: rotate(180deg) translateX(70px) rotate(-180deg); }
  100% { transform: rotate(540deg) translateX(70px) rotate(-540deg); }
}

@keyframes orbit5 {
  0% { transform: rotate(240deg) translateX(90px) rotate(-240deg); }
  100% { transform: rotate(600deg) translateX(90px) rotate(-600deg); }
}

@keyframes orbit6 {
  0% { transform: rotate(300deg) translateX(50px) rotate(-300deg); }
  100% { transform: rotate(660deg) translateX(50px) rotate(-660deg); }
}

#content {
  max-width: 900px;
  width: 100%;
  color: #fff;
  line-height: 1.8;
  font-size: 1.2rem;
  font-weight: 700;
}

.text-block {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.text-block:nth-child(1) { animation-delay: 0.2s; }
.text-block:nth-child(2) { animation-delay: 0.4s; }
.text-block:nth-child(3) { animation-delay: 0.6s; }
.text-block:nth-child(4) { animation-delay: 0.8s; }
.text-block:nth-child(5) { animation-delay: 1.0s; }
.text-block:nth-child(6) { animation-delay: 1.2s; }
.text-block:nth-child(7) { animation-delay: 1.4s; }
.text-block:nth-child(8) { animation-delay: 1.6s; }
.text-block:nth-child(9) { animation-delay: 1.8s; }
.text-block:nth-child(10) { animation-delay: 2.0s; }
.text-block:nth-child(11) { animation-delay: 2.2s; }
.text-block:nth-child(12) { animation-delay: 2.4s; }
.text-block:nth-child(13) { animation-delay: 2.6s; }
.text-block:nth-child(14) { animation-delay: 2.8s; }
.text-block:nth-child(15) { animation-delay: 3.0s; }
.text-block:nth-child(16) { animation-delay: 3.2s; }
.text-block:nth-child(17) { animation-delay: 3.4s; }
.text-block:nth-child(18) { animation-delay: 3.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-block p {
  margin: 0.8rem 0;
  color: #fff;
  font-size: inherit;
  line-height: inherit;
}

.text-block p:first-child {
  margin-top: 0;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* Special styling for important words */
.important-word {
  font-family: Impact, Haettenschweiler, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.1em;
  text-shadow:
    1px 1px 0 #333,
    2px 2px 0 #222,
    3px 3px 6px rgba(0, 0, 0, 0.8);
  color: #fff;
  display: inline-block;
  margin: 0 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Special styling for code-like comments */
.text-block p:first-child:contains("//") {
  color: #888;
  font-style: italic;
}

/* Flywheel diagram styling */
.flywheel-section {
  text-align: center;
  margin: 4rem 0;
}

.flywheel-section h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 700;
}

.flywheel-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flywheel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  min-width: 120px;
  transition: all 0.3s ease;
}

.flywheel-step:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.step-number {
  font-family: Impact, Haettenschweiler, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.arrow {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
  margin: 0 0.5rem;
}

.flywheel-description {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1rem;
  font-style: italic;
}

/* Social section styling */
.social-section {
  text-align: center;
  margin: 3rem 0;
}

.social-link {
  display: inline-block;
}

.social-link a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-link a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.social-text {
  font-family: Impact, Haettenschweiler, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  text-shadow:
    2px 2px 0 #bcbcbc,
    4px 4px 0 #8a8a8a,
    6px 6px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

/* Minimal glitch effect */
.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: #ff0000;
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: #00ff00;
  z-index: -2;
}

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

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

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


/* Mobile responsiveness */
@media (max-width: 768px) {
  .letter {
    font-size: 12vw;
  }
  
  #content {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  #main-page {
    padding: 30px 20px;
  }
  
  .text-block {
    margin-bottom: 2rem;
  }
  
  .flywheel-diagram {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .arrow {
    transform: rotate(90deg);
    font-size: 1.2rem;
  }
  
  .flywheel-step {
    min-width: 100px;
    padding: 0.8rem;
  }
  
  .logo-line {
    font-size: 3rem;
  }
  
  .social-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  #content {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  #main-page {
    padding: 20px 15px;
  }
  
  .text-block {
    margin-bottom: 1.5rem;
  }
  
  .logo-line {
    font-size: 2.5rem;
  }
  
  .social-text {
    font-size: 1rem;
  }
  
  .social-link a {
    padding: 0.8rem 1.5rem;
  }
}
