:root {
  color-scheme: light;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --white: #ffffff;
  --sky-1: #67c8ff;
  --sky-2: #2ea3f1;
  --sky-3: #8ed9ff;
  --shadow: 0 20px 45px rgba(31, 64, 97, 0.18);
  --shadow-strong: 0 28px 60px rgba(31, 64, 97, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --content: 1160px;
  --button: #2387dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: linear-gradient(180deg, #fff 0, #fff 5.75rem, var(--sky-2) 5.75rem, var(--sky-1) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

main {
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 5.75rem;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar-nav--left {
  justify-content: flex-start;
}

.topbar-nav--right {
  justify-content: flex-end;
}

.topbar-nav--left,
.topbar-nav--right {
  align-items: center;
}

.icon-link,
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.38rem 0 0.58rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  color: #222;
  white-space: nowrap;
}

.icon-link--search::after,
.cart-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1876d3 0%, #2fa1ff 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.icon-link--search:hover::after,
.icon-link--search:focus-visible::after,
.cart-link:hover::after,
.cart-link:focus-visible::after {
  transform: scaleX(1);
}

.icon-link svg,
.cart-link svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.icon-link--search {
  gap: 0.65rem;
}

.link-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  width: 1.7rem;
  height: 1.35rem;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 5.75rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(180deg, #39a9f2 0%, #43aef2 42%, #55bcf5 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.45), transparent 12%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.3), transparent 13%),
    linear-gradient(180deg, rgba(91, 202, 255, 0.45) 0%, rgba(58, 169, 242, 0.12) 56%, rgba(255, 255, 255, 0.08) 100%);
  opacity: 0.9;
}

/* Swap this layer with the real sky art later. */
.hero-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 10% 84%, rgba(255, 255, 255, 0.95) 0 5.8%, transparent 6%),
    radial-gradient(circle at 17% 80%, rgba(255, 255, 255, 0.88) 0 8.6%, transparent 8.8%),
    radial-gradient(circle at 26% 83%, rgba(255, 255, 255, 0.96) 0 7.6%, transparent 7.9%),
    radial-gradient(circle at 40% 94%, rgba(255, 255, 255, 0.9) 0 9%, transparent 9.2%),
    radial-gradient(circle at 64% 92%, rgba(255, 255, 255, 0.95) 0 8.6%, transparent 8.9%),
    radial-gradient(circle at 86% 88%, rgba(255, 255, 255, 0.92) 0 7.5%, transparent 7.8%);
  opacity: 0.88;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero::before {
  left: -6%;
  top: 10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 15% 66%, rgba(255, 255, 255, 0.92) 0 4.2%, transparent 4.4%),
    radial-gradient(circle at 18% 68%, rgba(255, 255, 255, 0.82) 0 6.2%, transparent 6.4%),
    radial-gradient(circle at 22% 66%, rgba(255, 255, 255, 0.7) 0 5.3%, transparent 5.5%),
    radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.86) 0 8.8%, transparent 9%),
    radial-gradient(circle at 48% 92%, rgba(255, 255, 255, 0.9) 0 7.5%, transparent 7.7%),
    radial-gradient(circle at 82% 92%, rgba(255, 255, 255, 0.92) 0 8%, transparent 8.2%);
  opacity: 0.85;
  filter: blur(6px);
}

.hero::after {
  right: -10%;
  bottom: -6%;
  width: 120%;
  height: 55%;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.88) 0 7%, transparent 7.2%),
    radial-gradient(circle at 21% 24%, rgba(255, 255, 255, 0.95) 0 9%, transparent 9.2%),
    radial-gradient(circle at 29% 19%, rgba(255, 255, 255, 0.84) 0 6.7%, transparent 6.9%),
    radial-gradient(circle at 56% 28%, rgba(255, 255, 255, 0.88) 0 7.5%, transparent 7.7%),
    radial-gradient(circle at 65% 24%, rgba(255, 255, 255, 0.94) 0 9%, transparent 9.2%),
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.84) 0 6.6%, transparent 6.8%);
  opacity: 0.75;
  filter: blur(8px);
}

