/* ==========================================================================
   Pratik Finance — Shared Design System
   A clean, modern, trustworthy fintech theme.
   ========================================================================== */

:root {
    --primary: #22d3ee;          /* cyan */
    --primary-dark: #0ea5b7;
    --secondary: #3b82f6;        /* blue */
    --accent: #8b5cf6;           /* violet */
    --positive: #34d399;         /* green for "good" values */
    --warning: #fbbf24;

    --bg: #0b0f1a;
    --bg-2: #0f1629;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(34, 211, 238, 0.45);

    --text: #e9eef7;
    --text-dim: #aab4c5;
    --text-muted: #7c879b;

    --gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(59,130,246,0.15));
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 10px 30px rgba(34, 211, 238, 0.18);

    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --header-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,0.12), transparent 60%),
        radial-gradient(1000px 500px at 0% 10%, rgba(139,92,246,0.10), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Header / Nav ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(11, 15, 26, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, border-color .3s ease;
}
.header.scrolled { background: rgba(11, 15, 26, 0.92); border-bottom-color: var(--border-strong); }

.nav {
    max-width: var(--maxw);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.logo .logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--gradient);
    display: grid; place-items: center;
    color: #04121a; font-weight: 900; font-size: 1.05rem;
}
.nav-menu {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}
.nav-menu a {
    text-decoration: none; color: var(--text-dim);
    font-weight: 500; font-size: .95rem;
    position: relative; transition: color .25s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    height: 2px; width: 0; background: var(--gradient); transition: width .25s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .95rem; cursor: pointer;
    border-radius: 999px; padding: .7rem 1.4rem;
    border: 1px solid transparent; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #04121a; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(34,211,238,.32); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--gradient); color: #04121a; border-color: transparent; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: var(--top-pad, var(--header-h)) 0 auto 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: rgba(11,15,26,.98); backdrop-filter: blur(16px);
        padding: .5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform .35s ease; z-index: 999;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-menu .btn { margin-top: .8rem; }
}

