/* ================================================
   Stoothie — main.css
   Product page for the stads student smoothie
   ================================================ */

/* ── Custom Properties ── */
:root {
  --c-bg:          #faf9f7;
  --c-dark:        #1a0a2e;
  --c-purple:      #7c3aed;
  --c-purple-d:    #6d28d9;
  --c-purple-l:    #ede9fe;
  --c-mint:        #06d6a0;
  --c-gold:        #fbbf24;
  --c-text:        #2d2040;
  --c-muted:       #7b6d8d;
  --c-white:       #ffffff;

  --ff:   'Poppins', system-ui, sans-serif;

  --r-sm:   8px;
  --r-md:  16px;
  --r-lg:  32px;
  --r-full: 9999px;

  --shadow-sm:  0 2px  8px rgba(124, 58, 237, .06);
  --shadow-md:  0 8px 24px rgba(124, 58, 237, .14);
  --shadow-lg:  0 20px 60px rgba(124, 58, 237, .2);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --t:    .3s var(--ease);
  --t-lg: .65s var(--ease);

  --container: min(1160px, 100% - 3rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Utility ── */
.container { width: var(--container); margin-inline: auto; }
.text-light { color: var(--c-white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.97) !important; }

.btn--primary {
  background: var(--c-purple);
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .35);
}
.btn--primary:hover {
  background: var(--c-purple-d);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .45);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, .4);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}
.btn--ghost-light {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--c-white);
  color: var(--c-purple);
  font-weight: 700;
}
.btn--white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn--large { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--nav {
  background: var(--c-purple);
  color: var(--c-white);
  padding: .5rem 1.25rem;
  font-size: .875rem;
}
.btn--nav:hover {
  background: var(--c-purple-d);
  box-shadow: 0 4px 16px rgba(124, 58, 237, .35);
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: .75rem;
  padding: .35rem 1rem;
  background: var(--c-purple-l);
  border-radius: var(--r-full);
}
.section-eyebrow--light {
  color: var(--c-white);
  background: rgba(255, 255, 255, .15);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--c-dark);
  letter-spacing: -.02em;
}
.section-header--light h2 { color: var(--c-white); }

/* ── Reveal Animation ── */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-lg), transform var(--t-lg);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  padding-block: .875rem;
}

.nav__brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.04em;
  transition: color var(--t);
  z-index: 101;
}
.nav__brand span { color: var(--c-mint); }
.nav.is-scrolled .nav__brand { color: var(--c-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: color var(--t);
}
.nav__links a:not(.btn):hover { color: var(--c-white); }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--c-muted); }
.nav.is-scrolled .nav__links a:not(.btn):hover { color: var(--c-dark); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  z-index: 101;
}
.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: background var(--t), transform var(--t), opacity var(--t);
}
.nav.is-scrolled .nav__burger span { background: var(--c-dark); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  background: linear-gradient(135deg, #1a0a2e 0%, #3b0764 45%, #7c3aed 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 75% 50%, rgba(6, 214, 160, .07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  padding: .4rem .9rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, .15);
}
.hero__eyebrow strong { color: var(--c-mint); }

.hero__heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}
.hero__heading em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-mint), #38e5b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .68);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-white);
  line-height: 1;
}
.stat span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  margin-top: .2rem;
}

/* ── Hero Visual (CSS smoothie cup) ── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.blob--1 {
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, .38);
  animation: blobPulse 7s ease-in-out infinite alternate;
}
.blob--2 {
  width: 200px; height: 200px;
  top: 12%; right: 6%;
  background: rgba(6, 214, 160, .28);
  animation: blobPulse 9s ease-in-out infinite alternate-reverse;
}
.blob--3 {
  width: 160px; height: 160px;
  bottom: 12%; left: 6%;
  background: rgba(251, 191, 36, .22);
  animation: blobPulse 11s ease-in-out infinite alternate;
}
@keyframes blobPulse {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.15) translate(12px, -12px); }
}
.blob--1 {
  animation-name: blobPulse1;
}
@keyframes blobPulse1 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 14px), calc(-50% - 14px)) scale(1.12); }
}

/* CSS-drawn smoothie cup */
.cup {
  position: relative;
  width: 160px;
  z-index: 2;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, .45));
  animation: cupFloat 4s ease-in-out infinite;
}
@keyframes cupFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.cup__straw {
  width: 11px;
  height: 150px;
  background: linear-gradient(180deg, #f0e6ff 0%, #c4b5fd 100%);
  border-radius: 6px 6px 3px 3px;
  position: absolute;
  top: -130px;
  right: 30px;
  transform: rotate(6deg);
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, .12);
}

.cup__body {
  width: 160px;
  height: 200px;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .28);
  clip-path: polygon(8% 0%, 92% 0%, 84% 100%, 16% 100%);
  position: relative;
  overflow: hidden;
}

.cup__liquid {
  position: absolute;
  inset: 0;
  top: 22%;
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 55%, #5b21b6 100%);
  overflow: hidden;
}

.cup__foam {
  position: absolute;
  top: -1px;
  left: -8%;
  right: -8%;
  height: 22px;
  background: rgba(255, 255, 255, .35);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.cup__bubble {
  position: absolute;
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
  animation: bubbleRise 3s ease-in infinite;
}
.cup__bubble--1 { width: 8px;  height: 8px;  left: 22%; animation-delay: 0s;    animation-duration: 2.8s; }
.cup__bubble--2 { width: 6px;  height: 6px;  left: 53%; animation-delay: 1.3s;  animation-duration: 3.4s; }
.cup__bubble--3 { width: 10px; height: 10px; left: 68%; animation-delay: .65s;  animation-duration: 2.5s; }

@keyframes bubbleRise {
  0%   { transform: translateY(110%) scale(0);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-10px) scale(1); opacity: 0; }
}

