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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: #080A06;
  color: #D4E8A8;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
}

.terrain-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.terrain-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawTerrain 3s ease-in-out forwards;
}

@keyframes drawTerrain {
  to {
    stroke-dashoffset: 0;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.domain-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #E8F0E0;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2s forwards;
}

.tagline {
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  color: #7A9B68;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2.4s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Content Sections */
.content-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.content-section:nth-child(2) {
  animation-delay: 0.2s;
}

.content-section:nth-child(3) {
  animation-delay: 0.4s;
}

.content-section:nth-child(4) {
  animation-delay: 0.6s;
}

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

.content-block {
  flex: 1;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #E8F0E0;
  margin-bottom: 24px;
  text-transform: lowercase;
}

.body-text {
  color: #D4E8A8;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.code-note {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #7A9B68;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #4A6B3A;
}

/* Tree SVG Illustrations */
.tree-svg {
  width: 120px;
  height: 150px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.content-section:nth-child(2) .tree-svg {
  animation-delay: 0.4s;
}

.content-section:nth-child(3) .tree-svg {
  animation-delay: 0.6s;
}

.content-section:nth-child(4) .tree-svg {
  animation-delay: 0.8s;
}

.lsystem-tree line,
.lsystem-tree polyline {
  stroke: #7B68EE;
  stroke-width: 1.5px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: drawLine 0.8s ease-out forwards;
}

.lsystem-tree line:nth-child(1) { animation-delay: 0s; }
.lsystem-tree line:nth-child(2) { animation-delay: 0.2s; }
.lsystem-tree line:nth-child(3) { animation-delay: 0.4s; }
.lsystem-tree line:nth-child(4) { animation-delay: 0.6s; }
.lsystem-tree line:nth-child(5) { animation-delay: 0.8s; }
.lsystem-tree polyline { animation-delay: 1s; }

@keyframes drawLine {
  from {
    opacity: 0;
    stroke-width: 0;
  }
  to {
    opacity: 1;
    stroke-width: 1.5px;
  }
}

/* Footer */
.footer {
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  color: #7A9B68;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .domain-title {
    font-size: 36px;
  }

  .content-section {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .tree-svg {
    width: 100px;
    height: 130px;
  }
}
