@font-face {
  font-family: "Greed";
  src: url("/fonts/GreedCondensed-TRIAL-Heavy.otf") format("opentype");
  font-weight: 900;
}

@font-face {
  font-family: "Greed";
  src: url("/fonts/GreedCondensed-TRIAL-Bold.otf") format("opentype");
  font-weight: 700;
}

@font-face {
  font-family: "Greed Narrow";
  src: url("/fonts/GreedNarrow-TRIAL-Bold.otf") format("opentype");
  font-weight: 700;
}

@font-face {
  font-family: "Greed Narrow";
  src: url("/fonts/GreedNarrow-TRIAL-Regular.otf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: "Greed";
  src: url("/fonts/GreedCondensed-TRIAL-Medium.otf") format("opentype");
  font-weight: 500;
}

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

:root {
  --green: #1EA34F;
  --cream: #FCE2CF;
  --pink: #FFB6DE;
  --pink-text: #6E0014;
}

body {
  font-family: "Greed Narrow", sans-serif;
  background-color: var(--green);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--cream);
}
::selection {
  background: var(--cream);
  color: var(--green);
}

::-moz-selection {
  background: var(--cream);
  color: var(--green);
}
.container {
  min-height: 100vh;
  padding: 2rem 12rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background lines */
.bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
  z-index: 0;
}

.bg-lines img {
  width: 170%;
  height: 170%;
  object-fit: cover;
}

/* Navigation */
nav {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  margin-left: 1rem;
  opacity: 0;
  animation: slideDown 0.8s ease 0.2s forwards;
  position: relative;
  z-index: 10;
}

.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-family: "Greed", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.nav-text {
  display: flex;
  position: relative;
}

.nav-char {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.nav-char span {
  display: block;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  line-height: 1.2;
}

.nav-char span:nth-child(2) {
  position: absolute;
  top: 100%;
  left: 0;
}

.nav-link:hover .nav-char span:nth-child(1) {
  transform: translateY(-100%);
}

.nav-link:hover .nav-char span:nth-child(2) {
  transform: translateY(-100%);
}

.nav-underline {
  position: absolute;
  /* bottom: -4px; */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cream);
}
/* Main content */
.content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 10rem;
}

h1 {
  font-family: "Greed", sans-serif;
  font-size: 8.125rem;
  font-weight: 1000;
  line-height: 0.75;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

h1 .line {
  display: block;
  overflow: hidden;
}

h1 .line span {
  display: block;
  transform: translateY(100%);
  animation: slideUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

h1 .line:nth-child(1) span {
  animation-delay: 0.3s;
}
h1 .line:nth-child(2) span {
  animation-delay: 0.45s;
}

.subtitle {
  font-family: "Greed Narrow", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.subtitle strong {
  font-weight: 700;
}
.note-wrapper {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: noteEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

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

.note {
 display: inline-block;
  background: var(--pink);
  color: var(--pink-text);
  padding: 0.5rem 1.2rem;
  font-family: "Greed Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 50px;
  transform: rotate(-1.87deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  width: fit-content;
  margin-top: -0.7rem;
  
}

.note:hover {
  transform: rotate(0deg) scale(1.02);
}
.note::selection {
  background: #6E0014;
  color: #FFB6DE;
}

.note::-moz-selection {
  background: #6E0014;
  color: #FFB6DE;
}

/* CTA Section */
.cta-wrapper {
  position: absolute;
  bottom: 3.5rem;
  left: 12rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
  z-index: 10;
}

.cta {
  font-family: "Greed", sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.cta-text {
  display: flex;
  position: relative;
}

.cta-char {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.cta-char span {
  display: block;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  line-height: 1.2;
}

.cta-char span:nth-child(2) {
  position: absolute;
  top: 100%;
  left: 0;
}

.cta:hover .cta-char span:nth-child(1) {
  transform: translateY(-100%);
}

.cta:hover .cta-char span:nth-child(2) {
  transform: translateY(-100%);
}

.cta-underline {
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--cream);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta:hover .cta-underline {
  /* animation: underlineWiggle 0.5s ease; */
}

/* Cactus */
.cactus {
  position: absolute;
  right: -5%;
  top: 0;
  bottom: -20%;
  width: 48%;
  max-width: 650px;
  z-index: 1;
  opacity: 0;
  animation: cactusEnter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cactus img {
  width: 84%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cactus-float {
  width: 100%;
}


/* Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

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

@keyframes popIn {
  to {
    opacity: 1;
    transform: rotate(-1.87deg) translateY(0) scale(1);
  }
}
@keyframes rotate {
  to {
    opacity: 1;
    transform: rotate(0deg) translateY(0) scale(1);
  }
}

@keyframes cactusEnter {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-45%);
  }
  50% {
    transform: translateY(calc(-45% - 12px));
  }
}

@keyframes underlineWiggle {
  0%,
  100% {
    transform: scaleX(1);
  }
  25% {
    transform: scaleX(1.03);
  }
  75% {
    transform: scaleX(0.97);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .cactus {
    width: 45%;
    right: 2%;
  }
}

@media (max-width: 1024px) {
  .cactus {
    width: 50%;
    right: -5%;
  }

  .content {
    max-width: 55%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 2rem;
    min-height: auto;
  }

  .content {
    max-width: 100%;
    padding-bottom: 2rem;
  }

  .cactus {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 85%;
    max-width: 380px;
    margin: 2rem auto;
    opacity: 1;
    animation: cactusEnterMobile 1s ease 0.4s forwards;
  }

  .cactus-float {
    animation: floatMobile 6s ease-in-out infinite;
    animation-delay: 1.4s;
  }

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

  @keyframes floatMobile {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .cta-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}