@font-face {
  font-family: "Sora Local";
  src: url("assets/sora.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter Local";
  src: url("assets/inter.woff2") format("woff2");
  font-display: swap;
}

@property --float-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --dark: #11100d;
  --paper: #fff8ea;
  --red: #ff3b3b;
  --red-deep: #7f1010;
  --green: #25d366;
  --green-dark: #128c4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Inter Local", Arial, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 59, 59, 0.24), transparent 32%),
    radial-gradient(circle at 84% 72%, rgba(127, 16, 16, 0.42), transparent 30%),
    linear-gradient(145deg, #180a0a 0%, #080606 58%, #030202 100%);
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 44px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 248, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 234, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
  pointer-events: none;
}

.floating-gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-card {
  position: absolute;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --float-y: 0px;
  width: clamp(92px, 15vw, 238px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 59, 59, 0.22);
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 32px rgba(255, 59, 59, 0.08);
  transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + var(--float-y)), 0);
  transition: box-shadow 220ms ease, opacity 220ms ease;
  animation: float 8s ease-in-out infinite;
  opacity: 0.9;
}

.card-1 {
  top: 8%;
  left: 6%;
  rotate: -8deg;
  animation-delay: -1s;
}

.card-2 {
  top: 4%;
  right: 11%;
  width: clamp(120px, 18vw, 280px);
  rotate: 8deg;
  animation-delay: -3s;
}

.card-3 {
  top: 58%;
  left: 4%;
  width: clamp(118px, 18vw, 270px);
  rotate: 7deg;
  animation-delay: -5s;
}

.card-4 {
  right: 3%;
  bottom: 9%;
  width: clamp(132px, 20vw, 310px);
  rotate: -10deg;
  animation-delay: -2s;
}

.card-5 {
  left: 18%;
  bottom: -5%;
  width: clamp(100px, 14vw, 220px);
  rotate: 12deg;
  animation-delay: -4s;
}

.card-6 {
  top: 32%;
  right: -2%;
  width: clamp(90px, 13vw, 200px);
  rotate: 14deg;
  animation-delay: -6s;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(820px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kicker {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 59, 59, 0.35);
}

h1 {
  margin: 0;
  font-family: "Sora Local", Arial, sans-serif;
  font-size: clamp(2.35rem, 6.2vw, 5.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.rotating-text {
  position: relative;
  display: inline-block;
  min-width: min(520px, 100%);
  overflow: hidden;
  color: var(--red);
  text-shadow: 0 0 34px rgba(255, 59, 59, 0.34);
  vertical-align: bottom;
}

.rotating-text.is-changing {
  animation: rotateWord 520ms ease both;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 248, 234, 0.74);
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  line-height: 1.6;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 32px;
  border-radius: 999px;
  color: #06150c;
  background: linear-gradient(135deg, var(--green), #7cff9d);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.56), 0 18px 46px rgba(37, 211, 102, 0.28);
  font-weight: 900;
  text-decoration: none;
  animation: pulseButton 1.45s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-2px);
}

@keyframes float {
  0%,
  100% {
    --float-y: 0px;
  }

  50% {
    --float-y: -18px;
  }
}

@keyframes rotateWord {
  0% {
    opacity: 0;
    transform: translateY(80%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseButton {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 18px 46px rgba(37, 211, 102, 0.28);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 22px 58px rgba(37, 211, 102, 0.42);
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .hero {
    min-height: 100svh;
    place-items: center;
    padding: 42px 18px 36px;
  }

  .float-card {
    width: clamp(74px, 26vw, 120px);
    border-radius: 13px;
    opacity: 0.52;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 59, 59, 0.08);
  }

  .card-1 {
    top: 9%;
    left: -22px;
    rotate: -9deg;
  }

  .card-2 {
    top: 4%;
    right: -24px;
    width: clamp(86px, 31vw, 138px);
    rotate: 9deg;
  }

  .card-3 {
    top: auto;
    bottom: 10%;
    left: -28px;
    width: clamp(84px, 30vw, 132px);
    rotate: 7deg;
  }

  .card-4 {
    right: -30px;
    bottom: 7%;
    width: clamp(92px, 34vw, 150px);
    rotate: -10deg;
  }

  .card-5,
  .card-6 {
    display: none;
  }

  .hero-content {
    width: min(420px, 100%);
    padding: 0 4px;
  }

  .kicker {
    margin-bottom: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .rotating-text {
    min-width: 0;
  }

  h1 {
    font-size: clamp(2.08rem, 10.4vw, 3.35rem);
    line-height: 1.08;
  }

  .hero-copy {
    width: min(340px, 100%);
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .cta {
    min-height: 54px;
    margin-top: 30px;
    padding: 0 26px;
    font-size: 0.96rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-inline: 16px;
  }

  .float-card {
    opacity: 0.42;
  }

  .card-1 {
    top: 7%;
    left: -36px;
  }

  .card-2 {
    top: 6%;
    right: -42px;
  }

  .card-3 {
    bottom: 6%;
    left: -42px;
  }

  .card-4 {
    right: -46px;
    bottom: 5%;
  }

  h1 {
    font-size: clamp(1.94rem, 10.8vw, 2.85rem);
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .cta {
    width: min(100%, 280px);
  }
}