.hero-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  filter: blur(0.5px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-cloud::before,
.hero-cloud::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: inherit;
}

.hero-cloud--left {
  left: 2%;
  bottom: 4%;
  width: 18rem;
  height: 4.5rem;
  box-shadow:
    3.8rem -1.2rem 0 0 rgba(255, 255, 255, 0.96),
    7.8rem -1.8rem 0 0 rgba(255, 255, 255, 0.92);
}

.hero-cloud--left::before {
  width: 6.5rem;
  height: 6.5rem;
  left: 1.8rem;
  top: -2.4rem;
}

.hero-cloud--left::after {
  width: 8.6rem;
  height: 8.6rem;
  left: 6.8rem;
  top: -3.9rem;
}

.hero-cloud--right {
  right: 2.2%;
  bottom: 4%;
  width: 20rem;
  height: 4.8rem;
  box-shadow:
    -4.2rem -1.1rem 0 0 rgba(255, 255, 255, 0.96),
    -8rem -1.6rem 0 0 rgba(255, 255, 255, 0.92);
}

.hero-cloud--right::before {
  width: 7rem;
  height: 7rem;
  right: 2rem;
  top: -2.5rem;
}

.hero-cloud--right::after {
  width: 9rem;
  height: 9rem;
  right: 7rem;
  top: -4rem;
}

.hero-cloud--bottom {
  left: 50%;
  bottom: -1.8rem;
  width: min(76vw, 68rem);
  height: 6rem;
  transform: translateX(-50%);
  box-shadow:
    -20rem -1.1rem 0 0 rgba(255, 255, 255, 0.92),
    -10rem -1.3rem 0 0 rgba(255, 255, 255, 0.96),
    0 -1rem 0 0 rgba(255, 255, 255, 0.98),
    10rem -1.4rem 0 0 rgba(255, 255, 255, 0.96),
    20rem -1rem 0 0 rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

.hero-cloud--bottom::before {
  width: 11rem;
  height: 11rem;
  left: 4rem;
  top: -5rem;
}

.hero-cloud--bottom::after {
  width: 13rem;
  height: 13rem;
  right: 6rem;
  top: -6rem;
}

.showcase {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 5.75rem);
  padding: 2rem 4.5rem 2.4rem;
}

.carousel {
  position: relative;
  width: min(100%, 1030px);
  height: min(72vh, 700px);
  display: grid;
  place-items: center;
  perspective: 1400px;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.product-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(210px, 29vw, 300px);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(31, 64, 97, 0.18);
  background: #fff;
  transform-origin: center center;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.carousel.is-dragging .product-card {
  transition: none;
}

.product-card--featured {
  width: clamp(260px, 34vw, 330px);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(20, 35, 58, 0.08));
  pointer-events: none;
  z-index: 1;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}

.product-card__art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: inherit;
}

.product-card__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__body {
  display: grid;
  gap: 0.22rem;
  padding: 1rem 1rem 1.05rem;
  background: #fff;
  position: relative;
  z-index: 2;
}

.product-card__body h2,
.product-card__body p,
.product-card__body strong {
  margin: 0;
}

