:root {
  --lime: #d6f06a;
  --sky: #a8bddb;
  --sky2: #b6c8e0;
  --yellow: #fff06a;
  --orange: #f2a247;
  --pink: #ee94d3;
  --green: #38bd58;
  --mint: #64dec3;
  --ink: #111111;
  --white: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--lime);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--lime);
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bubble-section,
.cards,
.buy-panel,
.footer {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.hero {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: var(--lime);
}

.ref-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  border-radius: 0;
  filter: none;
}

.hero-base {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-cover {
  position: absolute;
  z-index: 4;
  left: 8.25%;
  top: 18.45%;
  width: 83.2%;
  height: 4.25%;
  border-radius: 9px;
  background: linear-gradient(180deg, #a5bad8, #aabdda);
}

.nav-clean {
  position: absolute;
  z-index: 5;
  left: 8.55%;
  right: 8.3%;
  top: 18.78%;
  display: flex;
  align-items: center;
  gap: 0.58%;
}

.brand,
.pill {
  height: clamp(22px, 2.55vw, 29px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.55);
  color: var(--ink);
  font-size: clamp(7px, 0.86vw, 10px);
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand {
  width: 7.2%;
  color: var(--white);
  background: #36bde1;
}

.pill {
  padding: 0 1.2%;
}

.orange {
  background: var(--orange);
}

.yellow {
  background: var(--yellow);
}

.pink {
  background: var(--pink);
}

.green {
  background: var(--green);
}

.mint {
  background: var(--mint);
}

.buy {
  margin-left: auto;
  background: var(--yellow);
}

.white {
  min-width: 4.2%;
  background: var(--white);
}

.ca-cover {
  position: absolute;
  z-index: 4;
  left: 8.65%;
  top: 47.55%;
  width: 33.6%;
  height: 5.65%;
  border-radius: 6px;
  background: var(--sky2);
}

.ca-bar {
  position: absolute;
  z-index: 6;
  left: 8.65%;
  top: 47.72%;
  width: 33.6%;
  height: 5.22%;
  display: flex;
}

.ca-bar button {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: clamp(7px, 0.82vw, 10px);
  font-weight: 950;
}

.ca-bar button:first-child {
  flex: 1;
  overflow: hidden;
  border-radius: 5px 0 0 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ca-bar button:last-child {
  width: 16%;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: #dff577;
}

.splash-cover {
  position: absolute;
  z-index: 2;
  left: 41.5%;
  top: 57.37%;
  width: 30.27%;
  height: 15.65%;
  background: url("./assets/layers/water-clean.png") center / 100% 100% no-repeat;
  animation: splashCover 13.2s ease-in-out infinite;
}

.snork-layer {
  position: absolute;
  z-index: 3;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.snork-dock {
  left: 39.55%;
  top: 41.07%;
  width: 26.86%;
  height: 33.9%;
  animation: dockState 13.2s ease-in-out infinite;
}

.snork-rocket {
  left: 50.78%;
  top: 28.68%;
  width: 12.7%;
  height: 16.95%;
  opacity: 0;
  animation: rocketState 13.2s ease-in-out infinite;
}

.snork-resurface {
  left: 41.02%;
  top: 40.16%;
  width: 24.41%;
  height: 35.2%;
  opacity: 0;
  animation: resurfaceState 13.2s ease-in-out infinite;
}

.hero-actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 18px;
  font-weight: 950;
}

.hero-actions p {
  margin: 0;
}

.hero-actions span {
  display: flex;
  gap: 12px;
}

.hero-actions button,
.hero-actions a,
.buy-panel a,
.buy-panel button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 20px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions a {
  background: var(--mint);
}

.bubble-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 42px;
  padding: 34px 0 72px;
}

.bubble-copy p,
.buy-panel p {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.bubble-copy h2,
.buy-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(60px, 8vw, 110px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(17, 17, 17, 0.22);
}

.bubble-section figure {
  margin: 0;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 20px;
  background: var(--sky);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(1deg);
}

.bubble-section img {
  display: block;
  width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 74px;
}

.cards article {
  min-height: 220px;
  padding: 22px;
  border: 5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.cards article:nth-child(2) {
  background: var(--mint);
  transform: rotate(-1deg);
}

.cards article:nth-child(3) {
  background: var(--pink);
  transform: rotate(1deg);
}

.cards span {
  font-weight: 950;
}

.cards h2 {
  margin: 16px 0 12px;
  font-size: clamp(31px, 3.7vw, 48px);
  line-height: 0.9;
  letter-spacing: 0;
}

.cards p,
.buy-panel span {
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 850;
}

.buy-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
  margin-bottom: 74px;
  padding: 34px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(90deg, #1fb2c8, #47c7ce);
  box-shadow: 9px 9px 0 var(--ink);
}

.buy-panel aside {
  display: grid;
  gap: 14px;
}

.buy-panel button {
  background: var(--white);
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 4px solid var(--ink);
  padding: 28px 0 48px;
  font-weight: 950;
}

.footer span:last-child {
  display: flex;
  gap: 16px;
}

@keyframes dockState {
  0%,
  15%,
  78%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  22%,
  70% {
    opacity: 0;
    transform: translateY(-4%) scale(0.98);
  }
}

@keyframes rocketState {
  0%,
  16%,
  42%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  22%,
  36% {
    opacity: 1;
    transform: translateY(-4%) scale(1);
  }
}

@keyframes resurfaceState {
  0%,
  48%,
  76%,
  100% {
    opacity: 0;
    transform: translateY(3%) scale(0.98);
  }

  58%,
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashCover {
  0%,
  44%,
  78%,
  100% {
    opacity: 1;
  }

  50%,
  72% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snork-dock,
  .snork-rocket,
  .snork-resurface,
  .splash-cover {
    animation: none;
  }

  .snork-dock {
    opacity: 1;
  }

  .snork-rocket,
  .snork-resurface {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
  }

  .hero-actions,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .bubble-section,
  .cards,
  .buy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bubble-section,
  .cards,
  .buy-panel,
  .footer {
    width: min(100% - 20px, 1120px);
  }

  .nav-clean {
    gap: 0.35%;
  }

  .brand,
  .pill {
    height: 16px;
    border-width: 1px;
    border-radius: 3px;
    box-shadow: 1px 1px 0 rgba(17, 17, 17, 0.55);
    font-size: 5px;
  }

  .pill {
    padding: 0 0.65%;
  }

  .ca-bar button {
    border-width: 1px;
    font-size: 5px;
  }

  .hero-actions span,
  .hero-actions button,
  .hero-actions a {
    width: 100%;
  }

  .bubble-copy h2,
  .buy-panel h2 {
    font-size: 48px;
  }

  .cards h2 {
    font-size: 36px;
  }

  .buy-panel {
    padding: 22px;
  }
}
