/* =====================================================================
   SellPicker — Public site custom styles
   Brand: Sky Blue (#0ea5e9) + Red (#ef4444)
   ===================================================================== */
:root {
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --red: #ef4444;
    --red-dark: #dc2626;
    --ink: #0b1220;
    --grad: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 40%, #ef4444 100%);
}

h1, h2, h3, h4, .font-display { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
html, body { overflow-x: clip; }
::selection { background: var(--sky); color: #fff; }

.text-gradient {
    background: linear-gradient(120deg, #0ea5e9, #38bdf8 35%, #ef4444 75%, #f87171);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.bg-grad { background: var(--grad); }

/* ---------- Logo ---------- */
.logo-mark {
    width: 42px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 18px;
    box-shadow: 0 8px 20px -6px rgba(14,165,233,.6);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
a:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .btn-white, .btn-red {
    display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; border-radius: 14px;
    padding: .8rem 1.4rem; transition: all .3s ease; position: relative; overflow: hidden; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--grad); background-size: 160% 160%; color: #fff; box-shadow: 0 10px 25px -10px rgba(14,165,233,.8); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(239,68,68,.6); }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine .9s ease; }
@keyframes shine { to { left: 140%; } }
.btn-outline { border: 2px solid #e2e8f0; color: #0f172a; background: #fff; }
.btn-outline:hover { border-color: var(--sky); color: var(--sky-dark); transform: translateY(-2px); }
.btn-white { background: #fff; color: #0f172a; box-shadow: 0 10px 25px -10px rgba(0,0,0,.3); }
.btn-white:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
#siteNav.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 30px -12px rgba(15,23,42,.15); }
#siteNav.scrolled .nav-inner { height: 4.25rem; }
.nav-link { position: relative; padding: .55rem 1rem; font-weight: 600; color: #334155; border-radius: 10px; transition: color .25s; }
.nav-link::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px; border-radius: 3px; background: var(--grad); transition: all .3s; transform: translateX(-50%); }
.nav-link:hover, .nav-link.active { color: var(--sky-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 22px; }

.hamburger { width: 46px; height: 46px; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: #f1f5f9; }
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #0f172a; transition: all .35s cubic-bezier(.68,-.55,.27,1.55); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--red); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--red); }
.mobile-menu { max-height: 0; overflow: hidden; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); transition: max-height .45s ease; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
.mobile-menu.open { max-height: 600px; }

/* ---------- Backgrounds ---------- */
.grid-bg {
    background-image: linear-gradient(rgba(148,163,184,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.6) 1px, transparent 1px);
    background-size: 44px 44px;
}
.dot-bg { background-image: radial-gradient(rgba(14,165,233,.25) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.blob { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .55; animation: blobMove 14s ease-in-out infinite; pointer-events: none; }
@keyframes blobMove {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-50px) scale(1.12); }
    66% { transform: translate(-30px,30px) scale(.92); }
}

/* ---------- Section headings ---------- */
.section-badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(239,68,68,.12)); color: var(--sky-dark); border: 1px solid rgba(14,165,233,.25);
}
.section-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.88); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* =====================================================================
   HERO — motion graphics
   ===================================================================== */
.hero { position: relative; min-height: 100vh; padding-top: 7.5rem; overflow: hidden; background: radial-gradient(ellipse at top left, #e0f2fe 0%, #fff 45%), #fff; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(30px) rotateX(-60deg); animation: wordIn .8s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.typing-caret { display: inline-block; width: 3px; height: 1em; background: var(--red); margin-left: 4px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-stage { position: relative; perspective: 1400px; }
.dash-mock {
    position: relative; border-radius: 26px; background: rgba(255,255,255,.75); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.9); box-shadow: 0 40px 80px -30px rgba(2,132,199,.45), 0 0 0 1px rgba(14,165,233,.08);
    transform: rotateY(-10deg) rotateX(6deg); transition: transform .6s ease; animation: floatY 7s ease-in-out infinite;
}
.hero-stage:hover .dash-mock { transform: rotateY(-2deg) rotateX(2deg); }
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.chart-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawLine 3.2s ease forwards .6s, none; }
.chart-line.loop { animation: drawLoop 6s ease-in-out infinite .6s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes drawLoop { 0% { stroke-dashoffset: 1200; } 45%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1200; } }
.chart-area { opacity: 0; animation: fadeIn 1.5s ease forwards 2.2s; }
@keyframes fadeIn { to { opacity: 1; } }

.bar { transform-origin: bottom; transform: scaleY(0); animation: barGrow 1.2s cubic-bezier(.34,1.56,.64,1) forwards, barPulse 4s ease-in-out infinite 2s; }
@keyframes barGrow { to { transform: scaleY(1); } }
@keyframes barPulse { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.75); } }

.float-card {
    position: absolute; background: #fff; border-radius: 18px; padding: .85rem 1rem; z-index: 5;
    box-shadow: 0 25px 50px -18px rgba(15,23,42,.35); border: 1px solid #f1f5f9;
}
.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
.float-c { animation: floatA 8s ease-in-out infinite 1s; }
@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(8px,-18px) rotate(2deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(2deg); } 50% { transform: translate(-10px,16px) rotate(-2deg); } }

.orbit { position: absolute; border: 1.5px dashed rgba(14,165,233,.3); border-radius: 50%; animation: spin 30s linear infinite; }
.orbit.reverse { animation-direction: reverse; animation-duration: 40s; border-color: rgba(239,68,68,.25); }
.orbit .planet { position: absolute; top: -18px; left: 50%; width: 36px; height: 36px; margin-left: -18px; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 20px -6px rgba(0,0,0,.3); animation: spin 30s linear infinite reverse; }
.orbit.reverse .planet { animation-duration: 40s; animation-direction: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--sky), var(--red), transparent); box-shadow: 0 0 18px var(--sky); animation: scan 3.5s ease-in-out infinite; }
@keyframes scan { 0% { top: 8%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 92%; opacity: 0; } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; animation: pulseGreen 1.6s infinite; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.mouse-scroll { width: 26px; height: 42px; border: 2px solid #94a3b8; border-radius: 14px; position: relative; }
.mouse-scroll::before { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Feature cards ---------- */
.feature-card {
    position: relative; padding: 2rem; border-radius: 24px; background: #fff; border: 1px solid #eef2f7;
    transition: all .45s cubic-bezier(.16,1,.3,1); overflow: hidden; isolation: isolate;
}
.feature-card::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .45s; z-index: -1; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -25px rgba(14,165,233,.55); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover * { color: #fff !important; }
.feature-card:hover .f-icon { background: rgba(255,255,255,.2); transform: rotate(-10deg) scale(1.1); }
.f-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; transition: all .45s; }
.feature-card .glow-num { position: absolute; right: 1.25rem; top: .75rem; font-family: Sora; font-size: 4rem; font-weight: 800; color: #f1f5f9; z-index: -1; transition: color .45s; }
.feature-card:hover .glow-num { color: rgba(255,255,255,.15) !important; }

/* ---------- Product showcase ---------- */
.product-card { border-radius: 22px; background: #fff; border: 1px solid #eef2f7; overflow: hidden; transition: all .45s cubic-bezier(.16,1,.3,1); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -25px rgba(15,23,42,.35); }
.product-card .img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f8fafc; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.product-card:hover .img-wrap img { transform: scale(1.1); }
.hot-badge { position: absolute; top: 12px; left: 12px; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--red); box-shadow: 0 6px 16px -4px rgba(239,68,68,.6); }

.filter-chip { padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; background: #f1f5f9; color: #475569; transition: all .25s; }
.filter-chip.active, .filter-chip:hover { background: var(--ink); color: #fff; }

/* ---------- Analytics ---------- */
.analytics-wrap { background: radial-gradient(circle at 20% 20%, rgba(14,165,233,.25), transparent 45%), radial-gradient(circle at 80% 80%, rgba(239,68,68,.22), transparent 45%), var(--ink); }
.glass-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); border-radius: 22px; }
.progress-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width 1.8s cubic-bezier(.16,1,.3,1); }
.ring-svg { transform: rotate(-90deg); }
.ring-svg circle.val { transition: stroke-dashoffset 2s cubic-bezier(.16,1,.3,1); }

/* ---------- How it works ---------- */
.step-line { position: absolute; top: 46px; left: 12%; right: 12%; height: 3px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.step-line span { position: absolute; inset: 0; width: 0; background: var(--grad); transition: width 2.5s ease; }
.step-line.revealed span { width: 100%; }
.step-circle { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; font-size: 30px; color: #fff; position: relative; z-index: 2; transition: transform .4s; }
.step-card:hover .step-circle { transform: translateY(-8px) rotate(-6deg); }

/* ---------- Pricing ---------- */
.price-card { position: relative; border-radius: 28px; padding: 2.5rem 2rem; background: #fff; border: 1px solid #e8eef5; transition: all .45s cubic-bezier(.16,1,.3,1); }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 40px 70px -35px rgba(2,132,199,.5); }
.price-card.popular { background: var(--ink); color: #cbd5e1; border: none; box-shadow: 0 40px 80px -30px rgba(14,165,233,.6); }
.price-card.popular::before { content: ''; position: absolute; inset: -2px; border-radius: 30px; padding: 2px; background: conic-gradient(from var(--angle, 0deg), #0ea5e9, #ef4444, #38bdf8, #0ea5e9); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 4s linear infinite; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotateBorder { to { --angle: 360deg; } }
.popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: .4rem 1.1rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .05em; box-shadow: 0 10px 20px -6px rgba(239,68,68,.7); white-space: nowrap; }

/* ---------- Testimonials ---------- */
.testi-card { width: 360px; flex-shrink: 0; padding: 1.75rem; border-radius: 24px; background: #fff; border: 1px solid #eef2f7; box-shadow: 0 10px 30px -18px rgba(15,23,42,.2); }
.testi-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 45s linear infinite; }
.testi-track.reverse { animation-direction: reverse; }
.testi-row:hover .testi-track { animation-play-state: paused; }
.avatar-grad { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--grad); }

/* ---------- FAQ ---------- */
.faq-item { border-radius: 20px; background: #fff; border: 1px solid #e8eef5; transition: all .3s; }
.faq-item.open { border-color: rgba(14,165,233,.4); box-shadow: 0 20px 40px -25px rgba(14,165,233,.5); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; text-align: left; font-weight: 700; color: #0f172a; }
.faq-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: #f1f5f9; transition: all .35s; }
.faq-item.open .faq-icon { background: var(--red); color: #fff; transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: #64748b; line-height: 1.75; }

/* ---------- CTA ---------- */
.cta-box { position: relative; overflow: hidden; border-radius: 36px; background: var(--grad); background-size: 200% 200%; animation: gradientShift 10s ease infinite; }
.cta-ring { position: absolute; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; animation: ripple 6s linear infinite; }
@keyframes ripple { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Forms ---------- */
.form-input { width: 100%; padding: .9rem 1.1rem; border-radius: 14px; border: 1.5px solid #e2e8f0; background: #fff; transition: all .25s; outline: none; }
.form-input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.form-label { display: block; font-weight: 600; font-size: .9rem; color: #334155; margin-bottom: .45rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 10rem 0 5rem; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px; background: #fff; clip-path: ellipse(70% 100% at 50% 100%); }

/* ---------- Toasts ---------- */
.toast { position: fixed; top: 96px; right: 20px; z-index: 9999; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); font-weight: 600; max-width: 420px; animation: toastIn .5s cubic-bezier(.16,1,.3,1); border-left: 5px solid var(--sky); }
.toast button { margin-left: auto; font-size: 1.4rem; line-height: 1; color: #94a3b8; }
.toast-success { border-color: #22c55e; } .toast-success i { color: #22c55e; }
.toast-error { border-color: var(--red); } .toast-error i { color: var(--red); }
.toast-info i, .toast-warning i { color: var(--sky); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } }

/* ---------- Footer ---------- */
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1.2rem; font-family: Sora; }
.footer-link { transition: all .25s; display: inline-block; }
.footer-link:hover { color: #fff; transform: translateX(5px); }
.social-btn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: all .3s; }
.social-btn:hover { background: var(--grad); transform: translateY(-4px); }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 25px -8px rgba(14,165,233,.7); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Prose (terms etc.) ---------- */
.prose-sp h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 2.2rem 0 .8rem; }
.prose-sp p, .prose-sp li { color: #475569; line-height: 1.85; margin-bottom: .8rem; }
.prose-sp ul { list-style: disc; padding-left: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1023px) { .dash-mock { transform: none; } .step-line { display: none; } }

@media (min-width: 1024px) { .lg\:hidden { display: none !important; } }
