/* Fengle website — brand tokens mirror userapp/src/theme.ts */
:root {
  --violet: #4B18A6;
  --violet-mid: #6423C9;
  --violet-deep: #2E0C6E;
  --violet-tint: #EFE6FB;
  --gold: #D99A1F;
  --gold-soft: #FCEED3;
  --ink: #251C21;
  --body: #4A3C42;
  --muted: #6B5C63;
  --cream: #FCF9F5;
  --border: #E9DFD6;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(46, 12, 110, .35);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(233, 223, 214, .6);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--violet); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); padding: 10px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: var(--white); box-shadow: 0 10px 24px -10px rgba(75, 24, 166, .7); }
.btn-primary:hover { background: var(--violet-mid); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 10px 24px -10px rgba(217, 154, 31, .8); }
.btn-ghost { background: transparent; color: var(--violet); border: 1.5px solid var(--violet); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(217, 154, 31, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(100, 35, 201, .6), transparent 60%),
    linear-gradient(135deg, var(--violet-deep), var(--violet) 55%, var(--violet-mid));
  color: var(--white);
  padding: 80px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,154,31,.25); }
.hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 68px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .85); max-width: 540px; margin-bottom: 32px; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d0a12; color: var(--white);
  padding: 10px 20px 10px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .15s, box-shadow .15s;
}
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store strong { display: block; font-size: 18px; line-height: 1.2; }
.store.soon { background: rgba(255,255,255,.08); cursor: default; }
.store.soon:hover { transform: none; box-shadow: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats div strong { display: block; font-size: 22px; color: var(--white); }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.7); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; border-radius: 44px; background: #120a24;
  padding: 12px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-4deg); animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
