/* ═══════════════════════════════════════════
   Home Page — Premium Coffee Experience
   ═══════════════════════════════════════════ */

.home-page {
  --home-glow: rgba(196, 163, 90, 0.45);
  overflow-x: clip;
}

/* ─── Hero ─── */
.home-hero {
  --hero-enter-base: 0.08s;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5rem;
  background: #080504;
  overflow: hidden;
}

/* Aurora background */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: hero-aurora-drift 18s ease-in-out infinite;
}

.hero-aurora-blob-1 {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(107, 68, 35, 0.7) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 22s;
}


.hero-aurora-blob-2 {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.25) 0%, transparent 70%);
  bottom: -15%;
  left: 10%;
  animation-duration: 16s;
  animation-delay: -5s;
}

.hero-aurora-blob-3 {
  width: 30vw;
  height: 30vw;
  max-width: 350px;
  max-height: 350px;
  background: radial-gradient(circle, rgba(74, 44, 42, 0.5) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes hero-aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 5, 4, 0.85) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 163, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 163, 90, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-cursor-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.home-hero.hero-glow-active .hero-cursor-glow {
  opacity: 1;
}

.home-beans-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Realistic Arabica coffee bean */
.coffee-bean {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.coffee-bean svg {
  width: var(--coffee-bean-w, 28px);
  height: var(--coffee-bean-h, 40px);
  display: block;
}

.coffee-bean--xs svg { --coffee-bean-w: 16px; --coffee-bean-h: 23px; }
.coffee-bean--sm svg { --coffee-bean-w: 22px; --coffee-bean-h: 31px; }
.coffee-bean--md svg { --coffee-bean-w: 30px; --coffee-bean-h: 43px; }
.coffee-bean--lg svg { --coffee-bean-w: 40px; --coffee-bean-h: 57px; }
.coffee-bean--xl svg { --coffee-bean-w: 52px; --coffee-bean-h: 74px; }

.coffee-bean--roast-light svg { filter: brightness(1.18) saturate(0.9); }
.coffee-bean--roast-dark svg { filter: brightness(0.82) saturate(1.1); }

.home-bean.coffee-bean {
  position: absolute;
  opacity: var(--bean-opacity, 0.55);
  animation: home-bean-float var(--bean-duration, 12s) ease-in-out infinite;
  animation-delay: var(--bean-delay, 0s);
  user-select: none;
}

.home-bean.coffee-bean svg {
  width: var(--bean-size, 28px);
  height: calc(var(--bean-size, 28px) * 1.43);
}

.home-journey-icon .coffee-bean svg {
  --coffee-bean-w: 36px;
  --coffee-bean-h: 54px;
}

.home-cat-icon .coffee-bean svg {
  --coffee-bean-w: 44px;
  --coffee-bean-h: 66px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@keyframes home-bean-float {
  0%, 100% { transform: translateY(0) rotate(var(--bean-rotate, 0deg)); }
  50% { transform: translateY(-40px) rotate(calc(var(--bean-rotate, 0deg) + 20deg)); }
}

/* Layout */
.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 3.5rem;
  align-items: center;
}

/* Entrance animations */
.hero-enter {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-enter-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--enter-i, 0) * var(--hero-enter-base) + 0.15s);
}

.hero-showcase.hero-enter {
  transform: translateY(28px) scale(0.96);
  animation-name: hero-enter-showcase;
}

@keyframes hero-enter-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-showcase {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Social proof */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #080504;
  margin-right: -10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream);
  background: hsl(var(--av-hue, 32), 40%, 35%);
}

.hero-avatars-more {
  background: var(--gold) !important;
  color: var(--coffee-dark) !important;
  font-size: 0.85rem !important;
}

.hero-social-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stars {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 2px;
}

.hero-social-text > span:last-child {
  font-size: 0.78rem;
  color: rgba(245, 230, 211, 0.55);
}

/* Badge */
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 163, 90, 0.22);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.home-hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: hero-live-pulse 2s ease-in-out infinite;
}

@keyframes hero-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-badge-sep {
  opacity: 0.3;
}

