/* =========================================================
   Sourasell — digital products marketplace
   ========================================================= */
:root {
    --rx: #10b981;
    --rx-d: #059669;
    --rx-dd: #047857;
    --accent: #f59e0b;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #94a3b8;
    --line: #e7eaf1;
    --bg: #f5fbf8;
    --bg-soft: #eaf6f0;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(15, 23, 42, .07), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow-lg: 0 24px 60px rgba(5, 150, 105, .16);
    --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--rx) 0%, var(--rx-dd) 100%); color: #fff; box-shadow: 0 10px 24px rgba(5, 150, 105, .32); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(5, 150, 105, .42); }
.btn--ghost { background: #fff; color: var(--rx-d); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--rx); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--block { width: 100%; }
.btn--lg { height: 56px; font-size: 16px; padding: 0 30px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--rx), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; box-shadow: 0 6px 16px rgba(16, 185, 129,.4); }
.brand__name b { color: var(--rx-d); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 70px; background: radial-gradient(1100px 600px at 50% -18%, #e6f9f1 0%, transparent 60%), radial-gradient(620px 420px at 102% 45%, #fef3e0 0%, transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hero h1 { font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin: 20px 0 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--rx), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 30ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 40px; }
.hero__stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero__stats span { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* hero visual */
.hero__visual { position: relative; }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; }
.hero__card .thumb { height: 150px; border-radius: 14px; background: linear-gradient(135deg, var(--rx), var(--accent)); display: grid; place-items: center; color: #fff; }
.hero__card .thumb .material-symbols-rounded { font-size: 56px; }
.hero__card h4 { font-size: 16px; font-weight: 700; margin: 14px 4px 2px; }
.hero__card .row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.hero__card .price { font-size: 18px; font-weight: 800; color: var(--rx-d); }
.hero__card .by { font-size: 12.5px; color: var(--ink-3); }
.hero__float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; }
.hero__float.one { top: -18px; right: 10px; }
.hero__float.two { bottom: -16px; left: -18px; }
.hero__float .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; }

/* ---------- Section ---------- */
.section { padding: 70px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.section__head p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.section__bar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section__bar h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.section__bar a { color: var(--rx-d); font-weight: 700; font-size: 14px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__thumb { height: 140px; display: grid; place-items: center; color: #fff; }
.product__thumb .material-symbols-rounded { font-size: 46px; }
.product__body { padding: 16px; }
.product__cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rx-d); }
.product__title { font-size: 15.5px; font-weight: 700; margin: 5px 0 10px; line-height: 1.3; }
.product__foot { display: flex; align-items: center; justify-content: space-between; }
.product__price { font-size: 17px; font-weight: 800; }
.product__by { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.cat:hover { transform: translateY(-3px); }
.cat .ic { width: 50px; height: 50px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.cat span { font-size: 13.5px; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .n { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--rx), var(--rx-dd)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 750; }
.step p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta { background: linear-gradient(135deg, var(--rx) 0%, var(--rx-dd) 55%, var(--accent) 130%); border-radius: 28px; padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta h2 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.cta p { opacity: .92; font-size: 17px; margin: 12px 0 26px; }

/* ---------- Forms / auth card ---------- */
.formwrap { max-width: 560px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 34px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 7px 2px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 13px 16px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rx); box-shadow: 0 0 0 4px rgba(16, 185, 129,.14); }
.field .hint { font-size: 12px; color: var(--ink-3); margin: 6px 2px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.input-prefix span { padding: 0 14px; color: var(--ink-3); font-weight: 700; background: var(--bg-soft); align-self: stretch; display: flex; align-items: center; }
.input-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: #0b1020; color: #cbd5e1; padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { font-size: 14px; color: #94a3b8; max-width: 32ch; }
.footer h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: 14px; color: #94a3b8; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #64748b; text-align: center; }

/* ---------- gradients ---------- */
.g1 { background: linear-gradient(135deg, #10b981, #8b5cf6); }
.g2 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.g3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.g4 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g5 { background: linear-gradient(135deg, #10b981, #22c55e); }
.g6 { background: linear-gradient(135deg, #8b5cf6, #10b981); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 40px; }
    .hero p { max-width: none; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .cats { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav__links { display: none; }
    .section__head h2 { font-size: 28px; }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 33px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cats { grid-template-columns: repeat(2, 1fr); }
    .cta { padding: 36px 22px; }
    .cta h2 { font-size: 26px; }
    .card { padding: 22px; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero__stats { gap: 22px; }
    .nav__actions .btn--ghost { display: none; }
}