.screen { width: 100%; height: 100%; border-radius: 34px; background: var(--cream); overflow: hidden; position: relative; }
.screen-top { background: var(--violet); padding: 34px 16px 18px; color: var(--white); }
.screen-top .loc { font-size: 10px; opacity: .75; }
.screen-top .addr { font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.screen-top .search { background: var(--white); color: #9B8D93; border-radius: 12px; padding: 9px 12px; font-size: 11px; }
.screen-body { padding: 14px; }
.screen-body h5 { font-size: 12px; color: var(--ink); margin-bottom: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cat { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 10px 4px; text-align: center; font-size: 9.5px; font-weight: 700; color: var(--ink); }
.cat span { display: block; font-size: 22px; margin-bottom: 4px; }
.offer { background: linear-gradient(120deg, var(--gold), #E9B44C); color: var(--white); border-radius: 14px; padding: 12px; font-size: 11px; }
.offer b { display: block; font-size: 14px; }
.dish { display: flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 8px; margin-top: 10px; }
.dish .thumb { width: 42px; height: 42px; border-radius: 10px; background: var(--gold-soft); display: grid; place-items: center; font-size: 22px; }
.dish div { font-size: 10px; flex: 1; }
.dish div b { display: block; color: var(--ink); font-size: 11px; }
.dish .add { font-size: 10px; font-weight: 800; color: var(--violet); border: 1px solid var(--violet); border-radius: 8px; padding: 3px 8px; }
.float-card {
  position: absolute; background: var(--white); color: var(--ink); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.float-card i { font-style: normal; font-size: 22px; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.fc-1 { top: 60px; left: -10px; animation: float2 5s ease-in-out infinite; }
.fc-2 { bottom: 70px; right: -10px; animation: float2 5s ease-in-out 1.2s infinite; }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 90px; }
  .hero .container { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 20px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--white); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--violet); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 18px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--muted); }
.bg-cream { background: var(--cream); }
.bg-tint { background: var(--violet-tint); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: 'Fraunces', Georgia, serif; font-size: 56px; font-weight: 700;
  color: var(--violet-tint); position: absolute; top: 14px; right: 22px; line-height: 1;
}
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet); color: var(--white); font-size: 26px; margin-bottom: 20px;
}
.icon.gold { background: var(--gold); }
.step h3, .feature h3 { font-size: 21px; margin-bottom: 8px; }
.step p, .feature p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  border-radius: var(--radius); padding: 26px 22px; color: var(--white); min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transition: transform .2s;
}
.cat-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.cat-card .emo { font-size: 44px; line-height: 1; }
.cat-card h3 { color: var(--white); font-size: 21px; }
.cat-card p { font-size: 13px; opacity: .85; }
.c1 { background: linear-gradient(140deg, #4B18A6, #7B3FE0); }
.c2 { background: linear-gradient(140deg, #C9821A, #E9B44C); }
.c3 { background: linear-gradient(140deg, #2F7D4F, #4FA875); }
.c4 { background: linear-gradient(140deg, #A03A2B, #D0624E); }
.c5 { background: linear-gradient(140deg, #2E0C6E, #6423C9); }
.c6 { background: linear-gradient(140deg, #8A4B12, #C77E2F); }
.c7 { background: linear-gradient(140deg, #6B2F8F, #B45AC4); }
.c8 { background: linear-gradient(140deg, #1F4E79, #3C7CB8); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Kolkata banner */
.kolkata { padding: 0; background: var(--white); }
.kolkata img { width: 100%; max-width: 1400px; margin: 0 auto; }
@media (min-width: 769px) { .kolkata img { max-width: none; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.price-card { background: var(--white); border-radius: 24px; padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.price-card h3 { font-size: 24px; margin-bottom: 18px; }
.price-list { list-style: none; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.price-list li:last-child { border-bottom: 0; }
.price-list li span:last-child { font-weight: 800; color: var(--ink); text-align: right; }
.pay-card { background: linear-gradient(150deg, var(--violet-deep), var(--violet)); color: var(--white); border-radius: 24px; padding: 36px; }
.pay-card h3 { color: var(--white); font-size: 24px; margin-bottom: 10px; }
.pay-card p { color: rgba(255,255,255,.8); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.secure { margin-top: 24px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* Split (riders / partners) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { border-radius: 26px; padding: 44px; position: relative; overflow: hidden; }
.split-card h3 { font-size: 30px; margin-bottom: 12px; }
.split-card p { margin-bottom: 22px; }
.split-card ul { list-style: none; margin-bottom: 28px; }
.split-card li { padding-left: 30px; position: relative; margin-bottom: 10px; font-weight: 600; }
.split-card li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.rider { background: var(--gold-soft); }
.rider li::before { background: var(--gold); color: var(--white); }
.partner { background: var(--violet-tint); }
.partner li::before { background: var(--violet); color: var(--white); }
.split-card .big-emo { position: absolute; right: -10px; bottom: -20px; font-size: 140px; opacity: .15; transform: rotate(-12deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-card { padding: 32px 26px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--violet); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* CTA band */
.cta {
  margin: 0 20px; border-radius: 32px; padding: 72px 40px; text-align: center; color: var(--white);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(217,154,31,.35), transparent 60%),
    linear-gradient(135deg, var(--violet-deep), var(--violet-mid));
  position: relative; overflow: hidden;
}
.cta h2 { color: var(--white); font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 30px; }
.cta .store-row { justify-content: center; margin-bottom: 0; }
.cta-wrap { max-width: var(--max); margin: 0 auto; padding-bottom: 96px; }

/* ---------- Footer ---------- */
footer { background: #150A2E; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--gold); text-decoration: none; }
.foot-brand img { width: 150px; margin: -24px 0 -10px -12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / inner pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: var(--white); padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); }
.crumbs { font-size: 13px; margin-bottom: 14px; color: rgba(255,255,255,.7); }
.crumbs a { color: var(--gold); }
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 860px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--cream); color: var(--ink); }
.note { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; margin: 20px 0; color: var(--ink); }
.toc { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; }
.toc strong { color: var(--ink); }
.toc ol { margin: 10px 0 0; columns: 2; }
.toc li { margin-bottom: 4px; }
@media (max-width: 600px) { .toc ol { columns: 1; } .legal table { font-size: 14px; } }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 40px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.contact-card .icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 14px; }
.contact-card h3 { margin: 0 0 6px; font-size: 18px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { font-weight: 700; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