/* Title */
.home-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin: 0 0 1.4rem;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
}

.hero-word {
  display: inline-block;
  margin-left: 0.12em;
  animation: hero-word-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.hero-title-line:nth-child(1) .hero-word:nth-child(1) { animation-delay: 0.35s; }
.hero-title-line:nth-child(1) .hero-word:nth-child(2) { animation-delay: 0.45s; }
.hero-title-line:nth-child(1) .hero-word:nth-child(3) { animation-delay: 0.55s; }
.hero-title-line:nth-child(2) .hero-word:nth-child(1) { animation-delay: 0.65s; }
.hero-title-line:nth-child(2) .hero-word:nth-child(2) { animation-delay: 0.75s; }
.hero-title-line:nth-child(2) .hero-word:nth-child(3) { animation-delay: 0.85s; }

@keyframes hero-word-pop {
  from { opacity: 0; transform: translateY(20px) rotateX(40deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-word-gold {
  background: linear-gradient(135deg, #e8d5a3 0%, #c4a35a 40%, #f0dfa0 60%, #c4a35a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-word-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, hero-shimmer 5s linear 1s infinite;
}

@keyframes hero-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-word-outline {
  -webkit-text-stroke: 1.5px rgba(196, 163, 90, 0.5);
  -webkit-text-fill-color: transparent;
}

.home-hero-desc {
  font-size: 1.08rem;
  color: rgba(245, 230, 211, 0.65);
  margin: 0 0 1.6rem;
  max-width: 460px;
  line-height: 1.9;
}

/* Trust chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  font-size: 0.78rem;
  color: rgba(245, 230, 211, 0.75);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-chip:hover {
  border-color: rgba(196, 163, 90, 0.35);
  background: rgba(196, 163, 90, 0.08);
}

.hero-chip i {
  font-style: normal;
}

/* CTA buttons */
.home-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.6rem;
  background: linear-gradient(135deg, #d4b06a 0%, #c4a35a 50%, #b8923f 100%);
  color: var(--coffee-dark);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(196, 163, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: hero-btn-shine 4s ease-in-out infinite;
}

@keyframes hero-btn-shine {
  0%, 75%, 100% { transform: translateX(-100%); }
  90% { transform: translateX(100%); }
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(196, 163, 90, 0.5);
}

.btn-hero-icon {
  font-size: 1.1rem;
}

.btn-hero-arrow {
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-hero-arrow {
  transform: translateX(-4px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(196, 163, 90, 0.35);
  transform: translateY(-2px);
}

.btn-hero-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.15);
  border: 1px solid rgba(196, 163, 90, 0.3);
  position: relative;
  flex-shrink: 0;
}

.btn-hero-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--gold);
}

/* Glass stats */
.hero-stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stat-glass {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  flex: 1;
  min-width: 130px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hero-stat-glass:hover {
  border-color: rgba(196, 163, 90, 0.3);
  transform: translateY(-3px);
}

.hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(196, 163, 90, 0.12);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-stat-glass strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.hero-stat-glass span {
  font-size: 0.72rem;
  color: rgba(245, 230, 211, 0.5);
}

/* Showcase */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
  transition: transform 0.15s ease-out;
}

.showcase-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 90, 0.15);
  animation: showcase-ripple 4s ease-out infinite;
}

.showcase-ripple-1 { width: 70%; height: 70%; animation-delay: 0s; }
.showcase-ripple-2 { width: 85%; height: 85%; animation-delay: 1.3s; }
.showcase-ripple-3 { width: 100%; height: 100%; animation-delay: 2.6s; }

@keyframes showcase-ripple {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.15); }
}

.showcase-orbit {
  position: absolute;
  inset: 0;
}

.showcase-orbit-track {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(196, 163, 90, 0.12);
  animation: showcase-orbit-spin 40s linear infinite;
}

