:root {
  --bg: #f1ecdf;
  --bg-soft: #e4edd9;
  --surface: #fbf8ee;
  --ink: #1d3023;
  --ink-soft: #4e5d52;
  --brand: #215f3c;
  --brand-strong: #174328;
  --line: #c9d4c3;
  --shadow: 0 20px 60px rgba(14, 46, 31, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(181, 220, 186, 0.48), transparent 48%),
    radial-gradient(circle at 90% 15%, rgba(160, 208, 174, 0.42), transparent 35%),
    var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Trebuchet MS", "Avenir Next", sans-serif;
  line-height: 1.45;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%);
  background-size: 42px 42px;
  opacity: 0.14;
}

.topbar,
main,
.footer {
  width: min(1140px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 53, 33, 0.2);
}

.admin-link {
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  transition: background-color 200ms ease;
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.65);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px 0 12px;
}

.hero-copy {
  background: linear-gradient(170deg, var(--surface), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 24px 20px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: "Archivo Black", Impact, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7.8vw, 3.35rem);
  line-height: 0.97;
  letter-spacing: -0.01em;
}

.lede {
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.5vw, 1.22rem);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-bottom: 14px;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  border: 1px solid var(--brand-strong);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 11px 14px;
  min-height: 58px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  box-shadow: 0 10px 22px rgba(25, 78, 48, 0.27);
}

.store-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(25, 78, 48, 0.34);
  filter: saturate(1.06);
}

.store-cta strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  opacity: 0.92;
}

.store-cta em {
  display: block;
  margin-top: -1px;
  font-style: normal;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.1;
}

.store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  font-size: 1.42rem;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.store-cta.is-disabled {
  background: #7a887e;
  border-color: #657268;
  box-shadow: none;
  filter: none;
}

.store-cta.is-disabled:hover {
  transform: none;
}

.web-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
  color: var(--brand-strong);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: border-color 180ms ease;
}

.web-cta:hover {
  border-color: #8ca38e;
}

.helper {
  margin: 12px 2px 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.hero-art {
  background: linear-gradient(150deg, #245033, #2e6340);
  border: 1px solid #2a5a37;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 22px 56px rgba(10, 30, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  touch-action: pan-y;
  padding: 0 2px;
}

.carousel-track {
  position: relative;
  width: calc(100% - 16px);
  margin: 0 auto;
  height: clamp(400px, 65vh, 620px);
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  width: min(72%, 255px);
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #b8c9b0;
  background: linear-gradient(140deg, #e9f2dd, #d6e7cc);
  box-shadow: 0 14px 36px rgba(23, 64, 43, 0.2);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  z-index: 1;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
  pointer-events: none;
  isolation: isolate;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 14, 0.18);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide.is-center {
  opacity: 1;
  z-index: 4;
  transform: translate(-50%, -50%) scale(1);
}

.carousel-slide.is-center::after {
  opacity: 0;
}

.carousel-slide.is-prev {
  opacity: 0.76;
  z-index: 3;
  transform: translate(calc(-50% - 34%), -50%) scale(0.89);
}

.carousel-slide.is-next {
  opacity: 0.76;
  z-index: 3;
  transform: translate(calc(-50% + 34%), -50%) scale(0.89);
}

.carousel-slide.is-prev::after,
.carousel-slide.is-next::after {
  opacity: 0.42;
}

.carousel-slide.is-hidden {
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.82);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 67, 40, 0.3);
  border-radius: 999px;
  background: rgba(250, 247, 237, 0.92);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 64, 43, 0.18);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.98);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.carousel-nav:focus-visible {
  outline: 2px solid #2f7b4f;
  outline-offset: 2px;
}

.footer {
  padding: 20px 0 26px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.fade-in,
.slide-up {
  opacity: 0;
  animation-duration: 560ms;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in {
  animation-name: fade-in;
}

.slide-up {
  animation-name: slide-up;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 150ms;
}

.delay-3 {
  animation-delay: 210ms;
}

.delay-4 {
  animation-delay: 260ms;
}

@media (min-width: 740px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
    gap: 24px;
    padding-top: 26px;
  }

  .hero-art {
    padding: 22px;
  }

  .carousel-track {
    width: calc(100% - 26px);
  }

  .carousel-slide {
    width: min(70%, 270px);
  }

  .carousel-slide.is-prev {
    transform: translate(calc(-50% - 37%), -50%) scale(0.89);
  }

  .carousel-slide.is-next {
    transform: translate(calc(-50% + 37%), -50%) scale(0.89);
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
  }

  .carousel-prev {
    left: 14px;
  }

  .carousel-next {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-up {
    opacity: 1;
    animation: none;
  }

  .carousel-slide,
  .carousel-slide::after,
  .carousel-nav {
    transition: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
