/* ================================================================
 * Yalla Market Landing — Hero Section + Phone Mockup
 * Full design at 280px phone width; mobile scaling in mobile.css
 * ================================================================ */

/* ── Hero ── */
.hero {
  min-height:100vh; min-height:100svh; display:flex; align-items:center;
  padding:100px 24px 60px;
  background:linear-gradient(165deg,#FFF8F0 0%,#FFF 50%,#FFF3E8 100%);
  position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; top:-200px; right:-200px; width:600px; height:600px;
  border-radius:50%; background:radial-gradient(circle,rgba(255,106,0,.06),transparent 70%);
  pointer-events:none;
}
.hero::after {
  content:''; position:absolute; bottom:-150px; left:-150px; width:400px; height:400px;
  border-radius:50%; background:radial-gradient(circle,rgba(255,163,1,.04),transparent 70%);
  pointer-events:none;
}
.hero-inner {
  display:flex; align-items:center; gap:72px; max-width:1120px;
  width:100%; margin:0 auto; position:relative; z-index:1;
}
.hero-content { flex:1; min-width:0; }
.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:#FFF3E8; border:1px solid #FFD6A8; border-radius:20px;
  padding:6px 14px; font-size:13px; font-weight:600; color:#C75000;
  margin-bottom:20px; animation:fadeInUp .7s ease; overflow:hidden; max-width:100%;
  white-space: normal; text-align: center;
}
.hero-title {
  font-size:clamp(34px,5vw,56px); font-weight:900; line-height:1.08;
  margin-bottom:20px; color:#1a1a2e; animation:fadeInUp .7s ease .1s both;
}
.hero-title span { background:linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero-subtitle {
  font-size:18px; color:#666; max-width:500px; margin-bottom:32px;
  line-height:1.7; animation:fadeInUp .7s ease .2s both;
}
.hero-buttons { display:flex; gap:14px; flex-wrap:wrap; animation:fadeInUp .7s ease .3s both; }
.store-btn {
  display:inline-flex; align-items:center; gap:10px; background:#1a1a2e;
  color:#fff; padding:14px 26px; border-radius:14px; font-size:15px;
  font-weight:600; transition:transform .2s,box-shadow .2s; border:2px solid #1a1a2e;
}
.store-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.15); }
.store-btn svg { width:28px; height:28px; flex-shrink:0; }
.store-btn .store-label { display:flex; flex-direction:column; text-align:left; }
.store-btn .store-label small { font-size:10px; font-weight:400; opacity:.75; text-transform:uppercase; }
.store-btn .store-label strong { font-size:16px; line-height:1.2; }

.hero-visual { flex:1; display:flex; justify-content:center; position:relative; animation:floatIn 1s ease .2s both; }