@keyframes showcase-orbit-spin {
  to { transform: rotate(360deg); }
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: rgba(20, 12, 8, 0.75);
  border: 1px solid rgba(196, 163, 90, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 4;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.float-card:hover {
  transform: translateY(-6px) scale(1.04) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 163, 90, 0.15);
  z-index: 10;
}

.float-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.float-card:hover .float-card-glow {
  opacity: 1;
}

.float-card-bean {
  flex-shrink: 0;
}

.float-card-bean svg {
  --coffee-bean-w: 36px;
  --coffee-bean-h: 51px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.float-card-info strong {
  display: block;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
}

.float-card-info small {
  color: rgba(245, 230, 211, 0.5);
  font-size: 0.72rem;
}

.float-card-1 {
  top: 6%;
  left: -2%;
  animation: float-card-1 6s ease-in-out infinite;
}

.float-card-2 {
  top: 18%;
  right: -6%;
  animation: float-card-2 7s ease-in-out infinite;
}

.float-card-3 {
  bottom: 18%;
  left: -4%;
  animation: float-card-3 5.5s ease-in-out infinite;
}

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes float-card-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Espresso cup */
.hero-espresso {
  position: relative;
  z-index: 3;
  animation: espresso-float 5s ease-in-out infinite;
}

@keyframes espresso-float {
  0%, 100% {
    transform: perspective(600px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)) translateY(0);
  }
  50% {
    transform: perspective(600px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)) translateY(-16px);
  }
}

.espresso-steam {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 70px;
  pointer-events: none;
}

.steam-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.steam-path {
  fill: none;
  stroke: rgba(245, 230, 211, 0.35);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: steam-draw 3s ease-in-out infinite;
}

.steam-path-1 { animation-delay: 0s; }
.steam-path-2 { animation-delay: 0.8s; }
.steam-path-3 { animation-delay: 1.6s; }

@keyframes steam-draw {
  0% { stroke-dashoffset: 60; opacity: 0; }
  20% { opacity: 0.8; }
  80% { stroke-dashoffset: 0; opacity: 0.4; }
  100% { stroke-dashoffset: -20; opacity: 0; }
}

.espresso-cup {
  width: 160px;
  height: 125px;
  background: linear-gradient(160deg, #faf3ea 0%, #d9c8b0 100%);
  border-radius: 0 0 32px 32px;
  position: relative;
  box-shadow:
    inset -10px 0 24px rgba(0, 0, 0, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(196, 163, 90, 0.25);
}

.espresso-cup::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -8px;
  right: -8px;
  height: 20px;
  background: linear-gradient(180deg, #fff8f0, #e8d5c0);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.espresso-body {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 78%;
  background: linear-gradient(180deg, #4a2c1a 0%, #1a0f0a 100%);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.espresso-crema {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(90deg, #8b6914, #d4a84b, #c4a35a, #8b6914);
  background-size: 200% 100%;
  border-radius: 50%;
  animation: crema-shimmer 4s linear infinite;
  z-index: 2;
}

@keyframes crema-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.crema-bubble {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 4px;
  animation: crema-bubble 2.5s ease-in-out infinite;
}

.crema-bubble:nth-child(1) { left: 20%; animation-delay: 0s; }
.crema-bubble:nth-child(2) { left: 50%; animation-delay: 0.8s; width: 4px; height: 4px; }
.crema-bubble:nth-child(3) { left: 75%; animation-delay: 1.5s; }

@keyframes crema-bubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-4px) scale(1.2); opacity: 1; }
}

.espresso-handle {
  position: absolute;
  right: -36px;
  top: 22px;
  width: 40px;
  height: 56px;
  border: 11px solid #d4c4b0;
  border-left: none;
  border-radius: 0 24px 24px 0;
}

.espresso-saucer {
  width: 200px;
  height: 28px;
  background: linear-gradient(180deg, #ede0d0, #c9b49a);
  border-radius: 50%;
  margin: -6px auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.espresso-shadow {
  width: 140px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  margin: 12px auto 0;
  animation: espresso-shadow 5s ease-in-out infinite;
}

@keyframes espresso-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50% { transform: scaleX(0.85); opacity: 0.35; }
}

.espresso-drip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #3d2314;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: espresso-drip 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes espresso-drip {
  0%, 70%, 100% { opacity: 0; transform: translateX(-50%) translateY(0) scaleY(1); }
  75% { opacity: 1; }
  90% { opacity: 0.8; transform: translateX(-50%) translateY(18px) scaleY(1.8); }
}