.product-card__body h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-card__body p {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card__body strong {
  padding-top: 0.25rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  color: var(--button);
  font-weight: 700;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  margin-top: 0.68rem;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #3097ee 0%, #1876d3 100%);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 16px rgba(27, 104, 183, 0.22);
}

.product-button:hover,
.product-button:focus-visible {
  filter: brightness(1.03);
}

.product-card--citrus .product-card__art {
  background: linear-gradient(180deg, #ffb01f 0%, #f8a800 100%);
}

.product-card--lemonade .product-card__art {
  background: linear-gradient(180deg, #f8dd2f 0%, #f7df33 100%);
}

.product-card--cherry .product-card__art {
  background: linear-gradient(180deg, #eb2b2f 0%, #d50b1e 100%);
}

.product-card--lime .product-card__art {
  background: linear-gradient(180deg, #c9f94f 0%, #82d12f 100%);
}

.product-card--orange .product-card__art {
  background: linear-gradient(180deg, #ffd35b 0%, #ff9121 100%);
}

.product-card--blueberry .product-card__art {
  background: linear-gradient(180deg, #7fcbff 0%, #2f77ff 100%);
}

.product-card--featured .product-card__art svg {
  transform: translateY(-2%);
}

.product-featured {
  position: absolute;
  z-index: 2;
  top: 0.72rem;
  left: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #2e8ef3 0%, #1876d3 100%);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(16, 84, 154, 0.2);
}

.product-featured::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  display: inline-block;
  background: linear-gradient(180deg, #ffe96a 0%, #ffdc3f 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 72%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 4.7rem;
  height: 4.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow svg {
  width: 1.95rem;
  height: 1.95rem;
}

.carousel-arrow--left {
  left: 0.35rem;
}

.carousel-arrow--right {
  right: 0.35rem;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #f7fbff 100%);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.site-footer__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 1rem 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__meta {
  display: grid;
  gap: 0.25rem;
}

.site-footer__brand {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__copy {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0 0.32rem;
  color: rgba(17, 17, 17, 0.8);
  white-space: nowrap;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1876d3 0%, #2fa1ff 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-footer__link:hover::after,
.site-footer__link:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-inline: 0.8rem;
  }

  .brand {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
  }

  .showcase {
    padding-inline: 3.5rem;
  }

  .carousel {
    height: min(70vh, 640px);
  }

  .product-card {
    width: clamp(190px, 32vw, 250px);
  }

  .product-card--featured {
    width: clamp(240px, 38vw, 300px);
  }

  .site-footer__inner {
    padding-block: 0.95rem 1.05rem;
  }
}

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, #fff 0, #fff 4.9rem, var(--sky-2) 4.9rem, var(--sky-1) 100%);
  }

  .topbar {
    min-height: 4.9rem;
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
    padding: 0.55rem 0.8rem 0.65rem;
  }

  .topbar-nav {
    gap: 0.85rem;
  }

  .brand {
    order: -1;
    justify-self: center;
    font-size: 1.9rem;
  }

  .topbar-nav--right {
    justify-content: flex-end;
  }

  .link-label {
    font-size: 0.92rem;
  }

  .showcase {
    padding: 1.2rem 1rem 1.8rem;
    min-height: calc(100vh - 4.9rem);
  }

  .carousel {
    width: 100%;
    height: min(64vh, 560px);
  }

  .carousel-arrow {
    width: 3.7rem;
    height: 3.7rem;
  }

  .carousel-arrow--left {
    left: -0.15rem;
  }

  .carousel-arrow--right {
    right: -0.15rem;
  }

  .product-card {
    width: clamp(175px, 45vw, 220px);
  }

  .product-card--featured {
    width: clamp(220px, 60vw, 280px);
  }
}

@media (max-width: 520px) {
  .topbar-nav--left .link-label,
  .topbar-nav--right .link-label {
    display: none;
  }

  .brand {
    font-size: 1.7rem;
  }

  .showcase {
    padding-inline: 0.35rem;
  }

  .carousel {
    height: min(62vh, 520px);
  }

  .carousel-arrow {
    width: 3.2rem;
    height: 3.2rem;
  }

  .carousel-arrow svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  .product-card {
    width: 10.8rem;
  }

  .product-card--featured {
    width: 14rem;
  }

  .product-card__body {
    padding: 0.8rem 0.78rem 0.85rem;
  }

  .product-button {
    min-height: 1.95rem;
    font-size: 0.82rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    justify-content: flex-start;
    gap: 0.8rem;
  }
}
