:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #071011;
  color: #fff7df;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 64px);
  isolation: isolate;
}

.hero-art {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/pirates-of-the-endless-hero.png");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
}

.storm-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.storm-layer::before,
.storm-layer::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.storm-layer::before {
  top: 2%;
  right: 4%;
  width: min(58vw, 860px);
  height: min(44vh, 420px);
  background:
    radial-gradient(circle at 58% 30%, rgba(160, 255, 248, 0.42), transparent 10%),
    radial-gradient(circle at 65% 48%, rgba(95, 219, 229, 0.24), transparent 18%),
    radial-gradient(circle at 44% 44%, rgba(255, 244, 195, 0.12), transparent 22%);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0;
  animation: cloud-flash 4.8s infinite;
}

.storm-layer::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 46%;
  background: radial-gradient(circle at 72% 19%, rgba(194, 255, 252, 0.16), transparent 18%);
  opacity: 0;
  animation: sky-pulse 4.8s infinite;
}

.lightning {
  position: absolute;
  display: block;
  width: 2px;
  height: min(31vh, 285px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #f9ffef 12%, #83fff6 52%, rgba(131, 255, 246, 0));
  filter: drop-shadow(0 0 7px rgba(178, 255, 249, 0.95)) drop-shadow(0 0 18px rgba(77, 232, 232, 0.7));
  opacity: 0;
  transform-origin: top center;
  clip-path: polygon(48% 0, 86% 13%, 58% 23%, 92% 35%, 54% 45%, 81% 58%, 47% 63%, 68% 100%, 16% 69%, 42% 61%, 8% 49%, 39% 39%, 14% 26%, 43% 18%);
  animation: lightning-strike 4.8s infinite;
}

.lightning-main {
  top: 8%;
  right: 21%;
  transform: rotate(8deg);
}

.lightning-side {
  top: 15%;
  right: 15%;
  height: min(22vh, 210px);
  transform: rotate(-17deg) scaleX(0.7);
  animation-delay: 0.1s;
}

.lightning-fork {
  top: 20%;
  right: 29%;
  height: min(18vh, 170px);
  transform: rotate(26deg) scaleX(0.58);
  animation-delay: 0.18s;
}

.lightning-left {
  top: 17%;
  left: 28%;
  height: min(24vh, 230px);
  transform: rotate(-31deg) scaleX(0.62);
  animation-delay: 1.45s;
}

.lightning-wide {
  top: 6%;
  right: 41%;
  height: min(29vh, 270px);
  transform: rotate(36deg) scaleX(0.82);
  animation-delay: 2.7s;
}

.lightning-low {
  top: 25%;
  right: 8%;
  height: min(21vh, 205px);
  transform: rotate(-39deg) scaleX(0.72);
  animation-delay: 3.35s;
}

.landing::before,
.landing::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.landing::before {
  background:
    radial-gradient(circle at 48% 22%, rgba(255, 208, 117, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(4, 12, 14, 0.22) 0%, rgba(4, 12, 14, 0.06) 42%, rgba(3, 9, 10, 0.46) 100%);
}

.landing::after {
  background:
    linear-gradient(90deg, rgba(2, 9, 10, 0.64) 0%, rgba(2, 9, 10, 0.2) 36%, rgba(2, 9, 10, 0.08) 66%, rgba(2, 9, 10, 0.48) 100%),
    radial-gradient(circle at 50% 82%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34) 70%);
}

.announcement {
  align-self: center;
  width: min(100%, 860px);
  padding-block: clamp(32px, 8vh, 96px);
}

.kicker {
  margin: 0 0 18px;
  color: #f7c76e;
  font-size: clamp(0.8rem, 1.6vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff7df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 15vw, 10.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.banner {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin: clamp(24px, 5vw, 42px) 0 0;
  border: 2px solid rgba(247, 199, 110, 0.85);
  padding: 12px 20px;
  background: rgba(6, 20, 21, 0.72);
  color: #f7c76e;
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.tagline {
  max-width: 36rem;
  margin: 20px 0 0;
  color: #d8efe9;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.45;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

@keyframes cloud-flash {
  0%,
  13%,
  16%,
  19%,
  47%,
  50%,
  53%,
  78%,
  81%,
  84%,
  100% {
    opacity: 0;
  }

  13.4%,
  15.4%,
  47.3%,
  49.4%,
  78.4%,
  80.2% {
    opacity: 0.95;
  }

  14.2%,
  48.1%,
  79.1% {
    opacity: 0.18;
  }
}

@keyframes sky-pulse {
  0%,
  13%,
  16%,
  19%,
  47%,
  50%,
  53%,
  78%,
  81%,
  84%,
  100% {
    opacity: 0;
  }

  13.4%,
  15.3%,
  47.3%,
  49.2%,
  78.4%,
  80.3% {
    opacity: 1;
  }
}

@keyframes lightning-strike {
  0%,
  12.6%,
  14.1%,
  15.8%,
  47.4%,
  49.2%,
  50.8%,
  78.2%,
  79.8%,
  81.2%,
  100% {
    opacity: 0;
  }

  13%,
  14.65%,
  48%,
  49.75%,
  78.7%,
  80.35% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .landing {
    min-height: 100svh;
    padding: 22px;
  }

  .hero-art {
    background-position: 50% center;
  }

  .storm-layer::before {
    top: 4%;
    right: -18%;
    width: 86vw;
    height: 34vh;
  }

  .storm-layer::after {
    height: 38%;
    background: radial-gradient(circle at 64% 18%, rgba(194, 255, 252, 0.14), transparent 24%);
  }

  .lightning-main {
    top: 11%;
    right: 28%;
    height: min(25vh, 210px);
  }

  .lightning-side {
    top: 17%;
    right: 19%;
    height: min(18vh, 160px);
  }

  .lightning-fork {
    top: 19%;
    right: 40%;
    height: min(16vh, 145px);
  }

  .lightning-left {
    top: 14%;
    left: 17%;
    height: min(19vh, 160px);
  }

  .lightning-wide {
    top: 7%;
    right: 48%;
    height: min(23vh, 190px);
  }

  .lightning-low {
    top: 22%;
    right: 4%;
    height: min(17vh, 150px);
  }

  .landing::before {
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 208, 117, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(4, 12, 14, 0.1) 0%, rgba(4, 12, 14, 0.04) 42%, rgba(3, 9, 10, 0.5) 100%);
  }

  .landing::after {
    background:
      linear-gradient(90deg, rgba(2, 9, 10, 0.46) 0%, rgba(2, 9, 10, 0.16) 42%, rgba(2, 9, 10, 0.24) 100%),
      radial-gradient(circle at 50% 86%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42) 70%);
  }

  .announcement {
    align-self: end;
    padding-block: 22vh 12vh;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.55rem, 18vw, 5.4rem);
  }

  .banner {
    min-height: 46px;
    padding: 10px 14px;
  }
}
