:root {
  --nav-h: 64px;
  --terracotta: #E2725B;
  --terracotta-dark: #C95A42;
  --terracotta-light: #F0A090;
  --pandan: #4F7942;
  --pandan-light: #7AAB6D;
  --pandan-pale: #D6E8D1;
  --oat: #F5F1E9;
  --oat-dark: #EDE7D8;
  --oat-darker: #DDD5C2;
  --charcoal: #333333;
  --charcoal-light: #555555;
  --charcoal-faint: #888888;
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --teal: #1A7A78;
  --cream: #FFFDF8;
  --shadow-warm: 0 8px 32px rgba(226, 114, 91, 0.15);
  --shadow-deep: 0 16px 48px rgba(51,51,51,0.12);
  --radius-card: 24px;
  --radius-pill: 100px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--oat);
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--oat);
  color: var(--charcoal);
  overflow-x: hidden;
  margin: 0 auto;
}

/* NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(226,114,91,0.35);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226,114,91,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--oat-darker);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--terracotta-dark);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.btn-waitlist {
  width: 100%;
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(226,114,91,0.35);
  margin-top: 4px;
}

.btn-waitlist:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226,114,91,0.45);
}

/* ── SHARED SECTION TYPOGRAPHY ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-body {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ── SHARED BADGE STYLES ── */
.singpass-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #1A7A78, #0D5C5A);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 10px;
  border-radius: 8px;
  position: relative;
}

.singpass-badge::before {
  content: '🛡';
  font-size: 0.75rem;
}

.sfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(79,121,66,0.25);
  border: 1px solid rgba(79,121,66,0.5);
  color: var(--pandan-light);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 100px;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1444px) {
  nav { padding: 16px 24px !important; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { height: auto; min-height: 100svh; grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 48px; padding-left: 32px; padding-right: 32px; text-align: center; gap:0}
  .hero-body { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-scarcity { justify-content: center; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; height: auto; min-height: 480px; margin-bottom: 32px; margin-bottom: 0;}
  .swipe-btn { display: none; }
  .section { padding: 60px 32px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::after { display: none; }
  .featured-section { padding: 60px 32px; }
  .kitchens-grid { grid-template-columns: 1fr; }
  .trust-section { padding: 60px 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .floating-card.left { left: -10px; }
  .floating-card.right { right: -10px; }
  .testimonials { grid-template-columns: 1fr; }
  .seller-cta-section { grid-template-columns: 1fr; padding: 60px 32px; text-align: center; }
  .cta-commission { max-width: 380px; margin: 0 auto; }
  .footer-inner { padding: 40px 32px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .community-section { padding: 60px 32px; }
  .founder-section { padding: 60px 32px; }
  .movement-section { padding: 60px 32px; }
  .waitlist-section { padding: 60px 32px; }
  .waitlist-card { padding: 32px 24px; }
  .faq-section { padding: 60px 32px; }
  .form-radio-group { flex-direction: column; }
  .radio-option { min-width: unset; }
  .footer-trust-row { padding: 20px 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
}

/* ── SMALL MOBILE (≤ 560px) ── */
@media (max-width: 560px) {
  .card-deck { width: 240px; height: 320px; }
  .food-card { width: 220px; height: 300px; }
  .hero-visual { min-height: 380px; }
  .card-body { padding: 12px 14px; }
  .card-tag { font-size: 0.55rem; padding: 3px 8px; margin-bottom: 6px;}
  .card-dish-name { font-size: 0.95rem; margin-bottom: 2px;}
  .card-seller { font-size: 0.65rem; margin-bottom: 8px;}
  .card-price { font-size: 1rem; }
  .card-rating { font-size: 0.75rem; }
  .card-rating em { font-size: 0.65rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .kitchens-grid { grid-template-columns: 1fr; }
  .floating-card.left,
  .floating-card.right { display: none; }
  .hero-stats { gap: 20px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .faq-q { padding: 18px 20px; font-size: 0.92rem; }
  .faq-a { padding: 0 20px; }
  .faq-a.open { padding: 0 20px 20px; }
  .hero-eyebrow {display: none;}
}

/* ── VERY SMALL MOBILE (≤ 440px) ── */
@media (max-width: 440px) {
  nav { padding: 12px 16px !important; }
  .nav-logo { font-size: 1.3rem; }
  .hero { padding: 90px 16px 48px; gap:0;}
  .hero-title { font-size: clamp(1.6rem, 7.5vw, 1.75rem); letter-spacing: -0.3px; }
  .hero-body { font-size: 0.92rem; }
  .hero-scarcity { font-size: 0.72rem; gap: 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .card-deck { width: 200px; height: 280px; }
  .food-card { width: 180px; height: 260px; }
  .hero-visual { min-height: 320px; margin-bottom: 0; }
  .card-body { padding: 10px 12px; }
  .card-dish-name { font-size: 0.85rem; }
  .card-price { font-size: 0.9rem; }
  .swipe-hint { bottom: -30px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px 20px; }
  .stat-num { font-size: 1.5rem; }
  .section { padding: 48px 16px; }
  .featured-section,
  .trust-section,
  .community-section,
  .seller-cta-section,
  .founder-section,
  .movement-section,
  .waitlist-section,
  .faq-section { padding: 48px 16px; }
  .footer-inner { padding: 36px 16px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer-trust-badge { padding: 7px 12px; font-size: 0.68rem; }
  .badge-showcase { padding: 24px 16px; }
  .singpass-main-badge { padding: 20px 16px; max-width: 100%; align-self: stretch; }
  .waitlist-card { padding: 24px 16px; }
  .section-title { font-size: 1.6rem; }
  .cta-title { font-size: 1.6rem; }
  .commission-num { font-size: 3rem; }
  .commission-label { font-size: 0.8rem; }
  .seller-cta-section { gap: 32px; }
  .movement-inner { padding: 0 4px; }
  .founder-story { padding-left: 18px; }
  .movement-bullets { padding: 0 8px; }
  .faq-q { padding: 16px 16px; font-size: 0.88rem; }
  .faq-a { padding: 0 16px; }
  .faq-a.open { padding: 0 16px 16px; }
  /* Restore radio options side-by-side — two options fit at 343px inner width */
  .form-radio-group { flex-direction: row; }
  .radio-option { flex: 1 1 0; min-width: 0; }
}

/* ── IPHONE SE 2ND/3RD GEN (≤ 375px) ── */
@media (max-width: 375px) {
  .hero-visual {display:none;}
  .hero-eyebrow { font-size: 0.63rem; padding: 6px 12px; letter-spacing: 1px; }
  .swipe-hint { bottom: -40px; }
  .stat-num { font-size: 1.3rem; }
  .hero-stats { gap: 10px 16px; }
  .commission-num { font-size: 2.6rem; }
  .cta-commission { padding: 24px 16px; }
  .success-rank { font-size: 3rem; }
  .share-buttons { flex-direction: column; align-items: stretch; }
  .share-btn { justify-content: center; }
}

/* ── IPHONE SE 1ST GEN (≤ 320px) ── */
@media (max-width: 325px) {
  nav { padding: 10px 12px !important; }
  .hero { padding: 76px 12px 40px; }
  .hero-title { font-size: 1.45rem; letter-spacing: -0.2px; }
  .hero-body { font-size: 0.84rem; }
  .hero-scarcity { font-size: 0.68rem; gap: 4px; }
  .section-title { font-size: 1.38rem; }
  .cta-title { font-size: 1.38rem; }
  .commission-num { font-size: 2.2rem; }
  .commission-label { font-size: 0.75rem; }
  .movement-sub { font-size: 0.88rem; }
  .waitlist-card { padding: 20px 12px; }
  .badge-showcase { padding: 18px 12px; }
  .section { padding: 40px 12px; }
  .featured-section,
  .trust-section,
  .seller-cta-section,
  .founder-section,
  .movement-section,
  .waitlist-section,
  .faq-section { padding: 40px 12px; }
  .footer-inner { padding: 28px 12px 16px; }
  .faq-q { font-size: 0.84rem; padding: 14px 12px; }
  .faq-a { padding: 0 12px; }
  .faq-a.open { padding: 0 12px 14px; }
  .hero-eyebrow { font-size: 0.58rem; padding: 5px 10px; letter-spacing: 0.8px; }
  .footer-trust-badge { font-size: 0.63rem; padding: 6px 10px; }
  .section-label { font-size: 0.63rem; letter-spacing: 1.5px; }
  .btn-primary, .btn-secondary, .btn-white { padding: 14px 20px; font-size: 0.85rem; }
  .btn-waitlist { padding: 16px 20px; font-size: 0.9rem; }
}
