/* ═══════════════════════════════════════════════
   PalmGift Scanner – Landing Page
   Light warm-yellow background, dark text
   Floaters visible desktop only
════════════════════════════════════════════════ */

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

:root {
  --gold:         #FFD700;
  --gold-dark:    #E6A800;
  --gold-light:   #FFF5CC;
  --orange:       #fcdb03;
  --brown:        #bd812b;
  --amber:        #FFAB00;
  --white:        #FFFFFF;
  --black:        #0A0A0A;

  /* ── LIGHT theme tokens ── */
  --bg:           #FFFBEE;          /* warm cream white */
  --bg-2:         #FFF8DC;          /* slightly warmer */
  --text:         #1A1000;          /* near-black */
  --text-muted:   #6B5020;          /* dark gold-brown */
  --card-bg:      rgba(255,255,255,0.75);
  --card-border:  rgba(255,200,0,0.3);
  --shadow-gold:  0 8px 40px rgba(255,180,0,0.25);

  --radius:       20px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Soft radial BG gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(255,220,50,0.22), transparent),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(255,160,0,0.14), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Blob BG (subtle on light) ── */
.blob-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #FFD700, transparent);
  top: -180px; left: -180px;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #FF8C00, transparent);
  top: 45%; right: -140px;
  animation-delay: -5s; animation-duration: 11s;
}
.blob-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #FFAB00, transparent);
  bottom: -100px; left: 25%;
  animation-delay: -8s; animation-duration: 17s;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 70px) scale(1.12); }
}

/* ── Particles (gold dots, subtler on light) ── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-dark);
  opacity: 0;
  animation: particleFly var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particleFly {
  0%   { opacity: 0;   transform: translateY(100vh) scale(0); }
  20%  { opacity: 0.45; }
  80%  { opacity: 0.2; }
  100% { opacity: 0;   transform: translateY(-30px) scale(1.2); }
}

/* ══════════════════════════════════════════════
   HERO PAGE
══════════════════════════════════════════════ */
.hero-page {
  position: relative;
  z-index: 5;
  /* min-height: 100dvh; */
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;        /* clips floaters at edges */
  padding-bottom: 60px;
}

/* ── Logo header ── */
.hero-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
  position: relative;
  z-index: 10;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  /* logo has dark text — no filter needed on light bg */
  filter: drop-shadow(0 2px 8px rgba(180,120,0,0.2));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 2px 8px  rgba(180,120,0,0.2)); }
  50%       { filter: drop-shadow(0 4px 18px rgba(255,180,0,0.45)); }
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 10;
  margin-top: 36px;
  text-align: center;
  padding: 0 28px;
  max-width: 520px;
  animation: fadeSlideUp 0.9s ease both 0.1s;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,200,0,0.12);
  border: 1px solid rgba(200,140,0,0.25);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

/* Giant bold text */
.hero-title {
  font-size: clamp(48px, 14vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);       /* dark on light bg */
  margin-bottom: 22px;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--gold-dark), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(15px, 4vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA Button ── */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255,180,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 50px rgba(255,160,0,0.55);
}

.btn-cta:active { transform: scale(0.97); }

.btn-cta-icon { display: flex; align-items: center; justify-content: center; }

.btn-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.btn-cta-main {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.btn-cta-sub {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.2px;
  line-height: 1;
}

.btn-cta-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 2.8s infinite;
}

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

.btn-cta--large { font-size: 19px; padding: 20px 46px; }

.hero-micro {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(80,50,0,0.45);
}

/* ══════════════════════════════════════════════
   FLOATERS
   Desktop only — hidden on mobile to avoid
   half-visible cards bleeding off edges
══════════════════════════════════════════════ */
.floater {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* background: rgba(255,255,255,0.82); */
  /* border: 1px solid rgba(200,160,0,0.25); */
  border-radius: 18px;
  padding: 14px 16px 10px;
  backdrop-filter: blur(12px);
  pointer-events: none;
  user-select: none;
  /* box-shadow: 0 8px 28px rgba(180,120,0,0.15); */
  animation: floatCard var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  z-index: 8;
  /* hidden by default; shown ≥768px */
  display: none;
}

@keyframes floatCard {
  0%   { transform: translateY(0)    rotate(var(--rot-s, -4deg)); }
  50%  { transform: translateY(-18px) rotate(var(--rot-e, 4deg)); }
  100% { transform: translateY(0)    rotate(var(--rot-s, -4deg)); }
}

.floater-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* Positions */
.floater-1 { top: 11%; left: 2%;   --dur:5.5s; --d:0s;   --rot-s:-8deg; --rot-e:2deg; }
.floater-2 { top: 10%; right: 3%;  --dur:7s;   --d:-2s;  --rot-s:6deg;  --rot-e:-4deg; }
.floater-3 { bottom:22%; right:3%; --dur:6.5s; --d:-1s;  --rot-s:4deg;  --rot-e:-6deg; }
.floater-4 { bottom:3%; left:3%;  --dur:8s;   --d:-3s;  --rot-s:-5deg; --rot-e:3deg; }
.floater-5 { top:46%; right: 4%;   --dur:6s;   --d:-0.5s;--rot-s:0deg;  --rot-e:10deg; }
.floater-6 { bottom:8%; right:20%; --dur:5s;   --d:-4s;  --rot-s:-3deg; --rot-e:5deg; }

/* SVG sizing */
.svg-date, .svg-nut, .svg-date-cluster { width: 52px; height: auto; }
.svg-almond  { width: 40px; height: auto; }
.svg-coin    { width: 50px; height: auto; }
.svg-coin-sm { width: 38px; height: auto; }