/* ── Phone Frame (shared hero + AI chef) ── */
.phone-wrapper { position:relative; perspective:1200px; }
.phone-wrapper .phone-glow {
  position:absolute; inset:-20px; border-radius:56px;
  background:radial-gradient(ellipse at center,rgba(255,106,0,.12) 0%,transparent 70%);
  filter:blur(30px); z-index:-1; animation:glowPulse 4s ease-in-out infinite;
}
.phone-frame {
  width:280px; border-radius:40px;
  background:linear-gradient(165deg,#1a1a2e,#2d2d44,#1a1a2e); padding:10px;
  box-shadow:0 40px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08) inset, inset 0 1px 0 rgba(255,255,255,.1);
  position:relative; transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.23,1,.32,1);
}
.phone-frame:hover { transform:rotateY(-3deg) rotateX(2deg); }
.phone-frame .notch {
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:80px; height:24px; background:#1a1a2e; border-radius:12px; z-index:10;
}
.phone-frame .notch::after {
  content:''; position:absolute; width:8px; height:8px; border-radius:50%;
  background:#2d2d44; top:8px; right:14px; box-shadow:inset 0 1px 2px rgba(255,255,255,.15);
}
.phone-screen { width:100%; border-radius:32px; overflow:hidden; background:#f8fafc; position:relative; }
.phone-frame::before {
  content:''; position:absolute; top:10px; left:12px; right:60%; bottom:60%;
  border-radius:32px 32px 80px 32px; background:linear-gradient(135deg,rgba(255,255,255,.08),transparent);
  z-index:11; pointer-events:none;
}
.phone-frame::after {
  content:''; position:absolute; top:100px; right:-2px; width:3px; height:28px;
  background:#2d2d44; border-radius:2px;
}

/* ── App Home Screen ── */
.app-home { display:flex; flex-direction:column; height:560px; background:#f8fafc; }
.app-header { background:linear-gradient(135deg,#2C1C0F,#3D2B1F); position:relative; overflow:hidden; }
.app-header::after { content:''; position:absolute; inset:0; background:repeating-conic-gradient(rgba(255,255,255,.02) 0% 25%,transparent 0% 50%) 0 0/20px 20px; pointer-events:none; }
.app-header-bottom { position:absolute; left:0; right:0; bottom:0; height:1px; background:linear-gradient(to right,transparent,rgba(255,106,0,.5),transparent); }
.app-topbar { display:flex; align-items:center; padding:32px 10px 4px; gap:6px; position:relative; z-index:2; }
.app-topbar .logo-mini { display:flex; align-items:center; gap:4px; }
.app-topbar .logo-mini .y-text { font-size:11px; font-weight:900; color:#F7F2E8; letter-spacing:.3px; line-height:1; }
.app-topbar .logo-mini .y-sub { font-size:6px; font-weight:700; color:var(--primary); letter-spacing:1.5px; display:block; text-transform:uppercase; }
.app-topbar .location-pill { display:flex; align-items:center; gap:3px; padding:3px 8px; border-radius:10px; background:rgba(255,106,0,.15); border:1px solid rgba(255,106,0,.3); font-size:7px; font-weight:600; color:#F7F2E8; margin-left:auto; }
.app-topbar .location-pill .dot { width:4px; height:4px; border-radius:50%; background:var(--primary); animation:pulse 2s infinite; }
.app-topbar .notif-btn { width:22px; height:22px; border-radius:50%; background:rgba(255,106,0,.15); display:flex; align-items:center; justify-content:center; position:relative; }
.app-topbar .notif-btn svg { width:11px; height:11px; color:#F7F2E8; }
.app-topbar .notif-btn .n-badge { position:absolute; top:-2px; right:-2px; width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,#ef4444,#dc2626); color:#fff; font-size:5px; font-weight:800; display:flex; align-items:center; justify-content:center; border:1px solid #2C1C0F; }
.app-topbar .user-avatar { width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:9px; font-weight:800; box-shadow:0 4px 8px rgba(255,106,0,.25); }
.app-search { margin:0 10px 6px; padding:6px 10px; border-radius:10px; background:rgba(61,43,31,.7); backdrop-filter:blur(8px); border:1px solid rgba(255,106,0,.2); display:flex; align-items:center; gap:6px; font-size:8px; color:rgba(247,242,232,.5); position:relative; z-index:2; }
.app-search svg { width:10px; height:10px; color:var(--accent); flex-shrink:0; }
.app-greeting { padding:4px 10px 2px; display:flex; align-items:center; gap:4px; }
.app-greeting span:first-child { font-size:12px; }
.app-greeting .gr-label { font-size:9px; color:#64748b; font-weight:500; }
.app-greeting .gr-name  { font-size:11px; color:#1e293b; font-weight:800; }
.app-banner { margin:6px 10px; border-radius:14px; height:80px; position:relative; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.app-banner .banner-img { position:absolute; inset:0; background:linear-gradient(135deg,#1b4332,#2d6a4f,#52b788); }
.app-banner .banner-img::after { content:'🥬🥕🍅🫑🌽'; position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:22px; letter-spacing:2px; opacity:.6; }
.app-banner .banner-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.6),transparent); padding:10px 12px; display:flex; flex-direction:column; justify-content:flex-end; }
.app-banner .b-badge { font-size:5px; font-weight:800; text-transform:uppercase; background:rgba(255,255,255,.2); backdrop-filter:blur(4px); padding:1px 5px; border-radius:3px; color:#fff; width:fit-content; letter-spacing:.5px; margin-bottom:3px; }
.app-banner .b-title { font-size:11px; font-weight:800; color:#fff; line-height:1.15; }
.app-banner .b-sub   { font-size:7px; color:rgba(255,255,255,.85); margin-top:1px; }
.app-qa { padding:6px 10px 2px; }
.app-qa-header { display:flex; align-items:center; gap:3px; margin-bottom:4px; }
.app-qa-header .qa-icon { width:12px; height:12px; border-radius:3px; background:rgba(255,106,0,.1); display:flex; align-items:center; justify-content:center; }
.app-qa-header .qa-icon svg { width:7px; height:7px; color:var(--primary); }
.app-qa-header span { font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:#64748b; }
.app-qa-pills { display:flex; gap:4px; overflow:hidden; }
.app-qa-pill { display:flex; align-items:center; gap:3px; padding:3px 6px 3px 3px; border-radius:999px; font-size:7px; font-weight:700; border:1px solid; position:relative; }
.app-qa-pill .pill-icon { width:14px; height:14px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:7px; }
.app-qa-pill .pill-badge { position:absolute; top:-5px; left:50%; transform:translateX(-50%); padding:0 3px; border-radius:2px; font-size:4px; font-weight:800; color:#fff; white-space:nowrap; }
.pill-all      { border-color:#c7d2fe; background:linear-gradient(135deg,#eef2ff,#e0e7ff); color:#4338ca; }
.pill-all .pill-icon { background:#e0e7ff; }
.pill-sale     { border-color:#fecaca; background:linear-gradient(135deg,#fef2f2,#fee2e2); color:#dc2626; }
.pill-sale .pill-icon { background:#fee2e2; }
.pill-sale .pill-badge { background:#ef4444; }
.pill-new      { border-color:#a7f3d0; background:linear-gradient(135deg,#f0fdf4,#d1fae5); color:#059669; }
.pill-new .pill-icon { background:#d1fae5; }
.pill-new .pill-badge { background:#10b981; }
.pill-popular  { border-color:#fed7aa; background:linear-gradient(135deg,#fff7ed,#ffedd5); color:#c2410c; }
.pill-popular .pill-icon { background:#ffedd5; }
.pill-popular .pill-badge { background:#f97316; }
.pill-featured { border-color:#fde68a; background:linear-gradient(135deg,#fffbeb,#fef3c7); color:#b45309; }
.pill-featured .pill-icon { background:#fef3c7; }
.app-cats-section { padding:6px 10px; flex:1; }
.app-cats-header { display:flex; align-items:center; gap:3px; margin-bottom:5px; }
.app-cats-header .cat-icon { width:12px; height:12px; border-radius:3px; background:rgba(255,106,0,.1); display:flex; align-items:center; justify-content:center; }
.app-cats-header .cat-icon svg { width:7px; height:7px; color:var(--primary); }
.app-cats-header span { font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:#64748b; }
.app-cat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.app-cat-card { border-radius:12px; overflow:hidden; position:relative; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.app-cat-card .cat-img { height:46px; display:flex; align-items:center; justify-content:center; font-size:24px; position:relative; }
.app-cat-card .cat-badge { position:absolute; top:3px; left:3px; padding:1px 4px; border-radius:3px; font-size:5px; font-weight:800; color:#fff; }
.app-cat-card .cat-name { font-size:6.5px; font-weight:700; color:#1e293b; text-align:center; padding:3px 2px 4px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app-bottomnav { display:flex; align-items:flex-end; justify-content:space-around; padding:4px 6px 6px; background:#fff; border-top:1px solid #f1f5f9; }
.app-nav-item { display:flex; flex-direction:column; align-items:center; gap:1px; min-width:36px; padding:3px 5px; border-radius:10px; }
.app-nav-item.active { background:rgba(255,106,0,.07); }
.app-nav-item svg { width:13px; height:13px; color:#9ca3af; }
.app-nav-item.active svg { color:var(--primary); stroke-width:2.5; }
.app-nav-item span { font-size:6.5px; font-weight:500; color:#9ca3af; }
.app-nav-item.active span { font-weight:700; color:var(--primary); }
.app-nav-cart { display:flex; flex-direction:column; align-items:center; margin-top:-14px; }
.app-nav-cart .cart-circle { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--accent)); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(255,106,0,.3); position:relative; }
.app-nav-cart .cart-circle svg { width:14px; height:14px; color:#fff; }
.app-nav-cart .cart-count { position:absolute; top:-3px; right:-3px; width:12px; height:12px; border-radius:50%; background:#ef4444; color:#fff; font-size:6px; font-weight:800; display:flex; align-items:center; justify-content:center; border:1.5px solid #fff; }
.app-nav-cart span { font-size:6.5px; font-weight:500; color:#9ca3af; margin-top:2px; }

/* ── Float animation on desktop ── */
.hero-visual .phone-wrapper { animation:float 6s ease-in-out infinite; }

/* ── Delivery Districts (marquee inside hero) ── */
.districts-section {
  width:100%; padding:0; margin-top:20px; margin-bottom:20px;
  border:none;
  background:transparent;
}
.districts-inner {
  display:flex; align-items:center; gap:16px; max-width:1120px; margin:0 auto;
}
.districts-label {
  display:flex; align-items:center; gap:6px; white-space:normal; flex-shrink:0;
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px;
  color:rgba(200,80,0,.85); text-align: center;
}
.districts-label svg { flex-shrink:0; color:var(--primary); }
.districts-marquee-wrap {
  flex:1; overflow:hidden; position:relative; min-width:0;
}
.districts-marquee-wrap::before,
.districts-marquee-wrap::after {
  content:''; position:absolute; top:0; bottom:0; width:36px; z-index:2; pointer-events:none;
}
.districts-marquee-wrap::before { left:0;  background:linear-gradient(to right,#FFF8F0,transparent); }
.districts-marquee-wrap::after  { right:0; background:linear-gradient(to left,#FFF8F0,transparent); }
.districts-ticker {
  display:flex; gap:8px; width:max-content;
  animation:districtMarquee 30s linear infinite;
}
.districts-ticker:hover { animation-play-state:paused; }
.district-chip {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 13px; border-radius:20px;
  background:rgba(255,106,0,.07); border:1px solid rgba(255,106,0,.18);
  font-size:11.5px; font-weight:600; color:#B05200; white-space:nowrap;
  user-select:none;
}
.district-chip svg { flex-shrink:0; }
@keyframes districtMarquee {
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
[dir="rtl"] .districts-marquee-wrap::before { left:auto; right:0; background:linear-gradient(to left,#FFF8F0,transparent); }
[dir="rtl"] .districts-marquee-wrap::after  { right:auto; left:0; background:linear-gradient(to right,#FFF8F0,transparent); }
[dir="rtl"] .districts-ticker { animation-name:districtMarqueeRTL; flex-direction:row-reverse; }
@keyframes districtMarqueeRTL {
  0%   { transform:translateX(0); }
  100% { transform:translateX(50%); }
}
[dir="rtl"] .districts-inner { flex-direction:row-reverse; }

/* ── AI Chef Phone Sub-styles ── */
.chef-screen { display:flex; flex-direction:column; height:560px; background:#f8fafc; }
.chef-header { background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 60%,var(--accent) 100%); padding:36px 12px 14px; border-radius:0 0 20px 20px; box-shadow:0 4px 16px rgba(0,0,0,.12); display:flex; align-items:center; gap:8px; color:#fff; }
.chef-header .chef-avatar { width:28px; height:28px; border-radius:10px; background:rgba(255,255,255,.2); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; }
.chef-header .chef-avatar svg { width:14px; height:14px; color:#fff; }
.chef-header .chef-info h3 { font-size:11px; font-weight:700; }
.chef-header .chef-info p  { font-size:7px; color:rgba(255,255,255,.75); }
.chef-messages { flex:1; overflow:hidden; padding:10px; display:flex; flex-direction:column; gap:8px; }
.chef-msg { display:flex; gap:5px; align-items:flex-start; opacity:0; transform:translateY(16px); }
.chef-msg.visible { opacity:1; transform:translateY(0); transition:opacity .5s ease, transform .5s ease; }
.chef-msg.user { flex-direction:row-reverse; }
.chef-msg .msg-avatar { width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; }
.chef-msg:not(.user) .msg-avatar { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); box-shadow:0 2px 6px rgba(255,106,0,.2); }
.chef-msg:not(.user) .msg-avatar svg { width:10px; height:10px; color:#fff; }
.chef-msg.user .msg-avatar { background:linear-gradient(135deg,rgba(255,106,0,.12),rgba(255,106,0,.18)); }
.chef-msg.user .msg-avatar svg { width:10px; height:10px; color:var(--primary); }
.chef-msg .msg-bubble { max-width:84%; border-radius:14px; padding:8px 10px; font-size:8.5px; line-height:1.45; }
.chef-msg:not(.user) .msg-bubble { background:#fff; color:#1f2937; border-bottom-left-radius:3px; border:1px solid #f3f4f6; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.chef-msg.user .msg-bubble { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; border-bottom-right-radius:3px; box-shadow:0 2px 8px rgba(255,106,0,.2); }
.recipe-title { font-size:9.5px; font-weight:700; color:var(--primary); margin-bottom:3px; }
.meta-badges { display:flex; gap:3px; margin-top:5px; flex-wrap:wrap; }
.meta-badge { display:inline-flex; align-items:center; gap:2px; padding:2px 5px; border-radius:999px; font-size:6.5px; font-weight:600; }
.meta-badge.time { background:#eff6ff; color:#1d4ed8; }
.meta-badge.diff { background:#f0fdf4; color:#15803d; }
.meta-badge.serv { background:#faf5ff; color:#7e22ce; }
.ingredient-cards { display:flex; gap:4px; margin-top:6px; overflow:hidden; }
.mini-pcard { min-width:52px; width:52px; background:#fff; border-radius:8px; border:1px solid #f3f4f6; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.mini-img  { height:28px; background:#f8fafc; display:flex; align-items:center; justify-content:center; font-size:14px; }
.mini-info { padding:2px 3px; }
.mini-name  { font-size:5.5px; font-weight:700; color:#1e293b; line-height:1.2; }
.mini-price { font-size:6px; font-weight:800; color:#1e293b; margin-top:1px; }
.add-all-btn { display:inline-flex; align-items:center; gap:2px; padding:2px 6px; border-radius:999px; font-size:6.5px; font-weight:700; background:rgba(255,106,0,.1); color:var(--primary); margin-top:4px; }
.add-all-btn svg { width:7px; height:7px; }
.section-hdr { font-size:6px; font-weight:800; text-transform:uppercase; color:#9ca3af; display:flex; align-items:center; gap:2px; margin-top:6px; margin-bottom:3px; }
.section-hdr svg { width:7px; height:7px; }
.step-item { display:flex; align-items:flex-start; gap:4px; margin-bottom:2px; }
.step-num  { width:11px; height:11px; border-radius:50%; background:var(--primary); color:#fff; font-size:5.5px; font-weight:800; flex-shrink:0; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.step-text { font-size:7.5px; color:#374151; line-height:1.35; }
.pro-tips { margin-top:5px; padding:4px 6px; border-radius:7px; background:#f0fdf4; border:1px solid #bbf7d0; }
.tip-title { font-size:6.5px; font-weight:700; text-transform:uppercase; color:#15803d; margin-bottom:1px; display:flex; align-items:center; gap:2px; }
.tip-title svg { width:7px; height:7px; }
.pro-tips p { font-size:6.5px; color:#166534; line-height:1.3; }
.chef-suggestions { padding:5px 10px; display:flex; gap:3px; overflow:hidden; }
.chef-chip { padding:3px 7px; border-radius:999px; font-size:6.5px; font-weight:600; white-space:nowrap; background:#fff; color:var(--primary); border:1px solid rgba(255,106,0,.18); box-shadow:0 1px 2px rgba(0,0,0,.03); }
.chef-input { padding:5px 10px 8px; background:#fff; border-top:1px solid #f3f4f6; }
.chef-input-bar { display:flex; align-items:center; gap:5px; background:#f3f4f6; border:2px solid #e5e7eb; border-radius:14px; padding:6px 7px; }
.chef-input-bar .input-text { flex:1; font-size:8px; color:#9ca3af; }
.chef-input-bar .send-btn { width:20px; height:20px; border-radius:8px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(255,106,0,.25); }
.chef-input-bar .send-btn svg { width:9px; height:9px; color:#fff; }
.typing-dots { display:flex; gap:3px; padding:6px 8px; opacity:0; transform:translateY(10px); margin-left:25px; }
.typing-dots.visible { opacity:1; transform:translateY(0); transition:opacity .4s, transform .4s; }
.typing-dots span { width:5px; height:5px; border-radius:50%; animation:typingBounce 1.4s infinite ease-in-out; }
.typing-dots span:nth-child(1) { background:var(--primary); }
.typing-dots span:nth-child(2) { background:var(--primary-dark); animation-delay:.16s; }
.typing-dots span:nth-child(3) { background:var(--accent); animation-delay:.32s; }