.showcase-tag {
  position: absolute;
  bottom: 8%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(196, 163, 90, 0.15);
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  z-index: 5;
  animation: showcase-tag-in 1s ease 1.2s both;
}

@keyframes showcase-tag-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.showcase-tag-pulse {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: hero-live-pulse 2s ease-in-out infinite;
}

/* Scroll hint */
.home-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(245, 230, 211, 0.35);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.3s ease;
  animation: scroll-hint-bob 2.5s ease-in-out infinite;
}

.home-scroll-hint:hover {
  color: var(--gold);
}

.scroll-wheel {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(196, 163, 90, 0.25);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-wheel-dot 2s ease-in-out infinite;
}

@keyframes scroll-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes scroll-wheel-dot {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 20px; }
}

/* ─── Marquee ─── */
.home-marquee {
  background: var(--coffee-brown);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(196, 163, 90, 0.15);
  border-bottom: 1px solid rgba(196, 163, 90, 0.15);
}

.home-marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: home-marquee 30s linear infinite;
  width: max-content;
}

.home-marquee-track span {
  color: rgba(245, 230, 211, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.home-marquee-track .dot {
  color: var(--gold);
  font-size: 0.5rem;
}

@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Journey (Bean to Cup) ─── */
.home-journey {
  background: var(--cream-light);
  padding: 5rem 0;
  position: relative;
}

.home-journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.home-journey-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.3;
}

.home-journey-step {
  text-align: center;
  position: relative;
}

.home-journey-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background: var(--white);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.home-journey-step:hover .home-journey-icon {
  transform: translateY(-8px) scale(1.08);
  box-shadow: var(--shadow-lg);
}

.home-journey-step h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--coffee-brown);
}

.home-journey-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.home-journey-num {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--coffee-dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}

/* ─── Categories Bento ─── */
.home-categories {
  padding: 5rem 0;
  background: var(--white);
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 1.2rem;
}

.home-cat-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  grid-column: span 4;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

.home-cat-card:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.home-cat-card:nth-child(2) { grid-column: span 3; }
.home-cat-card:nth-child(3) { grid-column: span 3; }
.home-cat-card:nth-child(4) { grid-column: span 3; }
.home-cat-card:nth-child(5) { grid-column: span 3; }
.home-cat-card:nth-child(6) { grid-column: span 6; }

.home-cat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(26, 15, 10, 0.25);
}

.home-cat-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.home-cat-card:hover .home-cat-bg {
  transform: scale(1.1);
}

.home-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 7, 5, 0.92) 0%, rgba(13, 7, 5, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.home-cat-icon {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.home-cat-card:hover .home-cat-icon {
  transform: scale(1.2) rotate(-8deg);
}

.home-cat-overlay h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}

.home-cat-card:hover .home-cat-overlay h3 {
  transform: translateY(0);
}

.home-cat-overlay p {
  color: rgba(245, 230, 211, 0.65);
  font-size: 0.85rem;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-cat-card:hover .home-cat-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.home-cat-arrow {
  position: absolute;
  bottom: 1.6rem;
  left: 1.6rem;
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--coffee-dark);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-cat-card:hover .home-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Featured Products ─── */
.home-featured {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--white) 100%);
  position: relative;
}

.home-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.3), transparent);
}

.home-products-grid .product-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.home-products-grid .product-card.visible {
  animation: home-card-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes home-card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Features Premium ─── */
.home-features {
  background: var(--coffee-dark);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.home-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196, 163, 90, 0.08) 0%, transparent 60%);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.home-feature {
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  transition: background 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.home-feature::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-feature:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
  border-color: rgba(196, 163, 90, 0.25);
}

.home-feature:hover::before {
  opacity: 1;
}

