:root {
    --bg-1: #f8f7ff;
    --bg-2: #fff9fb;
    --ink: #101014;
    --muted: #6b7280;
    --brand: #6c5ce7;
    --brand-2: #ff7ab6;
    --ok: #22c55e;
    --shadow: 0 10px 30px rgba(16, 16, 20, .08);
    --radius: 16px;
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 800px at 10% -10%, #dbeafe 0%, #fff 60%) no-repeat,
        radial-gradient(1000px 600px at 110% 10%, #ffe8f3 0%, #fff 60%) no-repeat,
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(1160px, 92vw);
    max-width: 1160px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 16px;
}

/* ---------- Animated “Framer-like” Background Blobs ---------- */
.bg-blobs {
    position: fixed;
    inset: -20vmax -10vmax -10vmax -10vmax;
    pointer-events: none;
    z-index: -1;
    filter: blur(40px) saturate(140%);
    opacity: .6;
}

.blob {
    position: absolute;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed 40%, transparent 60%);
    animation: float 18s ease-in-out infinite alternate;
    mix-blend-mode: multiply;
}

.blob.b2 {
    left: 40%;
    top: -10%;
    background: radial-gradient(circle at 30% 30%, #fb7185, #f43f5e 35%, transparent 60%);
    animation-duration: 22s
}

.blob.b3 {
    left: 65%;
    top: 40%;
    background: radial-gradient(circle at 30% 30%, #34d399, #10b981 35%, transparent 60%);
    animation-duration: 26s
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) scale(1)
    }

    100% {
        transform: translate3d(6vw, 4vh, 0) scale(1.1)
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none
    }
}

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(140%) blur(8px);
    background: rgba(255, 255, 255, .7);
    z-index: 20;
    box-shadow: var(--shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    position: relative;
    overflow: visible
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    letter-spacing: .2px
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4)
}

.nav a.btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4338ca, #db2777);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 10px 26px rgba(67, 56, 202, .35);
    border: 2px solid rgba(255, 255, 255, .18)
}

.nav .btn-nav {
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #0b1020;
    font-weight: 800;
    border: 2px solid #a78bfa;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .18);
    position: relative;
    overflow: hidden;
}

.nav .btn-nav:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #eef2ff, #fff1f6);
    border-color: #7c3aed;
    box-shadow: 0 12px 28px rgba(124, 58, 237, .26);
}

.nav .links {
    display: flex;
    gap: 18px;
    align-items: center
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.menu-toggle .icon {
    font-size: 20px
}

/* Subtle attention animation for the mobile menu icon */
@keyframes runnerNudge {

    0%,
    92%,
    100% {
        transform: translateX(0)
    }

    94% {
        transform: translateX(1px)
    }

    96% {
        transform: translateX(-1px)
    }

    98% {
        transform: translateX(0)
    }
}

.menu-toggle .icon {
    display: inline-block;
    animation: runnerNudge 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle .icon {
        animation: none
    }
}

.nav .links a {
    color: var(--muted);
    font-weight: 600
}

.nav .links a:hover {
    color: var(--ink)
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 40px;
    position: relative
}

.hero h1 {
    font-size: clamp(32px, 6vw, 60px);
    line-height: 1.05;
    margin: 0 0 18px
}

.hero p {
    font-size: clamp(16px, 2.6vw, 20px);
    color: var(--muted);
    margin: 0 0 28px
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn {
    border: none;
    cursor: pointer;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 14px;
    transition: .18s transform ease, .28s box-shadow ease, background-color .2s ease, border-color .2s ease;
    max-width: 100%;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #3730a3, #be185d);
    box-shadow: 0 14px 34px rgba(55, 48, 163, .42);
    border: 2px solid rgba(255, 255, 255, .25)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(55, 48, 163, .52)
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .28), 0 12px 32px rgba(108, 92, 231, .35)
}

.btn:active {
    transform: translateY(0) scale(.99)
}

.btn-ghost {
    background: #ffffff;
    color: #1f2937;
    border: 2px solid #c7d2fe
}

.btn-ghost:hover {
    background: #ffffff;
    border-color: #a5b4fc;
    box-shadow: 0 8px 22px rgba(16, 16, 20, .08)
}

.hero .badges {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap
}

.badge {
    padding: 8px 12px;
    font-size: 13px;
    color: #0b1020;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow)
}

/* ---------- Feature cards ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 36px 0 12px
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.card .kicker {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .6px;
    color: #7c3aed;
    text-transform: uppercase
}

.card h3 {
    margin: 8px 0 10px
}

.card p {
    color: var(--muted);
    margin: 0
}

.card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(#ede9fe, transparent 60%);
    transform: rotate(25deg)
}

/* ---------- Plan tiers ---------- */
.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 40px 0
}

