:root {
  --navy: #1e3a8a;
  --navy-dark: #0f2562;
  --navy-tint: #eef2ff;
  --navy-soft: #dbeafe;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-tint: #fff7ed;
  --ink: #0f172a;
  --ink2: #334155;
  --ink3: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f8fafc;
  --bg-warm: #faf7f2;
  --white: #ffffff;
  --green: #15803d;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Lexend", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink2); }

a { color: var(--navy); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-dark); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: "Lexend", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); box-shadow: 0 8px 22px rgba(249, 115, 22, 0.34); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand strong {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--navy); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(249, 115, 22, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 84px 0 96px; max-width: 720px; }
.hero .eyebrow { color: #fdba74; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
.hero p { color: rgba(255, 255, 255, 0.82); font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px;
  color: rgba(255, 255, 255, 0.78); font-size: 15px; font-weight: 500;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { flex: none; }

/* Section shell */
.section { padding: 84px 0; }
.section-warm { background: var(--bg-warm); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { font-size: 18px; color: var(--ink3); }
.section-navy .section-head h2 { color: var(--white); }
.section-navy .section-head p { color: rgba(255, 255, 255, 0.78); }

/* Feature / category grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-soft); }
.card h3 { font-size: 20px; }
.card p { margin-bottom: 0; font-size: 16px; color: var(--ink3); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy-tint); color: var(--navy);
  margin-bottom: 18px;
}
.icon-badge.orange { background: var(--orange-tint); color: var(--orange-dark); }

/* Category chips row */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative;
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy), var(--navy-dark));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cat.rice { background: linear-gradient(155deg, #1e3a8a, #0f2562); }
.cat.dal { background: linear-gradient(155deg, #b45309, #7c2d12); }
.cat.oil { background: linear-gradient(155deg, #ca8a04, #854d0e); }
.cat h3 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.cat p { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 15px; }
.cat .cat-icon { position: absolute; top: 24px; right: 24px; opacity: 0.9; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: "Lexend", sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--white); }
.stat .lbl { color: rgba(255, 255, 255, 0.72); font-size: 15px; }

/* App CTA */
.appcta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 28px;
  padding: 56px 48px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.appcta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 36px); }
.appcta p { color: rgba(255, 255, 255, 0.82); max-width: 520px; margin: 0 auto 28px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  padding: 12px 20px; border-radius: 12px;
  font-family: "Lexend", sans-serif; font-weight: 600;
  min-height: 52px;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease);
}
.store-badge:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--ink3); letter-spacing: 0.02em; }
.store-badge span { font-size: 17px; line-height: 1.1; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand strong { font-family: "Lexend", sans-serif; color: var(--white); font-size: 18px; }
.site-footer p { color: rgba(255, 255, 255, 0.6); font-size: 15px; max-width: 320px; }
.footer-contact { margin-top: 16px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.footer-contact a { color: rgba(255, 255, 255, 0.75); }
.footer-contact a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.68); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* Legal / content pages */
.legal { background: var(--white); }
.legal-hero { background: linear-gradient(160deg, var(--navy), var(--navy-dark)); color: var(--white); padding: 64px 0 56px; }
.legal-hero h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 44px); }
.legal-hero p { color: rgba(255, 255, 255, 0.75); margin: 0; }
.legal-body { padding: 64px 0 88px; }
.legal-body .wrap { max-width: 820px; }
.legal-body h2 { font-size: 24px; margin-top: 44px; padding-top: 8px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin-top: 28px; }
.legal-body ul { padding-left: 22px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 8px; color: var(--ink2); }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 44px;
}
.toc h4 { font-family: "Lexend", sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink3); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; }
.contact-card {
  background: var(--navy-tint); border: 1px solid var(--navy-soft);
  border-radius: var(--radius); padding: 28px 30px; margin-top: 40px;
}
.contact-card h3 { margin-top: 0; }
.contact-card a { color: var(--navy); font-weight: 600; }

/* Support page */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px;
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--navy); font-weight: 400; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; margin: 0; color: var(--ink3); }

.updated { color: var(--ink3); font-size: 15px; }

/* Map embed */
.map-section { margin-top: 40px; }
.map-embed {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-actions { margin-top: 16px; }
@media (max-width: 640px) { .map-embed iframe { height: 300px; } }

@media (max-width: 900px) {
  .grid-3, .cats, .stats, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .grid-3, .grid-2, .cats, .stats, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding: 64px 0 72px; }
  .appcta { padding: 40px 24px; }
  .wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