/* ── Wave Divider ── */
.wave-divider { line-height: 0; position: relative; z-index: 5; }
.wave-divider svg { width: 100%; display: block; }

/* ══ Shared section styles ══ */
.section-title {
  text-align: center;
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-dark), var(--brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 16px;
}

/* ── How It Works ── */
.how-it-works {
  position: relative;
  z-index: 5;
  padding: 1rem 1rem;
  background: var(--bg-2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 36px auto 0;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(180,120,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.step-num {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 38px;
  font-weight: 900;
  color: rgba(180,120,0,0.1);
  line-height: 1;
}

.step-visual {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-card h3 { font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── Step 01 OR row ── */
.step-visual-or {
  gap: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-height: 72px;
}

/* Palm SVG — fixed height so it matches logo */
.step-palm-svg {
  width: auto;
  height: 64px;
  flex-shrink: 0;
}

/* OR badge pill */
.or-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgba(200,140,0,0.3);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* Logo in step card — same height as SVG */
.step-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Step 03 gift box ── */
.step-gift {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

/* Radial glow behind gift */
.step-gift-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,0,0.25), transparent 70%);
  animation: stepGlowPulse 2s ease-in-out infinite;
}

@keyframes stepGlowPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 1; }
}

/* Gift emoji with bounce + gentle shake */
.step-gift-icon {
  font-size: 52px;
  line-height: 1;
  position: relative;
  z-index: 1;
  animation: stepGiftBounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(200,100,0,0.3));
}

@keyframes stepGiftBounce {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  25%       { transform: translateY(-6px) rotate(-4deg); }
  75%       { transform: translateY(-4px) rotate(4deg); }
}

/* ── Rewards ── */
/* ════════════════════════════════════════
   REWARDS BUBBLE LAYOUT
   4 prize circles float freely in a field
   of decorative background glow bubbles
════════════════════════════════════════ */
.rewards-section {
  position: relative;
  z-index: 5;
  padding: 2rem;
  background: var(--bg);
  overflow: hidden;
}

/* ── Bubble field container ── */
.rewards-bubbles {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;   /* stagger via margin-top on each bubble */
  gap: 24px 20px;
  max-width: 680px;
  margin: 48px auto 0;
  padding: 20px 8px 40px;
}

/* ── Decorative glow blobs behind prizes ── */
.deco-bub {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,215,0,0.18), transparent 70%);
  animation: decoPulse var(--dp-dur, 7s) ease-in-out infinite;
  animation-delay: var(--dp-d, 0s);
}

.deco-bub-1 { width: 260px; height: 260px; top: -40px;   left: -60px;  --dp-dur:8s;  --dp-d:0s;   }
.deco-bub-2 { width: 200px; height: 200px; top: 10%;     right: -50px; --dp-dur:10s; --dp-d:-3s;  }
.deco-bub-3 { width: 180px; height: 180px; bottom: -30px;left: 30%;    --dp-dur:9s;  --dp-d:-5s;  }

@keyframes decoPulse {
  0%,100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1;   }
}

/* ── Prize bubble (shared) ── */
.pb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  animation: pbWave var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* Staggered vertical offsets — creates wave rhythm */
.pb-1 { margin-top: 0;   }
.pb-2 { margin-top: 50px;}
.pb-3 { margin-top: 20px;}
.pb-4 { margin-top: 60px;}

@keyframes pbWave {
  0%,100% { transform: translateY(0)    rotate(-1.5deg) scale(1);    }
  50%      { transform: translateY(-22px) rotate(1.5deg)  scale(1.04); }
}

/* ── Circle container – glass bubble ── */
.pb-circle {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.75),
    inset 0 -4px 12px rgba(0,0,0,0.08),
    0 14px 40px rgba(0,0,0,0.14),
    0 2px 8px rgba(255,255,255,0.25);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

.pb-circle:hover {
  transform: scale(1.08);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.85),
    inset 0 -4px 12px rgba(0,0,0,0.1),
    0 20px 50px rgba(0,0,0,0.2),
    0 4px 16px rgba(255,255,255,0.35);
}

.pb-circle img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Subtle tinted glass per prize */
.pb-gold   { background: rgba(255,215,0,0.22); }
.pb-silver { background: rgba(200,215,225,0.20); }
.pb-bronze { background: rgba(255,155,60,0.20); }
.pb-purple { background: rgba(175,95,255,0.22); }

/* ── Labels ── */
.pb-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.pb-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -6px;
}

/* ── Mobile: 2×2 grid, no stagger ── */
@media (max-width: 520px) {
  .rewards-bubbles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    gap: 32px 12px;
  }

  /* Remove stagger on mobile — even grid */
  .pb-1, .pb-2, .pb-3, .pb-4 { margin-top: 0; }

  /* Alternate rows still get slight offset for rhythm */
  .pb-2, .pb-4 { margin-top: 20px; }

  .pb-circle { width: 110px; height: 110px; }
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 100px 24px;
  overflow: hidden;
  background: var(--bg-2);
}

.cta-blob {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(26px, 7vw, 50px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
}

.cta-section p { font-size: 17px; color: var(--text-muted); margin-bottom: 34px; }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(200,160,0,0.2);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ── Keyframes ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ Responsive ══ */

/* Mobile: clean hero, no floaters */
@media (max-width: 767px) {
  .floater { display: flex !important; }
  .hero-title { letter-spacing: -1px; }
  .hero-content { margin-top: 28px; }
}

/* Desktop: show floaters */
@media (min-width: 768px) {
  .floater { display: flex; }
  /* Give more room for floaters */
  .hero-content { max-width: 480px; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 96px; }
}
