*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

:root {
  --green: #16a34a; --green-dark: #15803d; --green-light: #f0fdf4; --green-mid: #dcfce7;
  --blue: #1e3a8a; --text: #0f172a; --text-mid: #334155; --text-light: #64748b;
  --border: #e2e8f0; --bg: #ffffff; --bg-soft: #f8fafc; --radius: 14px; --radius-lg: 20px;
}

body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }

/* NAVBAR */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 68px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.3px; flex-shrink: 0; }
.logo-img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; display: block; flex-shrink: 0; background: #f0f7f0; padding: 2px; }
.logo-text { color: var(--blue); }
.logo-text span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: 7px 13px; border-radius: 8px; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--green); background: var(--green-light); }
.join-button { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.join-button:hover { background: var(--green-dark); }

/* HERO */
.hero { background: linear-gradient(135deg, #0f2665 0%, #0a4a24 100%); padding: 72px 48px 80px; position: relative; overflow: visible; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%); top: -200px; right: -100px; pointer-events: none; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%); bottom: -100px; left: 20%; pointer-events: none; overflow: hidden; }
.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.hero-content { max-width: 780px; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 6px 14px; font-size: 13px; color: rgba(255,255,255,0.88); margin-bottom: 22px; }
.badge-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }

.hero-title { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 18px; }
.hero-title span { color: #86efac; font-style: italic; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 580px; margin-bottom: 36px; line-height: 1.75; }

/* SEARCH BAR */
.search-bar { background: #fff; border-radius: 16px; padding: 8px; display: flex; align-items: stretch; box-shadow: 0 20px 60px rgba(0,0,0,0.3); margin-bottom: 16px; gap: 0; position: relative; z-index: 50; }
.search-field { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; flex: 1; min-width: 0; }
.sf-icon { font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.sf-inner { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.sf-label { font-size: 10px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; white-space: nowrap; }
.search-field input { border: none; outline: none; font-size: 14px; font-weight: 500; color: var(--text); background: transparent; font-family: inherit; width: 100%; }
.search-field input::placeholder { color: #94a3b8; font-weight: 400; }
.search-divider { width: 1px; background: var(--border); margin: 8px 0; flex-shrink: 0; }

.allergen-dropdown, .diet-dropdown { position: relative; width: 100%; }
.allergen-display, .diet-display { font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; min-height: 20px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.allergen-display.placeholder, .diet-display.placeholder { color: #94a3b8; font-weight: 400; font-size: 14px; }

.a-selected-pill { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; }
.a-selected-pill span { cursor: pointer; font-size: 13px; line-height: 1; color: #dc2626; }
.d-selected-pill { background: var(--green-light); border: 1px solid #bbf7d0; color: var(--green-dark); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; }
.d-selected-pill span { cursor: pointer; font-size: 13px; color: var(--green-dark); }

.allergen-panel, .diet-panel { display: none; position: absolute; top: calc(100% + 12px); left: -16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,0.15); padding: 16px; z-index: 9999; }
.allergen-panel { width: 380px; }
.diet-panel { width: 280px; }
.allergen-panel.open, .diet-panel.open { display: block; }

.ap-title { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }

.ap-item, .dp-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-mid); transition: background 0.12s; user-select: none; border: 1px solid transparent; }
.ap-item:hover { background: var(--bg-soft); }
.ap-item.selected { background: #fef2f2; border-color: #fecaca; color: #dc2626; font-weight: 600; }
.dp-item:hover { background: var(--green-light); }
.dp-item.selected { background: var(--green-light); border-color: #bbf7d0; color: var(--green-dark); font-weight: 600; }

.ap-check, .dp-check { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; background: #fff; }
.ap-item.selected .ap-check { background: #dc2626; border-color: #dc2626; color: #fff; }
.dp-item.selected .dp-check { background: var(--green); border-color: var(--green); color: #fff; }

.ap-footer, .dp-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ap-clear, .dp-clear { font-size: 12px; color: var(--text-light); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.ap-clear:hover { color: #dc2626; }
.dp-clear:hover { color: var(--green-dark); }
.ap-done, .dp-done { background: var(--green); color: #fff; border: none; border-radius: 7px; padding: 6px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }

.search-btn { display: flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 0 22px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; align-self: stretch; }
.search-btn:hover { background: var(--green-dark); }

.quick-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.qf-label { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; }
.qf-pill { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 5px 13px; font-size: 12px; color: rgba(255,255,255,0.82); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.qf-pill:hover, .qf-pill.active { background: rgba(255,255,255,0.22); color: #fff; border-color: rgba(255,255,255,0.35); }

/* STATS BAR */
.stats-bar { background: #0f172a; padding: 28px 48px; }
.stats-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-around; }
.stat-item { text-align: center; padding: 0 24px; }
.stat-num { font-size: 30px; font-weight: 800; color: #4ade80; letter-spacing: -1px; margin-bottom: 4px; }
.stat-lbl { font-size: 13px; color: #94a3b8; font-weight: 500; }
.stat-sep { width: 1px; height: 40px; background: #1e293b; flex-shrink: 0; }

/* SECTIONS */
.section { padding: 88px 48px; }
.section-soft { background: var(--bg-soft); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 14px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.8px; margin-bottom: 12px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--text-light); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* HOW IT WORKS */
.hiw-tabs { display: flex; justify-content: center; margin-bottom: 48px; }
.hiw-tab-wrap { display: flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 100px; padding: 4px; }
.hiw-tab { padding: 10px 28px; border-radius: 100px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-light); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.hiw-tab.active { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.steps-grid { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: start; }
.steps-grid.hidden { display: none; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.step-num { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.step-emoji { font-size: 36px; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; justify-content: center; padding-top: 56px; color: #cbd5e1; font-size: 22px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; transition: transform 0.3s, box-shadow 0.3s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feat-card-large { grid-column: span 2; background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%); border-color: #bbf7d0; }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.allergen-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.allergen-pills span { background: #fff; border: 1px solid #bbf7d0; color: var(--green-dark); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }

/* MISSION */
.mission-section { background: #0f172a; padding: 88px 48px; }
.mission-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mission-section .section-tag { background: rgba(74,222,128,0.12); color: #4ade80; }
.mission-section .section-title { color: #fff; }
.mission-body { font-size: 16px; color: #94a3b8; line-height: 1.8; margin-bottom: 16px; }
.mission-body strong { color: #e2e8f0; }
.mission-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 10px; font-size: 15px; font-weight: 700; margin-top: 8px; transition: background 0.15s; }
.mission-cta:hover { background: var(--green-dark); }
.mission-stats { display: flex; flex-direction: column; gap: 14px; }
.mstat { background: #1e293b; border: 1px solid #334155; border-radius: var(--radius); padding: 20px 24px; }
.mstat.accent { border-color: var(--green); background: rgba(22,163,74,0.08); }
.mstat-num { font-size: 28px; font-weight: 800; color: #4ade80; letter-spacing: -1px; margin-bottom: 4px; }
.mstat-lbl { font-size: 13px; color: #94a3b8; line-height: 1.5; }
.mission-quote { background: rgba(255,255,255,0.04); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: 15px; color: #cbd5e1; font-style: italic; }

/* RESTAURANT CTA */
.rcta-section { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); padding: 64px 48px; }
.rcta-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.rcta-inner h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.rcta-inner > div > p { font-size: 15px; color: rgba(255,255,255,0.72); max-width: 520px; line-height: 1.7; margin-bottom: 20px; }
.rcta-benefits { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.rcta-benefit { font-size: 13px; color: #86efac; font-weight: 600; }
.rcta-right { text-align: center; flex-shrink: 0; }
.rcta-btn { background: #fff; color: var(--blue); border: none; border-radius: 12px; padding: 15px 32px; font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer; display: block; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s; }
.rcta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.rcta-note { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 10px; }

/* FOOTER */
.footer { background: #0f172a; padding: 56px 48px 28px; }
.footer-container { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: #64748b; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; }
.footer-links h4 { font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links a { font-size: 14px; color: #64748b; text-decoration: none; padding: 4px 0; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-links p { font-size: 13px; color: #64748b; line-height: 1.9; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 24px; border-top: 1px solid #1e293b; text-align: center; font-size: 13px; color: #475569; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; border-radius: 8px; transition: background 0.15s; }
.hamburger:hover { background: var(--bg-soft); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 999; padding: 12px 20px 20px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: 14px 16px; border-radius: 8px; border-bottom: 1px solid var(--border); transition: background 0.15s, color 0.15s; }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { background: var(--green-light); color: var(--green); }
.mobile-menu .mobile-cta { background: var(--green); color: #fff !important; text-align: center; font-weight: 700; border-radius: 8px; margin-top: 8px; padding: 14px; border-bottom: none !important; }
.mobile-menu .mobile-cta:hover { background: var(--green-dark) !important; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feat-card-large { grid-column: span 2; }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .rcta-inner { flex-direction: column; text-align: center; }
  .rcta-benefits { justify-content: center; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links, .join-button { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 40px 20px 48px; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .search-bar { flex-direction: column; border-radius: 14px; padding: 8px; gap: 2px; }
  .search-field { width: 100%; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .search-divider { display: none; }
  .search-btn { width: 100%; border-radius: 10px; padding: 14px; justify-content: center; margin-top: 4px; }
  .allergen-panel { width: calc(100vw - 40px); left: 0; }
  .ap-grid { grid-template-columns: 1fr 1fr; }
  .diet-panel { width: calc(100vw - 40px); left: 0; }
  .stats-bar { padding: 20px 16px; }
  .stats-inner { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-sep { display: none; }
  .stat-num { font-size: 24px; }
  .stat-item { padding: 0 12px; min-width: 120px; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
  .mission-section { padding: 48px 20px; }
  .rcta-section { padding: 40px 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card-large { grid-column: span 1; }
  .feat-card { padding: 22px 18px; }
  .hiw-tab { padding: 8px 18px; font-size: 13px; }
  .mission-body { font-size: 15px; }
  .mstat-num { font-size: 24px; }
  .footer { padding: 40px 20px 24px; }
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-badge { display: none; }
  .stat-item { min-width: 100px; }
  .stat-num { font-size: 22px; }
  .allergen-pills span { font-size: 10px; padding: 2px 8px; }
  .rcta-inner h2 { font-size: 20px; }
  .section-title { font-size: 22px; }
}