/* ---------- Layout helpers ---------- */
main { padding-top: var(--top-pad, var(--header-h)); }
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--primary); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-dim); margin-top: .75rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); margin: 1.25rem 0 2rem; max-width: 540px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.75rem; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; }
.hero-stat .label { color: var(--text-muted); font-size: .85rem; }
.hero-visual {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.hero-visual::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%);
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.product-card { text-align: left; }
.product-top { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.product-name { font-size: 1.15rem; font-weight: 700; }
.product-type { font-size: .78rem; color: var(--text-muted); }
.product-card .highlight {
    font-size: .92rem; color: var(--text-dim); margin-bottom: 1rem; flex-grow: 1;
}
.product-meta { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.product-meta .m-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.product-meta .m-value { font-weight: 700; color: var(--positive); }
.card-actions { display: flex; gap: .6rem; margin-top: auto; }
.card-actions .btn { flex: 1; padding: .65rem 1rem; font-size: .9rem; }

.rating { color: var(--warning); font-size: .9rem; letter-spacing: 1px; }
.rating .count { color: var(--text-muted); margin-left: .35rem; font-size: .8rem; }

.badge {
    position: absolute; top: -10px; right: 16px;
    background: var(--gradient); color: #04121a; font-weight: 700;
    font-size: .72rem; padding: .3rem .7rem; border-radius: 999px;
    box-shadow: var(--shadow-glow);
}

/* ---------- Brand logo badge (CSS, no external images) ---------- */
.brand {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; font-size: 1rem;
    color: #fff; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-lg { width: 68px; height: 68px; min-width: 68px; border-radius: 16px; font-size: 1.35rem; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
    width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
    background: var(--gradient-soft); border: 1px solid var(--border-strong); color: var(--primary);
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .92rem; }

/* ---------- Trust / features ---------- */
.feature { text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { color: var(--text-dim); font-size: .92rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.25rem; }
.tab-btn {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
    padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem;
    transition: all .25s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.active { background: var(--gradient); color: #04121a; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tables / comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.data th, table.data td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: rgba(34,211,238,.08); color: var(--text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.feat { color: var(--text-muted); font-weight: 600; white-space: nowrap; }

/* ---------- Blog ---------- */
.blog-card { overflow: hidden; padding: 0; }
.blog-card .thumb { height: 170px; display: grid; place-items: center; font-size: 2.5rem; }
.blog-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.blog-card h3 { font-size: 1.12rem; margin: .5rem 0 .6rem; line-height: 1.35; }
.blog-card p { color: var(--text-dim); font-size: .92rem; flex-grow: 1; }
.blog-card .read-more { margin-top: 1rem; color: var(--primary); font-weight: 600; text-decoration: none; font-size: .92rem; }
.blog-meta { color: var(--text-muted); font-size: .82rem; margin-top: .6rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.article .meta { color: var(--text-muted); margin: 1rem 0 2rem; font-size: .9rem; }
.article h2 { font-size: 1.5rem; margin: 2.25rem 0 .9rem; }
.article h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; color: var(--primary); }
.article p { color: var(--text-dim); margin-bottom: 1.1rem; }
.article ul, .article ol { color: var(--text-dim); margin: 0 0 1.1rem 1.25rem; }
.article li { margin-bottom: .5rem; }
.article a.inline { color: var(--primary); }

/* ---------- Product detail page ---------- */
.detail-hero { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.detail-hero .titles { flex-grow: 1; }
.detail-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.detail-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.feature-list { list-style: none; }
.feature-list li { padding: .55rem 0 .55rem 1.75rem; position: relative; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; top: .55rem; color: var(--positive); font-weight: 800; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-muted); }
.spec-row .v { font-weight: 700; text-align: right; }
.apply-sticky { position: sticky; top: calc(var(--top-pad, var(--header-h)) + 1rem); }
.apply-box { background: var(--gradient-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.apply-box .big-value { font-size: 1.6rem; font-weight: 800; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: var(--surface); border: none; color: var(--text); padding: 1.1rem 1.3rem; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.faq-q .chev { transition: transform .3s ease; color: var(--primary); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--text-dim); padding: 0 1.3rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.3rem 1.2rem; }

/* ---------- Disclaimer / notes ---------- */
.note {
    background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--warning);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; color: var(--text-dim); font-size: .88rem;
}
.affiliate-note { font-size: .82rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.25); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .95rem; margin-bottom: 1rem; color: var(--text); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .6rem; }
.footer a { color: var(--text-dim); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer a:hover { color: var(--primary); }
.footer .brand-blurb { color: var(--text-dim); font-size: .9rem; margin-top: 1rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--text-dim); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-dim); text-decoration: none; font-size: .9rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--primary); }

/* ==========================================================================
   DYNAMIC FX  —  animated space background, 3D tilt, glow, entrances.
   Injected site-wide by js/main.js so every page gets it automatically.
   IMPORTANT: entrance animations always END visible — content can never
   get stuck hidden.
   ========================================================================== */

/* ---------- Animated space background ---------- */
.space-bg {
    position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.space-bg .star {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8);
    animation: twinkle var(--dur,4s) ease-in-out infinite alternate;
}
.space-bg .comet {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary), 0 0 24px rgba(34,211,238,.6);
    animation: cometDrift var(--dur,16s) ease-in-out infinite;
}
.space-bg .planet {
    position: absolute; border-radius: 50%; opacity: .35; filter: blur(.5px);
    animation: planetDrift var(--dur,24s) ease-in-out infinite, spin var(--dur,24s) linear infinite;
}
.space-bg .planet.p1 { width: 90px; height: 90px; background: radial-gradient(circle at 30% 30%, #ec4899, #7c3aed); box-shadow: 0 0 40px rgba(236,72,153,.35); }
.space-bg .planet.p2 { width: 130px; height: 130px; background: radial-gradient(circle at 30% 30%, #22d3ee, #3b82f6); box-shadow: 0 0 50px rgba(34,211,238,.3); }
.space-bg .planet.p3 { width: 60px; height: 60px; background: radial-gradient(circle at 30% 30%, #8b5cf6, #4f46e5); box-shadow: 0 0 30px rgba(139,92,246,.35); }
.space-bg .meteor {
    position: absolute; width: 2px; height: 2px; background: #fff;
    box-shadow: 0 0 10px 1px rgba(255,255,255,.7);
    animation: meteorShot var(--dur,3s) linear infinite;
}
.space-bg .meteor::after {
    content: ''; position: absolute; top: 0; left: 0; width: 90px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.7), transparent);
    transform: translateX(-90px) rotate(0deg); transform-origin: right center;
}
.space-bg .glow-orb {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .25;
    animation: orbFloat var(--dur,18s) ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: .15; transform: scale(.8); } to { opacity: .9; transform: scale(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cometDrift {
    0%   { transform: translate(0,0) scale(1); opacity: .4; }
    50%  { transform: translate(-12vw, 9vh) scale(1.3); opacity: 1; }
    100% { transform: translate(0,0) scale(1); opacity: .4; }
}
@keyframes planetDrift {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(6vw,-5vh); }
}
@keyframes meteorShot {
    0%   { transform: translate(0,0) rotate(35deg); opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translate(-115vw, 85vh) rotate(35deg); opacity: 0; }
}
@keyframes orbFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(40px,-30px) scale(1.15); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #22d3ee, #3b82f6);
    background-size: 300% 100%; box-shadow: 0 0 12px rgba(34,211,238,.6);
    animation: gradShift 4s linear infinite; transition: width .12s ease-out;
}
@keyframes gradShift { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }

/* ---------- Animated gradient text glow ---------- */
.gradient-text {
    background-size: 220% auto;
    animation: textShine 6s ease-in-out infinite;
}
@keyframes textShine { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.hero h1 { filter: drop-shadow(0 6px 30px rgba(34,211,238,.18)); }

/* ---------- 3D tilt on cards ---------- */
.tilt {
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .3s ease, border-color .3s ease;
    will-change: transform;
}
.tilt .product-top,
.tilt .highlight,
.tilt .card-actions,
.tilt .feature-icon,
.tilt h3 { transform: translateZ(28px); }
.tilt .badge { transform: translateZ(45px); }
.tilt:hover { box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 30px rgba(34,211,238,.18); border-color: var(--border-strong); }
.tilt .shine {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.16), transparent 45%);
    opacity: 0; transition: opacity .3s ease;
}
.tilt:hover .shine { opacity: 1; }

/* ---------- Entrance animations (always end visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .anim-up { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
    .anim-pop { animation: popIn .6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: none; } }

/* Stagger product cards within a grid */
.grid .product-card:nth-child(1) { animation-delay: .04s; }
.grid .product-card:nth-child(2) { animation-delay: .12s; }
.grid .product-card:nth-child(3) { animation-delay: .20s; }
.grid .product-card:nth-child(4) { animation-delay: .28s; }

/* Floating hero visual */
.hero-visual { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Button sheen sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

@media (max-width: 860px) {
    .space-bg .planet { display: none; }   /* keep mobile light */
}

/* ==========================================================================
   SEARCH BAR  (injected into the header on every page by main.js)
   ========================================================================== */
.search-strip {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 998;
    background: rgba(11, 15, 26, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
}
.search-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; }
.search-box {
    display: flex; align-items: center; gap: .6rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: .55rem 1rem; transition: border-color .25s ease, box-shadow .25s ease;
}
.search-box:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.search-box .ico { color: var(--text-muted); font-size: 1.05rem; line-height: 1; }
.search-box input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-size: .98rem; font-family: inherit; min-width: 0;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box .clear {
    background: var(--surface-2); border: none; color: var(--text-dim); cursor: pointer;
    width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; font-size: .9rem; line-height: 1;
}
.search-box .clear.show { display: grid; }

.search-results {
    position: absolute; left: 1.5rem; right: 1.5rem; top: calc(100% + .5rem);
    background: #0d1424; border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: var(--shadow); overflow: hidden; max-height: 70vh; overflow-y: auto;
    display: none; z-index: 1200;
}
.search-results.show { display: block; }
.search-result {
    display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem;
    text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); cursor: pointer;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--surface-2); }
.search-result .r-name { font-weight: 600; font-size: .95rem; }
.search-result .r-sub { font-size: .8rem; color: var(--text-muted); }
.search-result .r-val { margin-left: auto; font-weight: 700; color: var(--positive); font-size: .85rem; white-space: nowrap; }
.search-empty { padding: 1.1rem 1rem; color: var(--text-muted); font-size: .9rem; text-align: center; }
.search-cat { padding: .5rem 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: rgba(34,211,238,.06); }

@media (max-width: 560px) {
    .search-result .r-val { display: none; }
}

/* ==========================================================================
   MOBILE OPTIMISATION  —  refined spacing, sizing and touch ergonomics.
   ========================================================================== */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-head { margin-bottom: 2rem; }
    .container { padding: 0 1.1rem; }
    .hero { padding: 2rem 0 2.5rem; }
    .hero-grid { gap: 2rem; }
    .hero p.lead { font-size: 1.05rem; }
    .hero-cta { gap: .7rem; }
    .hero-cta .btn { flex: 1; }                 /* full-width-ish CTAs */
    .hero-stats { gap: 1.5rem; margin-top: 2rem; }
    .hero-stat .num { font-size: 1.5rem; }

    /* Comfortable tap targets */
    .btn { padding: .8rem 1.3rem; }
    .card-actions { flex-direction: column; }
    .card-actions .btn { width: 100%; }
    .nav-menu a { padding: 1rem 0; font-size: 1.05rem; }

    /* Product detail */
    .detail-hero { gap: 1rem; }
    .detail-hero .btn { width: 100%; }
    .apply-sticky { position: static; }         /* no sticky on small screens */

    /* Comparison: let the table breathe */
    table.data th, table.data td { padding: .8rem .7rem; font-size: .9rem; }
    .chip { font-size: .85rem; padding: .5rem .8rem; }

    /* Footer */
    .footer-grid { gap: 1.5rem; }

    /* Search bar comfort */
    .search-box { padding: .6rem .9rem; }
    .search-box input { font-size: 16px; }      /* prevents iOS zoom-on-focus */
}

@media (max-width: 420px) {
    .hero h1 { font-size: 1.85rem; }
    .section-title { font-size: 1.5rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat .num { font-size: 1.3rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer .brand-blurb { margin: 1rem auto 0; }
}

/* Larger, easier touch feedback (no hover lift jitter on touch) */
@media (hover: none) {
    .card:hover, .tilt:hover { transform: none; }
    .btn-primary:hover { transform: none; }
}

/* ==========================================================================
   "COMING SOON" MODAL  (for products without a live referral yet)
   ========================================================================== */
.cs-overlay {
    position: fixed; inset: 0; z-index: 3000; display: none;
    align-items: center; justify-content: center; padding: 1.5rem;
    background: rgba(5, 8, 15, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cs-overlay.show { display: flex; animation: fadeIn .25s ease; }
.cs-modal {
    position: relative; width: 100%; max-width: 430px; text-align: center;
    background: linear-gradient(180deg, #121a2e, #0d1424);
    border: 1px solid var(--border-strong); border-radius: 22px;
    padding: 2.4rem 2rem 2rem; box-shadow: var(--shadow);
    animation: popIn .35s cubic-bezier(.2,.7,.2,1);
}
.cs-badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--primary); padding: .35rem .8rem;
    border: 1px solid var(--border-strong); border-radius: 999px; margin-bottom: 1.1rem;
}
.cs-emoji { font-size: 3rem; line-height: 1; display: block; margin-bottom: .6rem; }
.cs-modal h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .6rem; }
.cs-modal p { color: var(--text-dim); margin-bottom: 1.6rem; font-size: .98rem; }
.cs-modal p .cs-name { color: var(--text); font-weight: 700; }
.cs-actions { display: flex; flex-direction: column; gap: .65rem; }
.cs-close {
    position: absolute; top: .7rem; right: .9rem; background: var(--surface-2);
    border: none; color: var(--text-dim); width: 34px; height: 34px; border-radius: 50%;
    font-size: 1.2rem; line-height: 1; cursor: pointer; transition: all .2s ease;
}
.cs-close:hover { color: var(--text); background: var(--border); }

/* ==========================================================================
   PROCOINS + REWARDS
   ========================================================================== */
.reward {
    display: flex; align-items: center; gap: .55rem;
    background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(251,191,36,.12));
    border: 1px solid rgba(52,211,153,.35); border-radius: 12px;
    padding: .6rem .75rem; margin-bottom: 1rem; font-size: .9rem; line-height: 1.3;
}
.reward .reward-ico { font-size: 1.05rem; }
.reward .cash { color: var(--positive); font-weight: 700; }
.reward .coins { color: #fbbf24; font-weight: 700; }
.reward .plus { color: var(--text-muted); font-weight: 700; margin: 0 .1rem; }
.reward-big { font-size: 1.02rem; padding: .85rem 1rem; border-radius: 14px; justify-content: center; margin: 1rem 0 .4rem; }

.procoin-note { font-size: .76rem; color: var(--text-muted); text-align: center; }
.procoin-note b { color: #fbbf24; }

/* Intro banner */
.procoin-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    background:
        radial-gradient(600px 200px at 10% 0%, rgba(251,191,36,.18), transparent 70%),
        linear-gradient(135deg, rgba(251,191,36,.10), rgba(34,211,238,.10));
    border: 1px solid rgba(251,191,36,.35); border-radius: 22px;
    padding: 1.6rem 1.9rem; margin-top: 1rem; position: relative; overflow: hidden;
}
.procoin-banner .pc-left { display: flex; align-items: center; gap: 1.1rem; }
.pc-emoji {
    font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 14px rgba(251,191,36,.4));
    animation: floaty 5s ease-in-out infinite;
}
.procoin-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .25rem; }
.procoin-banner h3 .coin-word { color: #fbbf24; }
.procoin-banner p { color: var(--text-dim); font-size: .96rem; max-width: 560px; }
.procoin-banner p b { color: var(--text); }

@media (max-width: 600px) {
    .procoin-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .procoin-banner .btn { width: 100%; }
}

/* ==========================================================================
   PROCOIN ICON (inline SVG coin symbol used everywhere)
   ========================================================================== */
.pc-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.15em; height: 1.15em; vertical-align: -0.15em; margin-right: .15em;
}
.pc-icon svg { width: 100%; height: 100%; }

/* Procoin reward claim section */
.claim-banner {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 1.5rem 1.75rem; display: flex; align-items: flex-start; gap: 1.1rem;
    flex-wrap: wrap; margin-top: 2rem;
}
.claim-banner .claim-icon { font-size: 1.7rem; line-height: 1; }
.claim-banner h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.claim-banner p { color: var(--text-dim); font-size: .92rem; margin-bottom: .4rem; }
.claim-banner ol { color: var(--text-dim); font-size: .9rem; margin-left: 1rem; }
.claim-banner li { margin-bottom: .3rem; }
.claim-banner .wa-link { color: var(--positive); font-weight: 700; text-decoration: none; }
.claim-banner .wa-link:hover { text-decoration: underline; }

/* ==========================================================================
   PREMIUM UI LAYER  —  v2 polish: glow borders, spotlight, depth, smoothness
   ========================================================================== */

/* ---- Custom scrollbar ---- */
* { scrollbar-width: thin; scrollbar-color: #2bd4ee #0a0e18; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0e18; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px; border: 2px solid #0a0e18;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--secondary), var(--accent)); }

/* ---- Selection colour ---- */
::selection { background: rgba(34,211,238,.3); color: #fff; }

/* ---- Animated conic glow border on cards (desktop hover) ---- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.card { isolation: isolate; }
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg,
                var(--primary) 280deg, var(--accent) 320deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .45s ease; pointer-events: none; z-index: 3;
}
@media (hover: hover) {
    .card:hover::after { opacity: 1; animation: angleSpin 4s linear infinite; }
}
@keyframes angleSpin { to { --angle: 360deg; } }

/* ---- Cursor spotlight that follows mouse across hero & banners ---- */
.spotlight {
    position: relative; overflow: hidden;
}
.spotlight::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 0%),
                rgba(34,211,238,.10), transparent 60%);
    opacity: 0; transition: opacity .4s ease;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---- Buttons: gentle glow pulse + smoother press ---- */
.btn { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .3s ease, color .25s ease; }
.btn-primary { animation: btnGlow 3.5s ease-in-out infinite; }
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(34,211,238,.22); }
    50% { box-shadow: 0 10px 34px rgba(34,211,238,.42); }
}
.btn:active { transform: scale(.97); }

/* ---- Brand badge depth + shimmer ---- */
.brand { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; position: relative; overflow: hidden; }
.card:hover .brand { transform: translateZ(40px) scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.brand::after {
    content: ''; position: absolute; top: -60%; left: -60%; width: 220%; height: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: rotate(25deg) translateX(-120%); transition: transform .7s ease;
}
.card:hover .brand::after { transform: rotate(25deg) translateX(120%); }

/* ---- Section title: animated gradient underline ---- */
.section-title { position: relative; display: inline-block; }
.section-head .section-title::after {
    content: ''; display: block; height: 3px; width: 0; margin: .65rem auto 0;
    background: var(--gradient); border-radius: 3px; transition: width .7s cubic-bezier(.2,.7,.2,1);
}
.section-head.in-view .section-title::after { width: 64px; }

/* ---- Reveal: smoother with subtle blur-in ---- */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; filter: blur(6px); }
.reveal.visible { filter: blur(0); }

/* ---- Hero heading: layered glow ---- */
.hero h1 { letter-spacing: -0.03em; }
.hero-visual { box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px var(--border) inset; }

/* ---- ProCoin banner spotlight + lift ---- */
.procoin-banner { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.procoin-banner:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(251,191,36,.18); }

/* ---- Count-up number style ---- */
.hero-stat .num { font-variant-numeric: tabular-nums; }

/* ---- Smooth focus rings for accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px;
}

/* ---- Soft top vignette for depth ---- */
body::before {
    content: ''; position: fixed; inset: 0 0 auto 0; height: 220px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(34,211,238,.06), transparent);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-primary, .reveal, .card::after { animation: none !important; }
    .reveal { filter: none; }
}

