body{
    gap: 0;
}

nav{
    padding-bottom: 120px;
}

.hero{
  display: flex;
  flex-direction: column;
  padding: 0px 120px 120px 120px;
}

h1{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 160px;
  color: #FAF8F3;
}

h1 span {
  display: block;
}

.intro-section{
    position: relative;
    width: 100%;
}

.intro-greenline{
    width: 100%;
    aspect-ratio: 1920 / 109;
    background-image: url('../assets/images/green-line.svg');
}

.intro-cube{
    position: absolute;
    width: 18%;
    aspect-ratio: 1 / 1;
    min-width: 202px;
    background-image: url('../assets/images/cube-basic.svg');
    background-repeat: no-repeat;
    right: 4%;
    bottom: 90%;
    background-size: contain;
}

.intro-text-block {
  position: relative;
  background-color: #7A9E7E;
  padding: clamp(24px, 3vw, 48px) clamp(32px, 4vw, 64px);
  max-width: 650px;
  width: fit-content;
  color: #FAF8F3;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.5;
  margin: clamp(40px, 6vw, 80px) auto; 
}

.intro-text-block.right {
  margin-left: auto;
  margin-right: 10%;
}

.intro-text-block.left {
  margin-right: auto;
  margin-left: 30%;
}

.intro-text-block::before {
  content: '';
  position: absolute;
  width: clamp(40px, 6vw, 80px);
  aspect-ratio: 1 / 2;
  background-color: #7A9E7E;
  top: calc(clamp(40px, 6vw, 80px) * -1);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.intro-text-block::after {
  content: '';
  position: absolute;
  width: clamp(40px, 6vw, 80px);
  aspect-ratio: 1 / 1;
  background-color: #7A9E7E;
  bottom: calc(clamp(40px, 6vw, 80px) * -0.5);
  left: 50%;
  transform: translateX(-50%);
}


.intro-text-block:first-of-type::after {
  display: none;
}

.intro-text-block:last-of-type::after {
  left: 20%;
  bottom: calc(clamp(40px, 6vw, 80px) * -1);
}


.points-section {
  position: relative;
  width: 100%;
}

.points-quote {
  background-color: #9E2A3E;
  padding: clamp(40px, 5vw, 80px) clamp(60px, 8vw, 120px);
  width: 100%;
}

.points-quote h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4.5vw, 96px);
  font-weight: 600;
  color: #FAF8F3;
  line-height: 1.3;
  max-width: 1200px;
}


.points-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  position: relative;
  padding-top: 5%;
  padding-bottom: 80px;
}

.board-cell {
  aspect-ratio: 1 / 1;
  padding: clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.board-cell h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
  color: #FAF8F3;
  margin-bottom: 16px;
}

.board-cell p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  color: #FAF8F3;
}

.board-cell.red {
  background-color: #9E2A3E;
}

.board-cell.dark {
  background-color: #2C3E50;
}

.board-cell.green {
  background-color: #7A9E7E;
}

.board-cell.center {
  background-color: #2C3E50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-cell:nth-child(1)::before {
  content: '';
  position: absolute;
  width: clamp(40px, 5vw, 80px);
  aspect-ratio: 1 / 1;
  background-color: #9E2A3E;
  top: calc(clamp(40px, 5vw, 80px) * -1);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.board-cell:nth-child(3)::before {
  content: '';
  position: absolute;
  width: clamp(40px, 5vw, 80px);
  aspect-ratio: 1 / 1;
  background-color: #9E2A3E;
  top: calc(clamp(40px, 5vw, 80px) * -1);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.board-cell:nth-last-child(1)::after, .board-cell:nth-last-child(3)::after {
  content: '';
  position: absolute;
  width: clamp(40px, 5vw, 80px);
  aspect-ratio: 1 / 1;
  background-color: #7A9E7E;
  bottom: calc(clamp(40px, 7vw, 80px) * -1);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}


.board-piece {
  width: clamp(80px, 15vw, 200px);
  height: auto;
  max-height: 80%;
  align-self: center;
}

.masters-section {
  position: relative;
  width: 100%;
  padding: 0 120px;
}

.masters-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 72px);
  font-weight: 600;
  color: #FAF8F3;
  background-color: #7A9E7E;
  padding: clamp(40px, 5vw, 80px) clamp(60px, 8vw, 120px);
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}

.masters-card {
  position: relative;
  background-image: url('../assets/images/empty-card.svg');
  background-repeat: no-repeat;
  background-size: cover;
  transform: rotate(180deg) rotateY(180deg);
  color: #2C3E50;
  padding: clamp(32px, 8vw, 96px);
  max-width: 500px;
  margin-left: auto;
  margin-top: -60px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  border-radius: 8px;
  z-index: -1;
}

.masters-card p {
  transform: rotate(180deg) rotateY(180deg);
  padding-bottom: 160px;
}

footer {
  padding-top: 120px;
}


@media (max-width: 1280px) {
  h1 { font-size: 126px; }
  
  .intro-cube {
    display: none;
  }

  .points-board {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 80px;
    padding-bottom: 60px;
  }
  
  .board-cell:nth-child(4n+1),
  .board-cell:nth-child(4n+4) {
    background-color: #9E2A3E;
  }

  .board-cell:nth-child(4n+2),
  .board-cell:nth-child(4n+3) {
    background-color: #2C3E50;
  }
  .board-cell.center {
    background-color: #2C3E50 !important;
  }

  .board-cell.green {
    background-color: #7A9E7E !important;
  }

  .board-cell.green:last-of-type{
    display: none;
  }

  .board-cell:nth-last-child(1)::after,
  .board-cell:nth-last-child(2)::after {
    width: clamp(30px, 4vw, 60px);
    bottom: calc(clamp(30px, 5vw, 60px) * -1);
  }
}

@media (max-width: 480px) {
    .hero h1 { 
        font-size: 48px; 
        line-height: 1.2;
    }
    .hero {
        padding: 0 16px;
    }
    .intro-section {
    padding: 0 16px;
  }
  
    .intro-cube {
    display: none;
  }
  
    .intro-text-block {
    padding: 20px;
    margin: 30px auto;
  }
  
    .intro-text-block::before {
    width: 30px;
    top: -30px;
  }
  
    .intro-text-block::after {
    width: 30px;
    bottom: -15px;
  }

   .intro-text-block:last-of-type::after{
    bottom: calc(clamp(30px, 6vw, 80px) * -1);
   }

  .points-board {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .board-cell:nth-child(odd) {
    background-color: #9E2A3E;
  }
  
  .board-cell:nth-child(even) {
    background-color: #2C3E50;
  }
  
  .board-cell.center {
    background-color: #2C3E50 !important;
  }
  
  .board-cell.green {
    background-color: #7A9E7E !important;
  }
  
  .board-cell {
    aspect-ratio: auto;
    min-height: 180px;
    padding: 24px 20px;
  }
  
  .board-cell.center {
    min-height: 260px;
  }
  
  .board-cell h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .board-cell p {
    font-size: 14px;
  }
  
  .board-piece {
    width: 120px;
    max-height: none;
  }
  
  .board-cell:nth-child(1)::before {
    content: '';
    position: absolute;
    width: 30px;
    aspect-ratio: 1 / 2;
    background-color: #9E2A3E;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: block;
  }
  
  .board-cell:not(:first-child)::before {
    display: none !important;
  }
}
