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

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

body {
  background: #1A1A2E;
  color: #B8B0C8;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
}

.hero-tree {
  width: 200px;
  height: 300px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.tree-structure {
  opacity: 0;
  animation: assembleTree 3s ease-out forwards;
}

@keyframes assembleTree {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.tree-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  animation: drawBranch 0.8s ease-out forwards;
}

.tree-line.trunk {
  animation-delay: 0s;
  animation-duration: 1s;
}

.tree-line:nth-of-type(2) {
  animation-delay: 0.4s;
}

.tree-line:nth-of-type(3) {
  animation-delay: 0.5s;
}

.tree-line:nth-of-type(4) {
  animation-delay: 0.6s;
}

.tree-line:nth-of-type(5) {
  animation-delay: 0.7s;
}

.tree-line:nth-of-type(6) {
  animation-delay: 0.8s;
}

.tree-line:nth-of-type(7) {
  animation-delay: 0.9s;
}

.tree-line:nth-of-type(8) {
  animation-delay: 1s;
}

@keyframes drawBranch {
  from {
    stroke-dashoffset: 200;
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.tree-leaf {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.8s forwards;
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  color: #E8E0F0;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.2s forwards;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Blocks Grid */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.block-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  position: relative;
}

.block-item:nth-child(1) { animation-delay: 0s; }
.block-item:nth-child(2) { animation-delay: 0.1s; }
.block-item:nth-child(3) { animation-delay: 0.2s; }
.block-item:nth-child(4) { animation-delay: 0.3s; }
.block-item:nth-child(5) { animation-delay: 0.4s; }
.block-item:nth-child(6) { animation-delay: 0.5s; }

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

.block-content {
  background: linear-gradient(135deg, #2A2A40 0%, #1F1F35 100%);
  border: 1px solid #3A3A50;
  padding: 32px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 0 #0F0F1F;
}

.block-content:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 #0F0F1F;
  border-color: #7B68EE;
}

/* Isometric shadow effect */
.block-content::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: -2px;
  bottom: -2px;
  background: #1A1A2E;
  z-index: -1;
  opacity: 0.5;
}

.block-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #E8E0F0;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: lowercase;
}

.block-text {
  font-size: 15px;
  line-height: 1.7;
  color: #B8B0C8;
  letter-spacing: 0.01em;
}

/* Accent line */
.block-title::after {
  content: '';
  display: block;
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, #00D2FF, #FF6B9D);
  margin-top: 12px;
}

/* Footer */
.footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #2A2A40;
}

.footer-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #7B68EE;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .blocks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 0;
  }

  .block-content {
    padding: 24px;
    box-shadow: 6px 6px 0 #0F0F1F;
  }

  .block-title {
    font-size: 20px;
  }

  .block-text {
    font-size: 14px;
  }

  .hero-section {
    height: 70vh;
  }

  .hero-tree {
    width: 150px;
    height: 225px;
  }
}

/* Geometric pattern as background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(123, 104, 238, 0.03) 60px,
      rgba(123, 104, 238, 0.03) 120px
    );
  pointer-events: none;
  z-index: -1;
}
