/* ============ SocietyCart marketing site ============ */
:root {
  --blue-deep: #0b1e6b;
  --blue: #1f4fff;
  --blue-bright: #4f8cff;
  --green: #2eaf5b;
  --green-bright: #57d187;
  --orange: #f5a623;
  --orange-deep: #f57a1f;
  --ink: #0f1533;
  --muted: #5b6178;
  --bg: #f6f8ff;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgba(15, 30, 90, 0.35);
  --grad: linear-gradient(120deg, var(--orange) 0%, var(--green) 48%, var(--blue-bright) 100%);
  --grad-blue: linear-gradient(120deg, var(--blue) 0%, var(--blue-bright) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-light {
  background: linear-gradient(120deg, #ffd27a, #b6ffcf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent { color: var(--green); }

/* ---------- animated aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-1 { width: 520px; height: 520px; background: var(--orange); top: -120px; left: -80px; animation: drift 18s ease-in-out infinite; }
.blob-2 { width: 480px; height: 480px; background: var(--green-bright); top: 20%; right: -120px; animation: drift 22s ease-in-out infinite reverse; }
.blob-3 { width: 560px; height: 560px; background: var(--blue-bright); bottom: -160px; left: 10%; animation: drift 26s ease-in-out infinite; }
.blob-4 { width: 380px; height: 380px; background: #b48bff; top: 55%; left: 45%; animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px,-40px) scale(1.1); }
  66% { transform: translate(-40px,50px) scale(0.95); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 5vw, 4rem);
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(15,30,90,0.06);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(15,30,90,.4); background: rgba(255,255,255,.9); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; }
.brand-logo { width: 40px; height: 40px; }
.brand-name .accent { color: var(--green); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--grad); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.btn-nav { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: inherit; cursor: pointer;
  padding: .7rem 1.3rem; border-radius: 999px; border: 0;
  transition: transform .2s, box-shadow .25s, filter .2s; white-space: nowrap;
}
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 14px 30px -10px rgba(31,79,255,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(31,79,255,.7); }
.btn-ghost { background: rgba(31,79,255,.08); color: var(--blue); }
.btn-ghost:hover { background: rgba(31,79,255,.15); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-deep); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.btn-white:hover { transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem) 3rem;
  max-width: 1240px; margin: 0 auto;
}
.pill {
  display: inline-block; background: rgba(245,166,35,.15); color: var(--orange-deep);
  font-weight: 700; font-size: .85rem; padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.12rem; margin: 1.3rem 0 2rem; max-width: 33rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.6rem; }
.trust div strong { display: block; font-size: 1.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust div span { color: var(--muted); font-size: .85rem; }
.trust .divider { width: 1px; height: 34px; background: rgba(15,30,90,.12); }

/* ---------- phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 44px;
  background: linear-gradient(160deg, #10131f, #232a45); padding: 14px;
  box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg);} 50% { transform: translateY(-16px) rotate(1deg);} }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background:#10131f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: var(--bg); overflow: hidden; padding: 2.4rem 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.app-top { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--muted); }
.app-top .app-logo { width: 26px; height: 26px; }
.app-top b { color: var(--ink); }
.app-search { background:#fff; border-radius: 12px; padding: .6rem .8rem; font-size: .78rem; color: #9aa0b8; box-shadow: 0 6px 14px -8px rgba(15,30,90,.3); }
.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.prod { background:#fff; border-radius: 14px; padding: .5rem; text-align: center; font-size: .62rem; box-shadow: 0 6px 16px -10px rgba(15,30,90,.35); }
.prod span { display:block; color: var(--muted); margin: .2rem 0; }
.prod b { color: var(--blue); }
.prod-img { font-size: 1.4rem; height: 34px; display:flex; align-items:center; justify-content:center; border-radius: 10px; }
.i1{background:#eef4ff}.i2{background:#fff5e6}.i3{background:#fdeede}.i4{background:#eafbef}.i5{background:#eef4ff}.i6{background:#fff5e6}
.app-track { background:#fff; border-radius: 14px; padding: .7rem .8rem; margin-top: auto; box-shadow: 0 6px 16px -10px rgba(15,30,90,.35); }
.track-row { display:flex; align-items:center; gap:.5rem; font-size:.72rem; padding:.18rem 0; color: var(--muted); }
.dot { width: 10px; height:10px; border-radius:50%; background:#d5d9ea; flex:none; }
.dot.done { background: var(--green); }
.dot.live { background: var(--orange); box-shadow:0 0 0 0 rgba(245,166,35,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(245,166,35,.55);} 70%{box-shadow:0 0 0 10px rgba(245,166,35,0);} 100%{box-shadow:0 0 0 0 rgba(245,166,35,0);} }

.float-card { position:absolute; background:#fff; border-radius: 14px; padding:.6rem .9rem; font-weight:700; font-size:.82rem; box-shadow: var(--shadow); }
.fc-1 { top: 12%; left: -6%; color: var(--orange-deep); animation: floaty 5s ease-in-out infinite; }
.fc-2 { bottom: 14%; right: -8%; color: var(--green); animation: floaty 7s ease-in-out infinite reverse; }

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(3rem,7vw,6rem) clamp(1rem,5vw,4rem); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow { display:inline-block; font-weight:800; letter-spacing:.12em; text-transform:uppercase; font-size:.78rem; color: var(--blue); margin-bottom:.7rem; }
.eyebrow.light { color: #ffd27a; }
.section-head h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight:800; letter-spacing:-.02em; line-height:1.14; }
.section-head .sub { color: var(--muted); margin-top:.8rem; font-size:1.05rem; }

/* ---------- feature cards ---------- */
.cards { display:grid; grid-template-columns: repeat(3,1fr); gap:1.4rem; }
.card {
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.6); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: 0 20px 45px -28px rgba(15,30,90,.4);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px -25px rgba(15,30,90,.5); }
.card-ico { width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:1.7rem; margin-bottom:1.1rem; }
.ico-orange { background: linear-gradient(135deg,#ffe6c2,#ffd08a); }
.ico-green { background: linear-gradient(135deg,#cdf5da,#9fe9b8); }
.ico-blue { background: linear-gradient(135deg,#d7e6ff,#a9c8ff); }
.card h3 { font-size:1.18rem; margin-bottom:.5rem; }
.card p { color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display:flex; align-items:flex-start; justify-content:center; gap:0; flex-wrap:wrap; }
.step { flex:1; min-width:220px; max-width:300px; text-align:center; padding:0 1rem; }
.step-num {
  width:66px; height:66px; margin:0 auto 1.1rem; border-radius:50%;
  background: var(--grad); color:#fff; font-weight:800; font-size:1.6rem;
  display:flex; align-items:center; justify-content:center; box-shadow:0 16px 30px -12px rgba(31,79,255,.6);
}
.step h3 { font-size:1.25rem; margin-bottom:.5rem; }
.step p { color: var(--muted); }
.step-line { flex:0 0 60px; height:3px; margin-top:33px; background:linear-gradient(90deg, var(--orange), var(--green)); border-radius:3px; opacity:.5; }

/* ---------- shopkeeper banner ---------- */
.banner {
  display:grid; grid-template-columns: 1.4fr .6fr; align-items:center; gap:2rem;
  background: linear-gradient(120deg, var(--blue-deep), #163bb0 55%, #1f6fd6);
  border-radius: 32px; padding: clamp(2rem,4vw,3.5rem); color:#fff; overflow:hidden; position:relative;
  box-shadow: var(--shadow);
}
.banner::after { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background: radial-gradient(circle, rgba(87,209,135,.5), transparent 70%); }
.banner-copy h2 { font-size: clamp(1.6rem,3.4vw,2.4rem); margin:.4rem 0 1rem; }
.banner-copy p { color: rgba(255,255,255,.85); margin-bottom:1.6rem; max-width:34rem; }
.banner-art { font-size: clamp(3rem,7vw,5rem); text-align:center; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }

/* ---------- apps ---------- */
.app-cols { display:grid; grid-template-columns: repeat(2,1fr); gap:1.6rem; max-width:900px; margin:0 auto; }
.app-col {
  background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border-radius: var(--radius);
  padding: 2.2rem; text-align:center; border:1px solid rgba(255,255,255,.6);
  box-shadow: 0 20px 45px -28px rgba(15,30,90,.4); transition: transform .3s;
}
.app-col:hover { transform: translateY(-6px); }
.app-col-logo { width:72px; height:72px; margin:0 auto 1rem; }
.app-col h3 { font-size:1.35rem; }
.app-col p { color: var(--muted); margin:.6rem 0 1.4rem; }
.store-btns { display:flex; gap:.7rem; justify-content:center; flex-wrap:wrap; }
.store {
  background: var(--ink); color:#fff; font-weight:700; font-size:.9rem;
  padding:.7rem 1.1rem; border-radius:12px; transition: transform .2s, filter .2s;
}
.store:hover { transform: translateY(-3px); filter:brightness(1.15); }

/* ---------- footer ---------- */
.footer { background: var(--blue-deep); color:#cdd5f5; padding: clamp(2.5rem,5vw,4rem) clamp(1rem,5vw,4rem) 2rem; margin-top:2rem; }
.footer-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:2rem; }
.footer-brand .brand { color:#fff; margin-bottom:.8rem; }
.footer-brand p { max-width:24rem; color:#9aa6d8; }
.footer-col h4 { color:#fff; margin-bottom:.9rem; font-size:1rem; }
.footer-col a { display:block; color:#9aa6d8; margin-bottom:.55rem; transition:color .2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { max-width:1100px; margin:2.5rem auto 0; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; font-size:.85rem; color:#8a96cc; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i,0) * 80ms); }
.reveal.in { opacity:1; transform:none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align:center; }
  .hero-cta, .trust { justify-content:center; }
  .lead { margin-left:auto; margin-right:auto; }
  .hero-visual { margin-top:1rem; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .banner { grid-template-columns: 1fr; text-align:center; }
  .banner-copy p { margin-left:auto; margin-right:auto; }
  .step-line { display:none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display:none; }
  .cards, .app-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust { gap:.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .phone, .float-card, .dot.live { animation: none; }
  .reveal { opacity:1; transform:none; transition:none; }
}