.cup__base {
  width: 120px;
  height: 14px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .14);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  border-radius: 0 0 6px 6px;
}

/* ═══════════════════════════════════════════
   FEATURES / ABOUT
═══════════════════════════════════════════ */
.features {
  padding: 7rem 0;
  background: var(--c-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(124, 58, 237, .07);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FLAVORS
═══════════════════════════════════════════ */
.flavors {
  padding: 7rem 0;
  background: linear-gradient(160deg, #1a0a2e 0%, #3b0764 100%);
}

.flavors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.flavor-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: pointer;
}
.flavor-card:hover,
.flavor-card--active {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .2);
}

.flavor-card__visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.flavor-card__blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 55%, var(--flavor-color-light), transparent 65%);
  opacity: .25;
}
.flavor-card__emoji {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .28));
  animation: emojiFloat 3.2s ease-in-out infinite;
}
@keyframes emojiFloat {
  0%, 100% { transform: translateY(0)    rotate(-3deg); }
  50%       { transform: translateY(-9px) rotate( 3deg); }
}

.flavor-card__body { padding: 1.5rem 1.5rem 1.75rem; }

.flavor-card__badges { margin-bottom: .75rem; }
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
}
.badge--popular { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.badge--new     { background: rgba(6, 214, 160, .15);  color: var(--c-mint); }
.badge--healthy { background: rgba(16, 185, 129, .15); color: #34d399; }

.flavor-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.flavor-card p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.flavor-card__pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, .7);
}

/* ═══════════════════════════════════════════
   INGREDIENTS
═══════════════════════════════════════════ */
.ingredients {
  padding: 7rem 0;
  background: var(--c-bg);
}

.ingredients__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

/* Orbit diagram */
.ingredients__orbit {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.orbit__ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px dashed rgba(124, 58, 237, .2);
  animation: orbitSpin 24s linear infinite;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.orbit__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--c-purple), #5b21b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: .02em;
  box-shadow: 0 8px 32px rgba(124, 58, 237, .4);
  z-index: 2;
}

.orbit__satellite {
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  background: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--t);
}
.orbit__satellite--1 { transform: rotate(  0deg) translate(150px) rotate(   0deg); }
.orbit__satellite--2 { transform: rotate( 60deg) translate(150px) rotate( -60deg); }
.orbit__satellite--3 { transform: rotate(120deg) translate(150px) rotate(-120deg); }
.orbit__satellite--4 { transform: rotate(180deg) translate(150px) rotate(-180deg); }
.orbit__satellite--5 { transform: rotate(240deg) translate(150px) rotate(-240deg); }
.orbit__satellite--6 { transform: rotate(300deg) translate(150px) rotate(-300deg); }

.ingredients__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ingredient {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(124, 58, 237, .07);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.ingredient:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.ingredient__icon { font-size: 2rem; flex-shrink: 0; }
.ingredient strong { display: block; font-size: .95rem; color: var(--c-dark); font-weight: 600; }
.ingredient p { font-size: .8rem; color: var(--c-muted); margin: 0; }

/* ═══════════════════════════════════════════
   CTA / ORDER
═══════════════════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  background: linear-gradient(140deg, var(--c-purple) 0%, #06d6a0 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-section__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-section__inner h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--c-white);
  margin: .75rem 0 1.25rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.cta-section__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.cta-section__info {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.info-chip {
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-full);
  color: var(--c-white);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  padding: 3rem 0 2rem;
  background: var(--c-dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 2rem;
}
.footer__logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.04em;
  margin-bottom: .25rem;
}
.footer__logo span { color: var(--c-mint); }
.footer__tagline { font-size: .83rem; color: rgba(255, 255, 255, .35); }
.footer__tagline strong { color: rgba(255, 255, 255, .65); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .45);
  transition: color var(--t);
}
.footer__nav a:hover { color: var(--c-white); }
.footer__bottom p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .25);
  text-align: center;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 4rem;
    text-align: center;
  }
  .hero__sub    { margin-inline: auto; }
  .hero__cta    { justify-content: center; }
  .hero__stats  { justify-content: center; }
  .hero__visual { height: 360px; order: -1; }

  .ingredients__layout { grid-template-columns: 1fr; gap: 3rem; }
  .ingredients__orbit  { width: 300px; height: 300px; }
  .orbit__satellite--1 { transform: rotate(  0deg) translate(125px) rotate(   0deg); }
  .orbit__satellite--2 { transform: rotate( 60deg) translate(125px) rotate( -60deg); }
  .orbit__satellite--3 { transform: rotate(120deg) translate(125px) rotate(-120deg); }
  .orbit__satellite--4 { transform: rotate(180deg) translate(125px) rotate(-180deg); }
  .orbit__satellite--5 { transform: rotate(240deg) translate(125px) rotate(-240deg); }
  .orbit__satellite--6 { transform: rotate(300deg) translate(125px) rotate(-300deg); }

  .nav__links  { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 46, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav__links.nav__links--open { display: flex; }
  .nav__links a { color: var(--c-white) !important; font-size: 1.1rem; }
}

@media (max-width: 600px) {
  .hero     { padding: 6rem 1.5rem 3rem; }
  .features { padding: 5rem 0; }
  .flavors  { padding: 5rem 0; }
  .flavors__grid  { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .cta-section    { padding: 5rem 0; }
}