.home-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: rgba(196, 163, 90, 0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-feature:hover .home-feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.home-feature h3 {
  color: var(--cream);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.home-feature p {
  color: rgba(245, 230, 211, 0.55);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ─── Latest ─── */
.home-latest {
  padding: 5rem 0;
}

/* ─── CTA Premium ─── */
.home-cta {
  padding: 5rem 0 6rem;
}

.home-cta-box {
  position: relative;
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 50%, #2c1810 100%);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(196, 163, 90, 0.2);
}

.home-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(196, 163, 90, 0.15) 0%, transparent 60%);
}

.home-cta-beans {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-cta-bean {
  position: absolute;
  opacity: 0.12;
  animation: home-cta-bean-drift 15s linear infinite;
}

.home-cta-bean svg {
  width: var(--cta-bean-size, 32px);
  height: calc(var(--cta-bean-size, 32px) * 1.43);
}

@keyframes home-cta-bean-drift {
  from { transform: translateY(100%) rotate(0deg); }
  to { transform: translateY(-100%) rotate(360deg); }
}

.home-cta-box h2 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
  position: relative;
}

.home-cta-box p {
  color: rgba(245, 230, 211, 0.65);
  margin: 0 auto 2rem;
  max-width: 480px;
  position: relative;
}

.home-cta-box .btn-primary {
  position: relative;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
}

/* ─── Reveal variants ─── */
.home-scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.home-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-stagger-1 { transition-delay: 0.1s; }
.home-stagger-2 { transition-delay: 0.2s; }
.home-stagger-3 { transition-delay: 0.3s; }
.home-stagger-4 { transition-delay: 0.4s; }
.home-stagger-5 { transition-delay: 0.5s; }
.home-stagger-6 { transition-delay: 0.6s; }
.home-stagger-7 { transition-delay: 0.15s; }
.home-stagger-8 { transition-delay: 0.2s; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero-desc {
    margin: 0 auto 1.6rem;
  }

  .hero-social-proof,
  .hero-chips,
  .home-hero-actions,
  .hero-stats-row {
    justify-content: center;
  }

  .hero-social-proof {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-showcase {
    order: -1;
    max-width: 360px;
  }

  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .float-card-3 { left: 0; }

  .home-journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-journey-steps::before {
    display: none;
  }

  .home-cat-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .home-cat-card,
  .home-cat-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .home-cat-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-stats-row {
    flex-direction: column;
  }

  .hero-stat-glass {
    min-width: unset;
  }

  .hero-stat-glass strong {
    font-size: 1.2rem;
  }

  .float-card {
    padding: 0.55rem 0.75rem;
  }

  .float-card-info strong {
    font-size: 0.75rem;
  }

  .espresso-cup {
    width: 130px;
    height: 102px;
  }

  .espresso-saucer {
    width: 165px;
  }

  .home-journey-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-cat-grid {
    grid-template-columns: 1fr;
  }

  .home-cat-card:nth-child(1) {
    grid-column: span 1;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-cup {
    width: 110px;
    height: 88px;
  }

  .home-saucer {
    width: 140px;
  }
}

/* ─── Test project notice modal ─── */
.home-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-notice-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.home-notice-modal[hidden] {
  display: none;
}

.home-notice-modal.is-open[hidden] {
  display: flex;
}

.home-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 4, 0.72);
  backdrop-filter: blur(6px);
}

.home-notice-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  background: linear-gradient(160deg, #1f1410 0%, #120c09 100%);
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: var(--cream);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.home-notice-modal.is-open .home-notice-dialog {
  transform: translateY(0) scale(1);
}

.home-notice-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.home-notice-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.15);
  border: 1px solid rgba(196, 163, 90, 0.3);
  border-radius: 999px;
}

.home-notice-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream-light);
}

.home-notice-text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(245, 230, 211, 0.88);
}

.home-notice-text strong {
  color: var(--gold-light);
  font-weight: 700;
}

.home-notice-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--coffee-dark);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.home-notice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 163, 90, 0.45);
}

.home-notice-btn:active {
  transform: translateY(0);
}

body.home-notice-open {
  overflow: hidden;
}