/* ==========================================================================
   FOOTER — colourful, unique redesign (overrides the base footer styles)
   ========================================================================== */
.footer {
    position: relative;
    border-top: none;
    margin-top: 4rem;
    padding: 3.6rem 0 1.6rem;
    overflow: hidden;
    background:
        radial-gradient(680px 320px at 8% -10%, rgba(139,92,246,.18), transparent 60%),
        radial-gradient(680px 320px at 92% 0%, rgba(34,211,238,.16), transparent 60%),
        radial-gradient(500px 300px at 50% 120%, rgba(236,72,153,.12), transparent 60%),
        linear-gradient(180deg, rgba(13,18,32,.5), rgba(7,10,18,.96));
}

/* Animated rainbow strip across the top */
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #22d3ee);
    background-size: 200% 100%;
    animation: footerBar 6s linear infinite;
}
@keyframes footerBar { to { background-position: 200% 0; } }

/* Giant faded brand watermark behind the content */
.footer::after {
    content: 'Pratik Finance';
    position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%);
    font-size: clamp(3.5rem, 13vw, 10rem); font-weight: 900; letter-spacing: -0.05em;
    white-space: nowrap; pointer-events: none; z-index: 0; line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer .container { position: relative; z-index: 1; }

/* Logo mark glow */
.footer .logo .logo-mark { box-shadow: 0 6px 20px rgba(34,211,238,.45); }

