:root {
  --mist: #f7f8f4;
  --soft-mint: #eaf2ef;
  --ink: #223033;
  --muted: #607074;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --line-shadow: rgba(93, 112, 116, 0.12);
  --panel: rgba(255, 255, 255, 0.42);
  --focus: #1d6e73;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 46px);
  color: rgba(34, 48, 51, 0.76);
  background: rgba(247, 248, 244, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
}

.brand {
  font-size: 16px;
  font-weight: 700;
}

.site-nav nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  padding: 88px clamp(18px, 5vw, 58px) 38px;
  background: var(--mist);
}

.product-stage {
  position: absolute;
  inset: 54px 0 0;
  display: grid;
  place-items: center;
  opacity: 0.98;
}

.phone-shell {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 0.52;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(238, 246, 243, 0.54);
  box-shadow: 0 28px 70px rgba(79, 99, 103, 0.12);
  overflow: hidden;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 108px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(34, 48, 51, 0.88);
  z-index: 4;
}

.app-scene {
  position: absolute;
  inset: 0;
}

.glass-maze,
.preview-glass,
.mini-bowl,
.mini-ring,
.mini-bin {
  position: absolute;
  border: 5px solid var(--glass);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.76) inset,
    0 12px 28px var(--line-shadow);
  background: rgba(255, 255, 255, 0.08);
}

.maze-bowl {
  left: 16%;
  top: 28%;
  width: 68%;
  height: 16%;
  border-radius: 50%;
}

.maze-left,
.maze-right {
  top: 46%;
  width: 24%;
  height: 18%;
  border-radius: 50%;
}

.maze-left {
  left: 24%;
}

.maze-right {
  right: 24%;
}

.maze-bin {
  left: 18%;
  top: 63%;
  width: 64%;
  height: 18%;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.gummy-cloud {
  position: absolute;
  left: 20%;
  top: 34%;
  display: flex;
  align-items: flex-end;
  gap: 0;
  z-index: 5;
}

.gummy-cloud img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-left: -11px;
  filter: drop-shadow(0 8px 8px rgba(86, 78, 64, 0.12));
}

.gummy-cloud img:nth-child(2n) {
  transform: translateY(-8px) rotate(8deg);
}

.gummy-cloud img:nth-child(3n) {
  transform: translateY(7px) rotate(-10deg);
}

.landing-shadow {
  position: absolute;
  left: 21%;
  bottom: 12%;
  width: 58%;
  height: 6%;
  border-radius: 50%;
  background: rgba(69, 88, 93, 0.12);
  filter: blur(16px);
}

.hero-copy {
  position: relative;
  z-index: 8;
  max-width: 520px;
  padding-top: min(48vh, 420px);
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(37, 58, 61, 0.58);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(38px, 8vw, 78px);
  line-height: 0.98;
  font-weight: 800;
}

.lede {
  max-width: 490px;
  margin: 18px 0 0;
  color: rgba(34, 48, 51, 0.70);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.primary-action {
  color: #ffffff;
  background: #263638;
  box-shadow: 0 12px 22px rgba(38, 54, 56, 0.18);
}

.secondary-action {
  color: rgba(34, 48, 51, 0.78);
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.section {
  padding: 62px clamp(18px, 5vw, 58px);
  background: var(--soft-mint);
}

.section:nth-of-type(odd) {
  background: var(--mist);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card,
.screen-card {
  position: relative;
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.feature-card h3,
.screen-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 18px;
}

.feature-card p {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.screen-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screen-card {
  min-height: 240px;
}

.screen-card h3 {
  position: absolute;
  left: 16px;
  bottom: 14px;
}

.preview-glass {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
}

.jar-preview .preview-glass {
  width: 54%;
  height: 48%;
  border-radius: 8px 8px 24px 24px;
  border-bottom-width: 6px;
}

.circle-preview .preview-glass {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hourglass-preview .preview-glass {
  width: 58%;
  height: 58%;
  clip-path: polygon(16% 0, 84% 0, 58% 47%, 84% 100%, 16% 100%, 42% 47%);
}

.preview-gummies {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 48%;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.preview-gummies.top {
  top: 24%;
}

.preview-gummies img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  object-fit: contain;
}

.mini-bowl {
  left: 17%;
  top: 18%;
  width: 66%;
  height: 18%;
  border-radius: 50%;
}

.mini-ring {
  top: 43%;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.mini-ring.left {
  left: 24%;
}

.mini-ring.right {
  right: 24%;
}

.mini-bin {
  left: 18%;
  bottom: 22%;
  width: 64%;
  height: 18%;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.support-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 26px 18px 34px;
  color: rgba(34, 48, 51, 0.58);
  font-size: 13px;
  font-weight: 650;
  background: var(--mist);
}

.legal-page {
  min-height: 100svh;
  padding: 108px clamp(18px, 5vw, 58px) 56px;
  background: linear-gradient(180deg, var(--mist), var(--soft-mint));
}

.legal-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 60px rgba(79, 99, 103, 0.10);
}

.legal-panel h1 {
  max-width: 680px;
  font-size: clamp(34px, 6vw, 56px);
}

.legal-panel h2 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-panel p,
.legal-panel li {
  color: rgba(34, 48, 51, 0.74);
  font-size: 16px;
  line-height: 1.8;
}

.legal-panel ul {
  padding-left: 1.2em;
}

.text-link {
  color: #145f66;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .site-nav {
    padding: 14px 18px;
  }

  .site-nav nav {
    gap: 12px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 74px;
  }

  .product-stage {
    inset: 48px 0 0;
  }

  .phone-shell {
    width: min(350px, 92vw);
  }

  .hero-copy {
    padding-top: 50vh;
  }

  .gummy-cloud img {
    width: 40px;
    height: 40px;
  }

  .feature-grid,
  .screen-grid,
  .support-section {
    grid-template-columns: 1fr;
  }

  .screen-card {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gummy-cloud img {
    animation: settle 5.8s ease-in-out infinite;
  }

  .gummy-cloud img:nth-child(2n) {
    animation-delay: 0.4s;
  }

  @keyframes settle {
    0%, 100% {
      translate: 0 0;
    }
    50% {
      translate: 0 5px;
    }
  }
}