.tier {
    padding: 26px;
    border-radius: var(--radius);
    background: #0b102006;
    border: 1px solid #0b102012;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.tier h4 {
    margin: 0 0 8px
}

.price {
    font-size: 32px;
    font-weight: 800
}

.tier ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none
}

.tier li {
    padding: 8px 0;
    color: var(--muted)
}

.tier .buy {
    margin-top: auto
}

/* ---------- “How it works” timeline ---------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 12px 0 40px
}

.step {
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, .12);
    border-radius: 14px;
    padding: 18px
}

.step strong {
    display: block;
    margin-bottom: 6px
}

/* ---------- Testimonials stripe (auto-scroll) ---------- */
.marquee {
    display: flex;
    gap: 16px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.quote {
    white-space: nowrap;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f6f7ff;
    border: 1px solid #e9e9ff;
    font-size: 14px
}

@keyframes scrollX {
    to {
        transform: translateX(-50%)
    }
}

.track {
    display: flex;
    gap: 16px;
    min-width: 200%;
    animation: scrollX 28s linear infinite
}

@media (prefers-reduced-motion: reduce) {
    .track {
        animation: none
    }
}

/* ---------- CTA band ---------- */
.cta-band {
    margin: 60px 0;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ede9fe, #fff1f6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--shadow)
}

/* ---------- Insights (Charts + Stats) ---------- */
.insights-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 18px;
    margin: 14px 0 40px;
}

.chart-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3730a3, #be185d);
    box-shadow: 0 0 0 2px #ede9fe inset;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.stat .value {
    font-size: 26px;
    font-weight: 800;
}

.tooltip {
    position: absolute;
    pointer-events: none;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    opacity: 0;
    transition: opacity .15s ease;
}

.chart-card {
    position: relative
}

/* ---------- Footer ---------- */
footer {
    margin: 60px 0 40px;
    color: var(--muted);
    font-size: 14px
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px
}

.credit {
    display: flex;
    align-items: center;
    gap: 10px
}

.profile {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow)
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fda4af, #c084fc)
}

/* ---------- Utilities ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center
}

.spacer {
    height: 28px
}

.p-24y {
    padding: 24px 0
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 12px
}

.icon {
    font-size: 18px
}

.hide-mobile {
    display: block
}

canvas,
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* New utility classes extracted from inline styles */
.self-stretch {
    align-self: stretch
}

.h-100 {
    height: 100%
}

.vstack-14 {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px
}

.p-12 {
    padding: 12px
}

.border-ok {
    border: 2px solid var(--ok)
}

.mt-10 {
    margin-top: 10px
}

.mt-18 {
    margin-top: 18px
}

.muted {
    color: var(--muted)
}

.text-12 {
    font-size: 12px
}

.text-13 {
    font-size: 13px
}

.border-accent {
    border: 2px solid #a78bfa
}

/* ---------- Tables (Admin) ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    vertical-align: top;
}

.table th {
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.table tr:hover {
    background: #fafaff;
}

@media (max-width: 980px) {

    .features,
    .timeline,
    .tiers {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hide-mobile {
        display: none
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: inline-flex
    }

    .nav .links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        box-shadow: var(--shadow);
        border-radius: 12px;
        padding: 12px;
        flex-direction: column;
        gap: 12px;
    }

    .nav[data-open="1"] .links {
        display: flex
    }

    .nav .links .btn-nav {
        width: 100%;
        text-align: center
    }

    .tier {
        min-height: auto
    }

    .nav-inner {
        padding: 10px 0
    }

    .brand {
        font-size: 16px
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 8px
    }

    .hero {
        padding: 44px 0 28px
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.15;
        letter-spacing: -0.02em;
        word-break: break-word
    }

    .hero p {
        font-size: 15px;
        margin: 6px 0 20px
    }

    .cta-row {
        gap: 10px;
        justify-content: flex-start
    }

    .cta-row .btn {
        width: auto;
        max-width: 100%
    }

    .btn {
        padding: 12px 16px;
        border-radius: 12px
    }

    .btn-primary {
        box-shadow: 0 10px 26px rgba(55, 48, 163, .36)
    }

    .badge {
        font-size: 12px;
        padding: 7px 10px
    }

    .insights-grid {
        gap: 12px
    }

    .chart-card {
        padding: 14px
    }

    .stats {
        grid-template-columns: 1fr
    }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: .6s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}