/* Headings with gradient accent underline */
.footer h4 {
    position: relative; padding-bottom: .6rem; margin-bottom: 1.1rem;
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.footer h4::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px;
    border-radius: 2px; background: var(--gradient);
}

/* Link interactions — arrow slides in, text shifts and brightens */
.footer ul li { margin-bottom: .55rem; }
.footer ul li a {
    display: inline-flex; align-items: center; color: var(--text-dim);
    text-decoration: none; font-size: .9rem; transition: color .25s ease, transform .25s ease;
}
.footer ul li a::before {
    content: '→'; color: var(--primary); opacity: 0; width: 0; overflow: hidden;
    transform: translateX(-6px); transition: opacity .25s ease, width .25s ease, transform .25s ease, margin .25s ease;
}
.footer ul li a:hover { color: var(--primary); transform: translateX(3px); }
.footer ul li a:hover::before { opacity: 1; width: 1em; margin-right: .35rem; transform: translateX(0); }

/* Bottom bar with gradient divider */
.footer-bottom {
    position: relative; border-top: none; margin-top: 2.8rem; padding-top: 1.6rem;
    color: var(--text-muted); font-size: .85rem;
}
.footer-bottom::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), rgba(139,92,246,.5), transparent);
}

.footer .brand-blurb { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
    .footer::before { animation: none; }
}

/* ==========================================================================
   Founder credit + Ecosystem (entity / SEO linking)
   ========================================================================== */
.founder-credit{display:inline-flex;align-items:center;gap:.9rem;margin:2rem auto 0;padding:.7rem 1.2rem .7rem .7rem;border:1px solid var(--border);border-radius:100px;background:var(--surface);text-decoration:none;transition:border-color .35s,transform .35s,background .35s}
.founder-credit:hover{border-color:var(--border-strong);transform:translateY(-2px);background:var(--surface-2)}
.founder-credit img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid rgba(34,211,238,.4);flex:none}
.founder-credit-text{display:flex;flex-direction:column;line-height:1.25}
.founder-credit-label{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted)}
.founder-credit-text strong{font-size:1.02rem;color:var(--text)}
.founder-credit-text em{font-style:normal;font-size:.78rem;color:var(--primary);margin-top:1px}
.footer-bottom a{color:var(--primary);text-decoration:none}
.footer-bottom a:hover{text-decoration:underline}
/* center the founder credit within the about section */
#about .founder-credit{display:flex;width:fit-content}
