/* ==========================================================================
   NEXVORK — FRESH PREMIUM CSS
   Single file. No conflicts. Clean architecture.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    --brand-purple: #823E9D;
    --brand-purple-light: #A855C7;
    --brand-purple-dark: #5E2974;
    --brand-blue: #418FE4;
    --brand-blue-light: #60A5FA;
    --brand-blue-dark: #2563EB;
    --accent-cyan: #22D3EE;
    --accent-emerald: #10B981;

    --bg: #FFFFFF;
    --bg-elevated: #FAFBFC;
    --bg-subtle: #F4F5F7;
    --bg-muted: #EEF0F3;
    --surface: #FFFFFF;

    --text: #0B0B14;
    --text-muted: #4A5160;
    --text-subtle: #6B7280;
    --text-faint: #9CA3AF;

    --border: #E5E7EB;
    --border-strong: #D1D5DB;
    --border-subtle: #F0F1F4;

    --grad-brand: linear-gradient(135deg, #823E9D 0%, #418FE4 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(130, 62, 157, 0.08) 0%, rgba(65, 143, 228, 0.08) 100%);
    --grad-brand-text: linear-gradient(90deg, #823E9D 0%, #418FE4 100%);

    --shadow-xs: 0 1px 2px rgba(11, 11, 20, 0.04);
    --shadow-sm: 0 2px 4px rgba(11, 11, 20, 0.05), 0 1px 2px rgba(11, 11, 20, 0.04);
    --shadow-md: 0 4px 12px rgba(11, 11, 20, 0.06), 0 2px 4px rgba(11, 11, 20, 0.04);
    --shadow-lg: 0 12px 32px rgba(11, 11, 20, 0.08), 0 4px 12px rgba(11, 11, 20, 0.05);
    --shadow-xl: 0 24px 64px rgba(11, 11, 20, 0.12), 0 8px 24px rgba(11, 11, 20, 0.06);
    --shadow-brand: 0 12px 32px rgba(130, 62, 157, 0.18), 0 4px 12px rgba(65, 143, 228, 0.12);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-power: cubic-bezier(0.65, 0.05, 0.36, 1);

    --container: 1280px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
}

.dark {
    --bg: #07070C;
    --bg-elevated: #0E0E15;
    --bg-subtle: #14141C;
    --bg-muted: #1C1C26;
    --surface: #0E0E15;

    --text: #FFFFFF;
    --text-muted: #C9CDD7;
    --text-subtle: #8B92A0;
    --text-faint: #5F6675;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --grad-brand-soft: linear-gradient(135deg, rgba(130, 62, 157, 0.18) 0%, rgba(65, 143, 228, 0.18) 100%);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 12px 32px rgba(130, 62, 157, 0.4), 0 4px 12px rgba(65, 143, 228, 0.3);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

::selection { background: var(--brand-purple); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg-subtle); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-purple); }

/* ==========================================================================
   3. SCROLL PROGRESS (top bar)
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
}
.scroll-progress::before {
    content: "";
    display: block;
    height: 100%;
    width: calc(var(--scroll-progress, 0) * 100%);
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    box-shadow: 0 0 12px rgba(130, 62, 157, 0.6);
    transition: width 0.06s linear;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-primary, .btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-blue-light));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(130, 62, 157, 0.35), 0 6px 16px rgba(65, 143, 228, 0.25);
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-subtle);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-2px);
}

.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   5. SECTION HEADS
   ========================================================================== */
section { padding: 100px 0; position: relative; }
@media (max-width: 768px) { section { padding: 70px 0; } }

.sec-head { text-align: center; margin-bottom: 64px; }
.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.sec-eyebrow .num {
    font-variant-numeric: tabular-nums;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.sec-eyebrow .line {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
}

.sec-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 20px;
    color: var(--text);
}

.sec-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-grad {
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ==========================================================================
   6. SCROLL REVEAL — UNIQUE, NOT SIMPLE
   data-reveal="up|mask|left|right|rise"
   data-card-reveal -> card 3D drop-in (one by one via stagger)
   ========================================================================== */

/* Hidden states */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition:
        opacity 1s var(--ease-power),
        transform 1.1s var(--ease-power),
        filter 1s var(--ease-power),
        clip-path 1.3s var(--ease-power);
    transition-delay: calc(var(--stagger, 0) * 0.12s);
}
[data-reveal="up"] {
    transform: translate3d(0, 50px, 0);
    filter: blur(8px);
}
[data-reveal="left"] {
    transform: translate3d(-60px, 0, 0);
    filter: blur(6px);
}
[data-reveal="right"] {
    transform: translate3d(60px, 0, 0);
    filter: blur(6px);
}
[data-reveal="mask"] {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
}
[data-reveal="mask"] .title-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-power);
    transition-delay: calc(var(--stagger, 0) * 0.12s + 0.1s);
}
[data-reveal="rise"] {
    transform: perspective(1800px) translate3d(0, 100px, 0) rotateX(15deg) scale(0.92);
    transform-origin: 50% 100%;
    filter: blur(10px);
}

/* Stagger via data-stagger attribute */
[data-stagger] { --stagger: 0; }

/* Visible states */
.is-revealed[data-reveal] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: none;
    clip-path: inset(0 0 0 0);
}
.is-revealed[data-reveal="rise"] {
    transform: perspective(1800px) translate3d(0, 0, 0) rotateX(0) scale(1);
}
.is-revealed[data-reveal="mask"] .title-inner {
    transform: translateY(0);
}

/* CARDS — 3D drop-in one by one */
[data-card-reveal] {
    opacity: 0;
    transform: perspective(1500px) translate3d(0, 70px, -80px) rotateX(20deg);
    transform-origin: 50% 100%;
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition:
        opacity 0.9s var(--ease-power),
        transform 1.1s var(--ease-power),
        filter 0.9s var(--ease-power);
    transition-delay: calc(var(--stagger, 0) * 0.12s);
}
.is-revealed[data-card-reveal] {
    opacity: 1;
    transform: perspective(1500px) translate3d(0, 0, 0) rotateX(0);
    filter: none;
}

/* Title row wrappers */
.title-row {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-card-reveal], [data-reveal="mask"] .title-inner {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
    padding: 120px 0 80px;
    overflow: hidden;
    position: relative;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    top: -100px; left: -100px;
    background: radial-gradient(circle, var(--brand-purple), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb-2 {
    width: 600px; height: 600px;
    top: 20%; right: -200px;
    background: radial-gradient(circle, var(--brand-blue), transparent 70%);
    animation: orbFloat 22s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 400px; height: 400px;
    bottom: -100px; left: 30%;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    opacity: 0.3;
    animation: orbFloat 16s ease-in-out infinite;
}
.dark .hero-orb { opacity: 0.35; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.08); }
}

.hero-inner {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.eyebrow-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 24px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-subtle);
}
.check {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--grad-brand-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.check::before {
    content: "";
    width: 8px; height: 4px;
    border-left: 2px solid var(--accent-emerald);
    border-bottom: 2px solid var(--accent-emerald);
    transform: rotate(-45deg) translateY(-1px);
}

/* ==========================================================================
   9. TRUSTED / MARQUEE
   ========================================================================== */
.trusted { padding: 60px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trusted-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 32px;
}
.trusted-label .line { flex: 0 0 60px; height: 1px; background: var(--border); }
.marquee {
    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);
}
.marquee-track {
    display: flex;
    gap: 64px;
    width: max-content;
    animation: scroll 30s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-faint);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.brand:hover { color: var(--brand-purple); }

/* ==========================================================================
   10. BENTO (3D CARDS WITH GRADIENT HOVER) — premium hover, color match
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    perspective: 2000px;
}
.b-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.b-large { grid-column: span 1; grid-row: span 2; padding: 32px; }
.b-wide  { grid-column: span 2; }

@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .b-large, .b-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .b-large, .b-wide { grid-column: span 1; }
}

/* Premium gradient hover border + spotlight */
.b-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -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 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 1;
}
.b-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 360px at var(--mx, 50%) var(--my, 50%),
        rgba(130, 62, 157, 0.10),
        rgba(65, 143, 228, 0.06) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 0;
}
.b-card > * { position: relative; z-index: 2; }
.b-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 24px 60px -20px rgba(130, 62, 157, 0.30), 0 12px 30px -16px rgba(65, 143, 228, 0.22);
}
.b-card:hover::before { opacity: 1; }
.b-card:hover::after  { opacity: 1; }

.b-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-purple);
    background: var(--grad-brand-soft);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.b-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.b-large .b-title { font-size: 1.7rem; }
.b-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.55;
}
.b-visual { margin-top: 20px; }
.b-visual-bot { margin-top: auto; padding-top: 20px; }

/* Lead list */
.lead-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.lead-row:hover { transform: translateX(4px); border-color: var(--brand-purple); }
.av {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.av-blue { background: linear-gradient(135deg, #418FE4, #22D3EE); }
.av-cyan { background: linear-gradient(135deg, #22D3EE, #10B981); }
.lead-row > div { flex: 1; min-width: 0; }
.ln { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.li { font-size: 0.78rem; color: var(--text-subtle); }
.score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.score span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 4px;
}
.score-hot { color: #EF4444; }
.score-hot span { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.score-warm { color: #F59E0B; }
.score-warm span { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.score-cool { color: var(--brand-blue); }
.score-cool span { background: rgba(65, 143, 228, 0.12); color: var(--brand-blue); }

/* Pipeline */
.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 8px; }
.p-h { font-size: 0.7rem; font-weight: 700; color: var(--text-subtle); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.p-c { height: 24px; background: var(--bg-muted); border-radius: 4px; margin-bottom: 6px; }
.p-active { background: var(--grad-brand); }

/* Messages */
.msg-mock { display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 8px 12px; border-radius: 12px; font-size: 0.82rem; max-width: 80%; }
.msg-in { background: var(--bg); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-out { background: var(--grad-brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; display: flex; align-items: center; gap: 6px; }
.msg-tick { font-size: 0.7rem; opacity: 0.85; }
.msg-typing {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
}
.msg-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    animation: typing 1.4s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 1; transform: translateY(-4px); }
}

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 12px 0; }
.bars span {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--bg-muted), var(--bg-subtle));
    border-radius: 4px 4px 0 0;
    transition: all 0.4s var(--ease-out);
}
.bars span:hover { background: var(--grad-brand); transform: scaleY(1.05); }
.bars .bar-active { background: var(--grad-brand); box-shadow: 0 0 16px rgba(130, 62, 157, 0.4); }
.bar-leg { display: flex; gap: 8px; font-size: 0.7rem; color: var(--text-faint); margin-top: 4px; }
.bar-leg span { flex: 1; text-align: center; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; font-size: 0.78rem; color: var(--text-muted); transition: all 0.3s ease; }
.chip:hover { border-color: var(--brand-purple); color: var(--brand-purple); transform: translateY(-2px); }
.chip-add { background: var(--grad-brand-soft); color: var(--brand-purple); border-color: transparent; font-weight: 600; }

/* Teams */
.teams { display: flex; flex-wrap: wrap; gap: 8px; }
.team { padding: 6px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.t-purple { background: rgba(130, 62, 157, 0.12); color: var(--brand-purple); }
.t-blue   { background: rgba(65, 143, 228, 0.12); color: var(--brand-blue); }
.t-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--accent-cyan); }

/* ==========================================================================
   11. STATS
   ========================================================================== */
.stats { padding: 80px 0; background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.stat-suffix { background: inherit; -webkit-background-clip: inherit; background-clip: inherit; color: inherit; }
.stat-cap { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   12. AI ENGINE
   ========================================================================== */
.ai-engine { position: relative; overflow: hidden; }
.ai-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(130, 62, 157, 0.08), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(65, 143, 228, 0.08), transparent 50%);
    z-index: 0;
    pointer-events: none;
}
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
.ai-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.ai-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 28px; }

.ai-list { display: flex; flex-direction: column; gap: 12px; }
.ai-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out);
}
.ai-list li:hover {
    border-color: var(--brand-purple);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.ai-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
}
.ai-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; font-size: 0.95rem; }
.ai-list span { font-size: 0.85rem; color: var(--text-subtle); }

.ai-visual {
    position: relative;
    aspect-ratio: 1 / 0.85;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}
.ai-visual::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.5;
    animation: aiBorderPulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes aiBorderPulse {
    from { opacity: 0.4; }
    to   { opacity: 0.8; }
}
.ai-visual svg { width: 100%; height: 100%; overflow: visible; }
.ai-nodes circle {
    fill: var(--bg);
    stroke: var(--brand-purple);
    stroke-width: 2;
    transform-origin: center;
    transform-box: fill-box;
    animation: nodePulse 2.4s ease-in-out infinite;
}
.ai-nodes circle:nth-child(2)  { animation-delay: 0.2s; }
.ai-nodes circle:nth-child(3)  { animation-delay: 0.4s; }
.ai-nodes circle:nth-child(4)  { animation-delay: 0.6s; }
.ai-nodes circle:nth-child(5)  { animation-delay: 0.5s; }
.ai-nodes circle:nth-child(6)  { animation-delay: 0.7s; }
.ai-nodes circle:nth-child(7)  { animation-delay: 0.9s; }
.ai-nodes circle:nth-child(8)  { animation-delay: 0.8s; }
.ai-nodes circle:nth-child(9)  { animation-delay: 1.0s; }
.ai-nodes circle:nth-child(10) { animation-delay: 1.2s; }
.ai-out {
    fill: var(--brand-blue) !important;
    stroke: var(--brand-blue-light) !important;
    filter: drop-shadow(0 0 12px var(--brand-blue));
}
@keyframes nodePulse {
    0%, 100% { transform: scale(1); fill: var(--bg); }
    50%      { transform: scale(1.2); fill: var(--brand-purple); }
}
.ai-edges line {
    stroke: var(--border-strong);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0.5;
    animation: edgeFlow 2s linear infinite;
}
@keyframes edgeFlow { to { stroke-dashoffset: -14; } }

.ai-result {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ai-r-lbl { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.ai-r-val { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.ai-r-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; max-width: 100px; }
.ai-r-bar-fill { height: 100%; width: 94%; background: var(--grad-brand); border-radius: 2px; animation: matchFill 3s var(--ease-out) infinite; }
@keyframes matchFill {
    0%, 100% { width: 88%; }
    50%      { width: 96%; }
}
.ai-r-pct {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   13. WORKFLOW
   ========================================================================== */
.wf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1500px;
}
@media (max-width: 768px) { .wf-grid { grid-template-columns: 1fr; } }
.wf-step {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.5s var(--ease-out);
}
.wf-step:hover {
    transform: translateY(-6px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-lg);
}
.wf-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}
.wf-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-out);
}
.wf-step:hover .wf-icon {
    background: var(--grad-brand);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}
.wf-step h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.wf-step p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */
.t-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    perspective: 1500px;
}
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}
.t-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -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 0.4s ease;
    pointer-events: none;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.t-card:hover::before { opacity: 1; }
.t-card > * { position: relative; }
.t-mark { color: var(--brand-purple); margin-bottom: 16px; opacity: 0.4; }
.t-card blockquote { font-size: 1rem; line-height: 1.6; color: var(--text); margin: 0 0 24px; font-weight: 500; }
.t-hero blockquote { font-size: 1.15rem; }
.t-meta { display: flex; align-items: center; gap: 12px; }
.t-meta > div:nth-child(2) { flex: 1; }
.t-av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.t-av-purple { background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light)); }
.t-av-blue   { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light)); }
.t-av-cyan   { background: linear-gradient(135deg, var(--accent-cyan), var(--brand-blue)); }
.t-name { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.t-role { font-size: 0.8rem; color: var(--text-subtle); }
.t-stars { font-size: 0.85rem; color: #F59E0B; letter-spacing: 1px; }

/* ==========================================================================
   15. PRICING
   ========================================================================== */
.bill-switch {
    display: inline-flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    margin-top: 28px;
}
.bs-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 100px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bs-btn.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.bs-save { font-size: 0.7rem; padding: 2px 6px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.bs-btn:not(.active) .bs-save { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    perspective: 1500px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.5s var(--ease-out);
}
.price-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-lg);
}
.price-feat {
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated)),
                var(--grad-brand) border-box;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--brand-purple), var(--shadow-lg);
    transform: scale(1.02);
}
.price-feat:hover { transform: scale(1.02) translateY(-6px); }
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.price-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.price-tag { font-size: 0.85rem; color: var(--text-subtle); margin-bottom: 24px; }
.price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}
.price-cur { font-size: 1.4rem; font-weight: 600; color: var(--text-muted); }
.price-num { font-size: 2.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.price-per { font-size: 0.85rem; color: var(--text-subtle); margin-left: 4px; }

.price-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.price-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.price-list li::before {
    content: "";
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--grad-brand-soft);
    flex-shrink: 0;
    background-image: linear-gradient(135deg, rgba(130, 62, 157, 0.12), rgba(65, 143, 228, 0.12)),
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23823E9D' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%, 60%;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}
.faq-item:hover { border-color: var(--brand-purple); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-purple); }
.faq-ic {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out);
}
.faq-item[open] .faq-ic { transform: rotate(135deg); background: var(--grad-brand); color: #fff; }
.faq-a {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   17. FINAL CTA
   ========================================================================== */
.cta { padding: 80px 0 120px; }
.cta-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 50%, rgba(130, 62, 157, 0.18), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(65, 143, 228, 0.18), transparent 50%);
    z-index: 0;
    animation: ctaDrift 12s ease-in-out infinite alternate;
}
@keyframes ctaDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, -20px); }
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.cta-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   18. FOOTER (with hover color effects)
   ========================================================================== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-purple), var(--brand-blue), transparent);
    opacity: 0.4;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}
@media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .foot-grid { grid-template-columns: 1fr; }
}

.foot-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 16px 0 20px;
    max-width: 320px;
}
.foot-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.foot-logo img { border-radius: 6px; }

.foot-social { display: flex; gap: 8px; }
.foot-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.35s var(--ease-out);
}
.foot-social a:hover {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

.foot-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin: 0 0 16px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }

/* === FOOTER LINK HOVER (color match, premium) === */
.foot-col a {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
    display: inline-flex;
    align-items: center;
}
.foot-col a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-brand);
    transform: translateY(-50%);
    border-radius: 1px;
    opacity: 0;
    transition: width 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.foot-col a:hover {
    color: transparent;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    padding-left: 18px;
}
.foot-col a:hover::before {
    width: 12px;
    opacity: 1;
}

.foot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */
@media (max-width: 768px) {
    .b-card { padding: 22px; }
    .preview-body { padding: 14px; }
    .b-large { padding: 24px; }
}

/* ==========================================================================
   20. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.announcement-bar::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: announceShimmer 6s ease-in-out infinite;
}
@keyframes announceShimmer {
    0%, 100% { left: -100%; }
    50%      { left: 100%; }
}
.announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.announce-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}
.announce-text { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.announce-link {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s var(--ease-out);
}
.announce-link:hover .announce-arrow { transform: translateX(4px); }
.announce-arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }

@media (max-width: 640px) {
    .announce-text { font-size: 0.78rem; }
    .announce-link { font-size: 0.78rem; }
}

/* ==========================================================================
   21. HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(11, 11, 20, 0.04);
}
.dark .header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.85; }
.logo-mark { border-radius: 6px; }
.logo-text { font-family: 'Cabinet Grotesk', system-ui, sans-serif; }

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
@media (max-width: 1024px) { .nav-list { display: none; } }

.nav-list > li { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    background: transparent;
}
.nav-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.has-dropdown:hover .nav-link {
    color: var(--text);
    background: var(--bg-elevated);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 580px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease-out);
    z-index: 50;
}
.has-dropdown:hover .dropdown,
.dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.dropdown-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background 0.3s var(--ease-out);
}
.dropdown-item:hover { background: var(--bg-elevated); }
.dropdown-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
}
.dropdown-item:hover .dropdown-icon { transform: scale(1.08) rotate(-4deg); }
.dropdown-icon-purple { background: rgba(130, 62, 157, 0.12); color: var(--brand-purple); }
.dropdown-icon-blue   { background: rgba(65, 143, 228, 0.12); color: var(--brand-blue); }
.dropdown-icon-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--accent-cyan); }
.dropdown-icon-pink   { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.dropdown-title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.dropdown-desc  { font-size: 0.78rem; color: var(--text-subtle); }

@media (max-width: 700px) {
    .dropdown { min-width: 320px; }
    .dropdown-grid { grid-template-columns: 1fr; }
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: scale(1.05);
}
.theme-toggle .sun-icon  { display: block; }
.theme-toggle .moon-icon { display: none; }
.dark .theme-toggle .sun-icon  { display: none; }
.dark .theme-toggle .moon-icon { display: block; }

.btn-signin {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}
.btn-signin:hover { color: var(--text); background: var(--bg-elevated); }
@media (max-width: 540px) { .btn-signin { display: none; } }

.btn-header { padding: 9px 18px; font-size: 0.9rem; }
@media (max-width: 540px) { .btn-header { display: none; } }

/* Mobile menu button */
.menu-btn {
    display: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    transition: border-color 0.3s ease;
}
.menu-btn:hover { border-color: var(--brand-purple); }
.menu-btn-line {
    width: 16px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}
.menu-btn.active .menu-btn-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-btn.active .menu-btn-line:nth-child(2) { opacity: 0; }
.menu-btn.active .menu-btn-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
@media (max-width: 1024px) { .menu-btn { display: flex; } }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}
.mobile-menu-item {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
}
.mobile-menu-item:hover {
    color: var(--brand-purple);
    background: var(--bg-elevated);
    padding-left: 32px;
}
.mobile-divider { height: 16px; }
.mobile-cta { margin: 12px 18px; justify-content: center; }

/* ==========================================================================
   22. FINAL CTA SECTION (matches the look of the rest)
   ========================================================================== */
.cta-section { padding: 80px 0 100px; position: relative; }
.cta-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}
.cta-glow {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 50%, rgba(130, 62, 157, 0.18), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(65, 143, 228, 0.18), transparent 50%);
    z-index: 0;
    animation: ctaDrift 12s ease-in-out infinite alternate;
}
@keyframes ctaDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, -20px); }
}
.cta-card > * { position: relative; z-index: 1; }

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.cta-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.6s ease-in-out infinite;
}

.cta-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
}
.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

@media (max-width: 640px) {
    .cta-card { padding: 56px 24px; }
}

/* ==========================================================================
   23. FOOTER (premium hover effects)
   ========================================================================== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-purple), var(--brand-blue), transparent);
    opacity: 0.5;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer-main { grid-template-columns: 1fr; }
}

.footer-brand p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 16px 0 20px;
    max-width: 320px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.6s ease-in-out infinite;
}

.newsletter {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    max-width: 320px;
    transition: border-color 0.3s var(--ease-out);
}
.newsletter:focus-within { border-color: var(--brand-purple); }
.newsletter input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
}
.newsletter input::placeholder { color: var(--text-faint); }
.newsletter button {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}
.newsletter button:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-brand);
}

/* Footer columns */
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin: 0 0 18px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === FOOTER LINK PREMIUM HOVER === */
.footer-col a {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-brand);
    transform: translateY(-50%);
    border-radius: 1px;
    opacity: 0;
    transition: width 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.footer-col a:hover {
    color: transparent;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    padding-left: 18px;
}
.footer-col a:hover::before {
    width: 12px;
    opacity: 1;
}

.badge-mini {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--brand-purple);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.socials {
    display: flex;
    gap: 8px;
}
.social {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.35s var(--ease-out);
}
.social:hover {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

.footer-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    opacity: 0.03;
    pointer-events: none;
    letter-spacing: 8px;
    color: var(--text);
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    line-height: 1;
}

/* ==========================================================================
   24. PAGE LOADER
   ========================================================================== */


/* ==========================================================================
   25. HERO SPOTLIGHT (from frontbase) - subtle global cursor follower
   ========================================================================== */
.hero-spotlight {
    position: fixed;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(130, 62, 157, 0.10), transparent 60%);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
}
.dark .hero-spotlight { background: radial-gradient(circle, rgba(130, 62, 157, 0.18), transparent 60%); }

/* ==========================================================================
   26. SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
    z-index: 80;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(130, 62, 157, 0.4);
}
@media (max-width: 540px) {
    .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ==========================================================================
   DASHBOARD STYLES — OLD PREMIUM LOOK, COMPACT SIZE
   Replace section 27 (and any preview-* / kpi-strip / app-* / dash-* /
   activity-* you may have) in your index.css with this whole block.
   ========================================================================== */

/* Wrapper + glow */
.product-preview {
    position: relative;
    max-width: 920px;       /* compact - was 1100+ */
    margin: 0 auto;
    perspective: 2000px;
    z-index: 1;
}
.preview-glow {
    position: absolute;
    inset: -40px -20px -20px;
    background: var(--grad-brand);
    filter: blur(60px);
    opacity: 0.25;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* Outer frame */
.preview-frame {
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: transform 0.4s var(--ease-out);
}

/* Top window bar */
.frame-top {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.frame-dots span:nth-child(1) { background: #FF5F57; }
.frame-dots span:nth-child(2) { background: #FEBC2E; }
.frame-dots span:nth-child(3) { background: #28C840; }
.frame-url {
    flex: 1;
    margin: 0 50px;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.preview-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.5; }
}

/* Body grid: sidebar + main (compact min-height) */
.frame-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 0;
}

/* Sidebar - original premium look */
.app-sidebar {
    border-right: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-logo-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}
.app-nav-item:hover {
    background: var(--bg-subtle);
    color: var(--text);
}
.app-nav-item.active {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(130, 62, 157, 0.25);
}
.nav-count {
    margin-left: auto;
    padding: 1px 7px;
    background: var(--bg-subtle);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 22px;
    text-align: center;
}
.app-nav-item.active .nav-count {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}
.nav-count-live {
    background: var(--accent-emerald) !important;
    color: white !important;
    animation: countPulse 2s ease-in-out infinite;
}
@keyframes countPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%      { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* Main panel */
.app-main {
    padding: 18px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.app-breadcrumb {
    font-size: 11px;
    color: var(--text-subtle);
    margin-bottom: 2px;
}
.app-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.app-period {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.app-period:hover { border-color: var(--brand-purple); }

/* KPI cards - original premium style, compact */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.kpi {
    padding: 12px 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}
.kpi:hover {
    border-color: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kpi-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.kpi-value {
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.kpi-trend {
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.kpi-up { color: var(--accent-emerald); }

/* Chart */
.app-chart {
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.chart-label {
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.chart-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.chart-tabs { display: flex; gap: 6px; }
.chart-tab {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}
.chart-tab:hover { color: var(--text); }
.chart-tab.active {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 2px 8px rgba(130, 62, 157, 0.25);
}
.chart-svg {
    width: 100%;
    height: 110px;
    display: block;
}
.chart-grid {
    stroke: var(--border);
    stroke-width: 0.5;
    stroke-dasharray: 4 3;
    opacity: 0.6;
}
.chart-line-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawChart 2.5s var(--ease-out) forwards;
    animation-delay: 0.4s;
}
@keyframes drawChart { to { stroke-dashoffset: 0; } }
.chart-point { fill: var(--brand-blue); }
.chart-point-pulse {
    transform-origin: center;
    transform-box: fill-box;
    animation: chartPointPulse 1.6s ease-in-out infinite;
}
@keyframes chartPointPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50%      { transform: scale(2); opacity: 0; }
}

/* Activity feed */
.app-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}
.activity-row:hover {
    border-color: var(--brand-purple);
    transform: translateX(3px);
}
.activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: livePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.activity-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
}
.activity-text {
    flex: 1;
    font-size: 12.5px;
    color: var(--text);
}
.activity-text strong { font-weight: 600; }
.activity-amount {
    font-weight: 700;
    color: var(--text);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.activity-time {
    font-size: 11px;
    color: var(--text-subtle);
    flex-shrink: 0;
}
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--brand-blue); }

/* Mobile */
@media (max-width: 700px) {
    .frame-body { grid-template-columns: 1fr; }
    .app-sidebar { display: none; }
    .frame-url { margin: 0 14px; }
    .app-main { padding: 14px; gap: 12px; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .kpi-value { font-size: 17px; }
}
/* ==========================================================================
   NEXVORK V3 — PREMIUM ADDITIONS
   Append this to your existing index.css
   ========================================================================== */


/* ==========================================================================
   FIX + UPGRADE: HEADER NAV HOVER (premium underline + gradient text)
   ========================================================================== */
.nav-link {
    position: relative;
    overflow: hidden;
}
.nav-link-text {
    position: relative;
    display: inline-block;
    background: var(--grad-brand-text);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--text-muted);
    transition: background-position 0.5s var(--ease-out), color 0.4s var(--ease-out);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--grad-brand);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--ease-out);
    opacity: 0;
}
.nav-link:hover::after,
.has-dropdown:hover > .nav-link::after {
    transform: scaleX(1);
    opacity: 1;
}
.nav-link:hover .nav-link-text,
.has-dropdown:hover > .nav-link .nav-link-text {
    background-position: 0% 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.nav-link:hover,
.has-dropdown:hover > .nav-link {
    background: transparent;
}

/* ==========================================================================
   LOGIN ICON (replaces signin/signup buttons)
   ========================================================================== */
.login-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(130, 62, 157, 0.3);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}
.login-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-blue-light));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.login-icon:hover::before { opacity: 1; }
.login-icon:hover {
    transform: translateY(-2px) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(130, 62, 157, 0.45);
}
.login-icon svg {
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-out);
}
.login-icon:hover svg { transform: translateX(2px); }

/* Tooltip for login icon */
.login-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--text);
    color: var(--bg);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}
.login-icon[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.wa-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 95;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
}
.wa-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}
.wa-float svg { position: relative; z-index: 2; }
.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: waPulse 2s ease-out infinite;
}
.wa-pulse-2 { animation-delay: 1s; }
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 540px) {
    .wa-float { bottom: 16px; left: 16px; width: 48px; height: 48px; }
}

/* ==========================================================================
   HERO ROTATOR (animated rotating word)
   ========================================================================== */
.hero-rotator {
    display: inline-block;
    overflow: hidden;
    height: 1.05em;
    vertical-align: bottom;
    position: relative;
    min-width: 6ch;
}
.rotator-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.8s var(--ease-power);
    will-change: transform;
}
.rotator-word {
    display: block;
    height: 1.05em;
    line-height: 1.05;
    white-space: nowrap;
}

/* ==========================================================================
   HERO FLOATING LIVE BADGES (extra premium touch)
   ========================================================================== */
.hero-badges {
    position: relative;
    pointer-events: none;
    height: 0;
}
.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.78rem;
    pointer-events: auto;
    opacity: 0;
    animation: badgeFloatIn 1s var(--ease-spring) forwards, badgeFloat 6s ease-in-out infinite;
}
.hb-1 { top: -150px;  left: -30px; animation-delay: 0.6s, 1.6s; }
.hb-2 { top: -90px;   right: -20px; animation-delay: 1.0s, 2.0s; }
.hb-3 { top: 30px;    left: 40px;   animation-delay: 1.4s, 2.4s; }
@keyframes badgeFloatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.hb-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.hb-dot-blue {
    background: var(--brand-blue);
    box-shadow: 0 0 8px var(--brand-blue);
}
.hb-icon { font-size: 1.1rem; }
.hb-lbl  { font-size: 0.65rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hb-val  { font-size: 0.85rem; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) { .hero-badges { display: none; } }

/* ==========================================================================
   AI MATCH JOURNEY — sticky scroll storytelling
   ========================================================================== */
.match-journey {
    position: relative;
    padding-top: 80px;
}
.mj-progress {
    position: sticky;
    top: 80px;
    z-index: 10;
    height: 2px;
    background: var(--border-subtle);
    margin-bottom: 0;
    overflow: hidden;
}
.mj-progress span {
    display: block;
    height: 100%;
    width: var(--mj-prog, 0%);
    background: var(--grad-brand);
    box-shadow: 0 0 14px rgba(130, 62, 157, 0.6);
    transition: width 0.15s linear;
}

/* The tall scroll container — 300vh */
.mj-stage {
    position: relative;
    height: 300vh;
    margin-top: 40px;
}
.mj-pin {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.mj-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .mj-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* LEFT side */
.mj-left {
    position: relative;
}
.mj-step-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 28px;
}
.mj-step-current {
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 2rem;
    transition: opacity 0.4s var(--ease-out);
    font-variant-numeric: tabular-nums;
}
.mj-step-divider {
    width: 30px;
    height: 1px;
    background: var(--border-strong);
}
.mj-step-total {
    color: var(--text-faint);
    font-weight: 500;
}

.mj-step-text {
    position: relative;
    min-height: 200px;
}
.mj-step-title,
.mj-step-desc {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
}
.mj-step-title.active,
.mj-step-desc.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mj-step-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.mj-step-desc {
    top: 80px;
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 460px;
}

.mj-dots {
    display: flex;
    gap: 8px;
    margin-top: 80px;
}
.mj-dot {
    width: 36px;
    height: 4px;
    border-radius: 100px;
    background: var(--border-strong);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    position: relative;
}
.mj-dot span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-brand);
    transition: width 0.5s var(--ease-out);
}
.mj-dot.active {
    width: 60px;
    background: var(--bg-muted);
}
.mj-dot.active span { width: 100%; }
.mj-dot.completed span { width: 100%; }
.mj-dot:hover { transform: scaleY(1.5); }

/* RIGHT side: phone-like screen */
.mj-right { position: relative; }
.mj-screen {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(130, 62, 157, 0.25),
                0 12px 30px -12px rgba(65, 143, 228, 0.18);
    position: relative;
    transition: transform 0.5s var(--ease-out);
}
.mj-screen::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}
.mj-screen-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.mj-screen-bar > span:nth-child(1),
.mj-screen-bar > span:nth-child(2),
.mj-screen-bar > span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mj-screen-bar > span:nth-child(1) { background: #FF5F57; }
.mj-screen-bar > span:nth-child(2) { background: #FEBC2E; }
.mj-screen-bar > span:nth-child(3) { background: #28C840; }
.mj-screen-url {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
}

.mj-stages {
    position: relative;
    padding: 18px;
    min-height: 420px;
}
.mj-stage-pane {
    position: absolute;
    inset: 18px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mj-stage-pane.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mj-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mj-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 5px;
}
.mj-tag-purple  { background: var(--grad-brand-soft); color: var(--brand-purple); }
.mj-tag-blue    { background: rgba(65, 143, 228, 0.15); color: var(--brand-blue); }
.mj-tag-cyan    { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.mj-tag-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.mj-time {
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.mj-time-live {
    color: var(--accent-emerald);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.mj-time-live span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 1.4s ease-in-out infinite;
}

/* Stage 1: Lead card */
.mj-lead-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.mj-lead-av {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.mj-lead-info { flex: 1; min-width: 0; }
.mj-lead-name { font-size: 0.95rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mj-lead-src {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mj-lead-src svg { color: #25D366; }
.mj-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 8px;
    border-radius: 5px;
}
.mj-live span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 1.4s ease-in-out infinite;
}
.mj-lead-msg {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.55;
    padding: 12px 14px;
    background: var(--grad-brand-soft);
    border-left: 3px solid var(--brand-purple);
    border-radius: 8px;
    font-style: italic;
}
.mj-signals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.mj-signal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 9px 10px;
    transition: all 0.3s var(--ease-out);
}
.mj-signal:hover { border-color: var(--brand-purple); transform: translateY(-2px); }
.mj-sig-lbl {
    display: block;
    font-size: 0.62rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 3px;
}
.mj-sig-val {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

/* Stage 2: neural network */
.mj-neural {
    width: 100%;
    height: 200px;
}
.mj-nodes circle {
    fill: var(--bg);
    stroke: var(--brand-purple);
    stroke-width: 2;
    transform-origin: center;
    transform-box: fill-box;
    animation: mjNodePulse 2.4s ease-in-out infinite;
}
.mj-nodes circle:nth-child(2)  { animation-delay: 0.2s; }
.mj-nodes circle:nth-child(3)  { animation-delay: 0.4s; }
.mj-nodes circle:nth-child(4)  { animation-delay: 0.6s; }
.mj-nodes circle:nth-child(5)  { animation-delay: 0.5s; }
.mj-nodes circle:nth-child(6)  { animation-delay: 0.7s; }
.mj-nodes circle:nth-child(7)  { animation-delay: 0.9s; }
.mj-nodes circle:nth-child(8)  { animation-delay: 0.8s; }
.mj-nodes circle:nth-child(9)  { animation-delay: 1.0s; }
.mj-node-out {
    fill: var(--brand-blue) !important;
    stroke: var(--brand-blue-light) !important;
    filter: drop-shadow(0 0 14px var(--brand-blue));
}
@keyframes mjNodePulse {
    0%, 100% { transform: scale(1);   fill: var(--bg); }
    50%      { transform: scale(1.25); fill: var(--brand-purple); }
}
.mj-edges line {
    stroke: url(#mjEdge);
    stroke-width: 1.2;
    stroke-dasharray: 4 3;
    opacity: 0.5;
    animation: mjEdgeFlow 1.8s linear infinite;
}
@keyframes mjEdgeFlow { to { stroke-dashoffset: -14; } }

/* Stage 3: properties */
.mj-property {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateX(20px);
}
.mj-stage-pane[data-pane="3"].active .mj-prop-1 { animation: mjPropIn 0.6s 0.1s var(--ease-spring) forwards; }
.mj-stage-pane[data-pane="3"].active .mj-prop-2 { animation: mjPropIn 0.6s 0.3s var(--ease-spring) forwards; }
.mj-stage-pane[data-pane="3"].active .mj-prop-3 { animation: mjPropIn 0.6s 0.5s var(--ease-spring) forwards; }
@keyframes mjPropIn {
    to { opacity: 1; transform: translateX(0); }
}
.mj-property:hover { border-color: var(--brand-purple); transform: translateX(4px); }
.mj-prop-img {
    width: 44px; height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.mj-prop-info { flex: 1; min-width: 0; }
.mj-prop-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.mj-prop-meta { font-size: 0.74rem; color: var(--text-subtle); }
.mj-prop-match {
    text-align: center;
    padding: 6px 12px;
    background: var(--grad-brand-soft);
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--brand-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mj-prop-match span {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-purple);
    line-height: 1;
}

/* Stage 4: Follow-up */
.mj-followup {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}
.mj-fu-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #25D366;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 6px;
}
.mj-fu-msg {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 14px;
}
.mj-fu-msg strong { color: var(--brand-purple); font-weight: 700; }
.mj-fu-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.mj-fu-btn {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.mj-fu-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.mj-fu-btn-primary {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
}
.mj-fu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 62, 157, 0.35);
    color: #fff;
}
.mj-fu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}
.mj-fu-stats > div { text-align: center; }
.mj-fu-stats span { display: block; font-size: 0.65rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 3px; }
.mj-fu-stats strong { font-size: 0.95rem; color: var(--text); font-weight: 700; }

/* Mobile fallback for journey */
@media (max-width: 768px) {
    .mj-stage { height: auto; }
    .mj-pin { position: static; height: auto; padding: 30px 0; }
    .mj-grid { grid-template-columns: 1fr; }
    .mj-stages { min-height: 460px; }
    .mj-signals { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   PREMIUM MICRO-INTERACTIONS UPGRADE
   ========================================================================== */
/* Smoother section reveals — already exist but tune */
[data-reveal], [data-card-reveal] {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card lift becomes more elegant */
.b-card, .price-card, .t-card, .wf-step {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s var(--ease-out),
                box-shadow 0.5s var(--ease-out);
}

/* Smooth scrollbar */
@supports (scrollbar-width: thin) {
    html { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
}

/* ==========================================================================
   FINAL POLISH — PROFESSIONAL SPACING + DASHBOARD GUARANTEE
   These overrides tighten the rhythm and make sure dashboard always renders
   ========================================================================== */

/* ---------- Tighter, professional section rhythm ---------- */
section { padding: 80px 0; }
.hero { padding: 90px 0 60px; }
.trusted { padding: 48px 0; }
.stats { padding: 64px 0; }
.cta-section { padding: 64px 0 80px; }
.footer { padding: 64px 0 32px; }
.sec-head { margin-bottom: 48px; }
.bento { gap: 14px; }
.wf-grid { gap: 20px; }
.t-grid { gap: 18px; }
.price-grid { gap: 18px; }
.faq-wrap { gap: 10px; }
.foot-grid, .footer-main { gap: 36px; margin-bottom: 48px; }

/* Mobile rhythm */
@media (max-width: 768px) {
    section { padding: 56px 0; }
    .hero { padding: 64px 0 40px; }
    .trusted { padding: 36px 0; }
    .stats { padding: 48px 0; }
    .cta-section { padding: 48px 0 56px; }
    .footer { padding: 48px 0 24px; }
    .sec-head { margin-bottom: 32px; }
}

/* ---------- Typography fine-tune ---------- */
.hero-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); letter-spacing: -0.035em; }
.hero-sub { font-size: 1.08rem; max-width: 620px; margin-bottom: 32px; }
.sec-title { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.028em; }
.sec-sub { font-size: 1.02rem; max-width: 600px; }
.b-title { font-size: 1.25rem; }
.b-large .b-title { font-size: 1.55rem; }
.b-desc { font-size: 0.92rem; line-height: 1.6; }
.cta-title { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }

/* Tighter hero actions gap */
.hero-actions { gap: 10px; margin-bottom: 24px; }
.hero-meta { gap: 10px; }

/* ---------- Dashboard hard-guarantee (in case any old cache clashes) ---------- */
.product-preview {
    max-width: 920px;
    margin: 56px auto 0;
    perspective: 2000px;
    position: relative;
    z-index: 1;
}
.preview-frame {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.frame-top {
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.frame-body {
    display: grid !important;
    grid-template-columns: 200px 1fr;
}

/* ---------- Dashboard mobile collapse ---------- */
@media (max-width: 700px) {
    .frame-body { grid-template-columns: 1fr !important; }
    .app-sidebar { display: none !important; }
    .kpi-row { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Smoother card reveal (fix occasional flicker) ---------- */
[data-card-reveal] { will-change: opacity, transform, filter; }
.is-revealed[data-card-reveal] { will-change: auto; }

/* ---------- Container max-width consistency ---------- */
.container { padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Reduce hero badge offset on smaller screens ---------- */
@media (max-width: 1100px) {
    .hb-1 { left: 10px; }
    .hb-2 { right: 10px; }
}

/* ---------- AI Match Journey spacing ---------- */
.match-journey { padding-top: 56px; }
.mj-stage { margin-top: 24px; }
@media (max-width: 768px) { .match-journey { padding-top: 32px; } }



.nx-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: var(--bg);
    overflow: hidden;
    transition:
        opacity 0.25s var(--ease-out),
        visibility 0.25s var(--ease-out),
        transform 0.25s var(--ease-out);
}

.nx-loader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.nx-loader-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(130, 62, 157, 0.22), transparent 34%),
        radial-gradient(circle at 55% 55%, rgba(65, 143, 228, 0.16), transparent 38%),
        linear-gradient(180deg, var(--bg), var(--bg-elevated));
}

.nx-loader-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(130, 62, 157, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 143, 228, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, #000, transparent 65%);
    animation: nxGridMove 16s linear infinite;
}

.nx-loader-core {
    position: relative;
    z-index: 2;
    width: min(360px, 86vw);
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
}

.nx-loader-orbit {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(130, 62, 157, 0.18);
    animation: nxOrbitRotate 5s linear infinite;
}

.nx-loader-orbit::before,
.nx-loader-orbit::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1px solid rgba(65, 143, 228, 0.16);
}

.nx-loader-orbit::after {
    inset: 58px;
    border-color: rgba(34, 211, 238, 0.16);
}

.nx-loader-orbit span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 18px rgba(130, 62, 157, 0.75);
}

.nx-loader-orbit span:nth-child(1) {
    top: -5px;
    left: 50%;
}

.nx-loader-orbit span:nth-child(2) {
    right: 18px;
    bottom: 44px;
    background: var(--brand-blue);
    box-shadow: 0 0 18px rgba(65, 143, 228, 0.75);
}

.nx-loader-orbit span:nth-child(3) {
    left: 20px;
    bottom: 52px;
    background: var(--accent-cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.75);
}

.nx-loader-logo {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 30px 80px rgba(130, 62, 157, 0.26),
        0 14px 40px rgba(65, 143, 228, 0.18);
    animation: nxLogoPulse 2.4s ease-in-out infinite;
}

.nx-loader-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.nx-loader-title {
    position: absolute;
    top: 255px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nx-loader-text {
    position: absolute;
    top: 286px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.nx-loader-bar {
    position: absolute;
    top: 324px;
    width: 220px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-muted);
}

.nx-loader-bar span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    transform-origin: left;
    animation: nxLoaderBar 2.2s var(--ease-out) forwards;
    box-shadow: 0 0 16px rgba(130, 62, 157, 0.6);
}

@keyframes nxGridMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(54px, 54px, 0); }
}

@keyframes nxOrbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nxLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.1);
    }
}

@keyframes nxLoaderBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nx-loader-bg::before,
    .nx-loader-orbit,
    .nx-loader-logo,
    .nx-loader-bar span {
        animation: none !important;
    }
}
/* ==========================================================================
   DASHBOARD LIVE ACTIVITY ENHANCEMENT (subtle, no heavy animation)
   Existing dashboard activity rows get a soft live indicator pulse
   ========================================================================== */
.app-activity .activity-row {
    position: relative;
    overflow: hidden;
}
.app-activity .activity-row::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 62, 157, 0.06), transparent);
    pointer-events: none;
}
.app-activity .activity-row:nth-child(1)::before {
    animation: rowShimmer 4s ease-in-out infinite;
    animation-delay: 0s;
}
.app-activity .activity-row:nth-child(2)::before {
    animation: rowShimmer 4s ease-in-out infinite;
    animation-delay: 2s;
}
@keyframes rowShimmer {
    0%, 70%, 100% { left: -100%; }
    85%           { left: 100%; }
}

/* Subtle scale heartbeat on the activity dot */
.app-activity .activity-dot {
    animation: dotHeartbeat 2.4s ease-in-out infinite;
}
@keyframes dotHeartbeat {
    0%, 100%   { transform: scale(1);   box-shadow: 0 0 6px var(--accent-emerald); }
    50%        { transform: scale(1.25); box-shadow: 0 0 12px var(--accent-emerald), 0 0 0 4px rgba(16, 185, 129, 0.2); }
}

/* Activity amount gets a soft glow on its number */
.app-activity .activity-amount {
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: all 0.4s var(--ease-out);
}
.app-activity .activity-row:hover .activity-amount {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(130, 62, 157, 0.3);
}

/* ==========================================================================
   TESTIMONIAL SOFT QUOTE GLOW (gentle only, no heavy animation)
   ========================================================================== */
.t-card {
    position: relative;
}
.t-card blockquote {
    position: relative;
    transition: text-shadow 0.5s var(--ease-out);
}
.t-card:hover blockquote {
    text-shadow:
        0 0 22px rgba(130, 62, 157, 0.10),
        0 0 40px rgba(65, 143, 228, 0.06);
}
/* Soft glow halo behind the quote mark */
.t-card .t-mark {
    transition: all 0.5s var(--ease-out);
    position: relative;
}
.t-card .t-mark::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 62, 157, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: -1;
    pointer-events: none;
}
.t-card:hover .t-mark {
    color: var(--brand-purple);
    opacity: 0.8;
}
.t-card:hover .t-mark::after {
    opacity: 1;
}

/* ==========================================================================
   BEFORE / AFTER TRANSFORMATION (simplified, reliable, no sticky scroll)
   Cards reveal with stagger animation when section comes into view
   ========================================================================== */
.ba-section {
    padding: 80px 0 60px;
    position: relative;
}
.ba-wrap {
    margin-top: 24px;
}
.ba-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 24px;
    align-items: stretch;
}

.ba-side {
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.ba-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.ba-label-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 5px;
}
.ba-tag-red {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}
.ba-tag-brand {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(130, 62, 157, 0.3);
}
.ba-label-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* BEFORE — chaotic stack */
.ba-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ba-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-elevated);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    transform-origin: left center;
    position: relative;
}
.ba-card:hover {
    transform: rotate(0deg) translateX(0) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}
/* Random tilts that give it the chaotic feel */
.ba-card-tilt-1 { transform: rotate(-1.5deg); }
.ba-card-tilt-2 { transform: rotate(1deg) translateX(8px); }
.ba-card-tilt-3 { transform: rotate(-0.8deg) translateX(-4px); }
.ba-card-tilt-4 { transform: rotate(1.5deg) translateX(6px); }
.ba-card-tilt-5 { transform: rotate(-1.2deg); }

.ba-card-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ba-icon-red {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}
.ba-card-text { flex: 1; min-width: 0; }
.ba-card-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.ba-card-text span {
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.ba-card-x {
    color: #EF4444;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
    flex-shrink: 0;
}

/* DIVIDER */
.ba-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}
.ba-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(130, 62, 157, 0.35);
    animation: baArrowPulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
.ba-divider-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, transparent, rgba(130, 62, 157, 0.3), rgba(65, 143, 228, 0.3), transparent);
    border-radius: 2px;
    min-height: 40px;
}
@keyframes baArrowPulse {
    0%, 100% { transform: translateX(0) scale(1); box-shadow: 0 8px 22px rgba(130, 62, 157, 0.35); }
    50%      { transform: translateX(4px) scale(1.08); box-shadow: 0 12px 30px rgba(130, 62, 157, 0.5); }
}

/* AFTER — clean Nexvork system */
.ba-system {
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ba-system::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}
.ba-sys-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.ba-sys-dots { display: flex; gap: 6px; }
.ba-sys-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.ba-sys-dots span:nth-child(1) { background: #FF5F57; }
.ba-sys-dots span:nth-child(2) { background: #FEBC2E; }
.ba-sys-dots span:nth-child(3) { background: #28C840; }
.ba-sys-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
    font-family: 'JetBrains Mono', monospace;
}
.ba-sys-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.ba-sys-live span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: livePulse 1.4s ease-in-out infinite;
}

.ba-sys-rows {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ba-sys-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(15px);
}
/* When parent .ba-wrap reveals, stagger these rows */
.is-revealed .ba-sys-row { opacity: 1; transform: translateY(0); }
.is-revealed .ba-sys-row[data-row="1"] { transition-delay: 0.4s; }
.is-revealed .ba-sys-row[data-row="2"] { transition-delay: 0.55s; }
.is-revealed .ba-sys-row[data-row="3"] { transition-delay: 0.7s; }
.is-revealed .ba-sys-row[data-row="4"] { transition-delay: 0.85s; }
.is-revealed .ba-sys-row[data-row="5"] { transition-delay: 1.0s; }

.ba-sys-row:hover { border-color: var(--brand-purple); transform: translateX(4px) !important; }
.ba-sys-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ba-sys-text { flex: 1; min-width: 0; }
.ba-sys-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.ba-sys-text span {
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.ba-sys-pill {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    flex-shrink: 0;
}
.ba-sys-pill-glow {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 0 14px rgba(130, 62, 157, 0.5);
    font-size: 0.7rem;
    font-weight: 800;
}

/* MOBILE */
@media (max-width: 900px) {
    .ba-grid { grid-template-columns: 1fr; gap: 24px; }
    .ba-side { min-height: auto; }
    .ba-divider { flex-direction: row; padding: 8px 0; }
    .ba-divider-line { width: auto; height: 2px; min-height: 0; min-width: 40px; flex: 1;
        background: linear-gradient(90deg, transparent, rgba(130, 62, 157, 0.3), rgba(65, 143, 228, 0.3), transparent);
    }
    .ba-arrow { transform: rotate(90deg); }
    @keyframes baArrowPulse {
        0%, 100% { transform: rotate(90deg) translateX(0) scale(1); }
        50%      { transform: rotate(90deg) translateX(4px) scale(1.08); }
    }
}

/* ==========================================================================
   CONTACT FORM (between FAQ and footer)
   ========================================================================== */
.contact-strip {
    padding: 60px 0 50px;
    position: relative;
}
.cs-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}
.cs-glow {
    grid-column: 1 / -1;        /* ← ADD THIS LINE */
    grid-row: 1 / -1;           /* ← ADD THIS LINE */
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 25% 50%, rgba(130, 62, 157, 0.08), transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(65, 143, 228, 0.08), transparent 50%);
    z-index: 0;
    animation: csGlowDrift 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes csGlowDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(20px, -10px); }
}
.cs-card > * { position: relative; z-index: 1; }

/* LEFT info column */
.cs-info {
    display: flex;
    flex-direction: column;
}
.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    align-self: flex-start;
}
.cs-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.6s ease-in-out infinite;
}
.cs-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}
.cs-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.cs-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cs-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cs-info-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cs-info-icon-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
}
.cs-info-list li > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cs-info-list span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cs-info-list a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.cs-info-list a:hover { color: var(--brand-purple); }

/* RIGHT form column */
.cs-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cs-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.cs-req {
    color: var(--brand-purple);
    margin-left: 2px;
}
.cs-field input,
.cs-field textarea,
.cs-field select {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
    outline: none;
}
.cs-field input::placeholder,
.cs-field textarea::placeholder { color: var(--text-faint); }
.cs-field input:focus,
.cs-field textarea:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(130, 62, 157, 0.12);
}
.cs-field textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    line-height: 1.5;
}
.cs-field input:invalid:not(:placeholder-shown),
.cs-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.4);
}

.cs-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.cs-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.cs-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cs-check-box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg);
    flex-shrink: 0;
    transition: all 0.25s var(--ease-out);
    display: grid;
    place-items: center;
    position: relative;
}
.cs-check-box::after {
    content: "";
    width: 8px; height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(0, -1px) scale(0);
    transition: transform 0.25s var(--ease-out);
}
.cs-check input:checked ~ .cs-check-box {
    background: var(--grad-brand);
    border-color: transparent;
}
.cs-check input:checked ~ .cs-check-box::after { transform: rotate(-45deg) translate(0, -1px) scale(1); }
.cs-check-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cs-submit {
    flex-shrink: 0;
    padding: 11px 22px;
    font-size: 0.9rem;
}

.cs-form-status {
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}
.cs-form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.cs-form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* MOBILE */
@media (max-width: 900px) {
    .cs-card { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .cs-form-row { grid-template-columns: 1fr; gap: 14px; }
    .cs-form-foot { flex-direction: column; align-items: stretch; gap: 12px; }
    .cs-submit { width: 100%; justify-content: center; }
}
/* ==========================================================================
   AI MATCH JOURNEY (rewritten with nx-mj- prefix — no conflicts)
   ========================================================================== */
.nx-mj {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
}
.nx-mj-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* HEAD */
.nx-mj-head {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.nx-mj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.nx-mj-num { color: var(--brand-purple); font-weight: 700; }
.nx-mj-line { width: 30px; height: 1px; background: var(--border-strong); }
.nx-mj-title {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--text);
    margin: 0 0 14px;
}
.nx-mj-grad {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nx-mj-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* SCROLL STAGE */
.nx-mj-stage {
    position: relative;
    height: 320vh;
    margin-top: 24px;
}
.nx-mj-pin {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}
.nx-mj-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

/* LEFT */
.nx-mj-left { position: relative; }
.nx-mj-step-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 24px;
}
.nx-mj-step-current {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 2rem;
    transition: opacity 0.4s var(--ease-out);
    font-variant-numeric: tabular-nums;
}
.nx-mj-step-divider {
    width: 30px;
    height: 1px;
    background: var(--border-strong);
}
.nx-mj-step-total {
    color: var(--text-faint);
    font-weight: 500;
}
.nx-mj-step-text { position: relative; min-height: 220px; }
.nx-mj-step-title,
.nx-mj-step-desc {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    pointer-events: none;
}
.nx-mj-step-title.active,
.nx-mj-step-desc.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nx-mj-step-title {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 14px;
}
.nx-mj-step-desc {
    top: 70px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 480px;
}

/* DOTS */
.nx-mj-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}
.nx-mj-dot {
    width: 50px; height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: transform 0.3s ease;
}
.nx-mj-dot span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
    transition: width 0.5s var(--ease-out);
}
.nx-mj-dot.active span,
.nx-mj-dot.completed span { width: 100%; }
.nx-mj-dot:hover { transform: scaleY(1.5); }

/* RIGHT panel */
.nx-mj-right { width: 100%; }
.nx-mj-screen {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(130, 62, 157, 0.25),
                0 12px 30px -12px rgba(65, 143, 228, 0.18);
    position: relative;
}
.nx-mj-screen::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.5;
    pointer-events: none;
}
.nx-mj-screen-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.nx-mj-screen-bar > span:nth-child(1),
.nx-mj-screen-bar > span:nth-child(2),
.nx-mj-screen-bar > span:nth-child(3) {
    width: 10px; height: 10px; border-radius: 50%;
}
.nx-mj-screen-bar > span:nth-child(1) { background: #FF5F57; }
.nx-mj-screen-bar > span:nth-child(2) { background: #FEBC2E; }
.nx-mj-screen-bar > span:nth-child(3) { background: #28C840; }
.nx-mj-screen-url {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
}

.nx-mj-stages {
    position: relative;
    padding: 24px;
    min-height: 460px;
}
.nx-mj-pane {
    position: absolute;
    inset: 24px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.nx-mj-pane.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nx-mj-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nx-mj-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 5px;
}
.nx-mj-tag-purple  { background: rgba(130, 62, 157, 0.12); color: var(--brand-purple); }
.nx-mj-tag-blue    { background: rgba(65, 143, 228, 0.15); color: var(--brand-blue); }
.nx-mj-tag-cyan    { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.nx-mj-tag-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.nx-mj-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.nx-mj-pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: nxmjPulse 1.4s ease-in-out infinite;
}
@keyframes nxmjPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

/* Lead card (Pane 1) */
.nx-mj-lead-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.nx-mj-lead-av {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.nx-mj-lead-info { flex: 1; min-width: 0; }
.nx-mj-lead-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}
.nx-mj-lead-src {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 2px;
}
.nx-mj-lead-src svg { color: #25D366; flex-shrink: 0; }
.nx-mj-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 8px;
    border-radius: 5px;
    flex-shrink: 0;
}
.nx-mj-live span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: nxmjPulse 1.4s ease-in-out infinite;
}
.nx-mj-lead-msg {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.55;
    padding: 12px 14px;
    background: rgba(130, 62, 157, 0.06);
    border-left: 3px solid var(--brand-purple);
    border-radius: 8px;
    font-style: italic;
}

/* Signals row (used by panes 1, 2, 4) */
.nx-mj-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.nx-mj-signal {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: left;
    min-width: 0;
}
.nx-mj-signal span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-faint);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nx-mj-signal strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

/* Network (Pane 2) */
.nx-mj-network {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 10px;
}
.nx-mj-network svg { width: 100%; height: auto; max-width: 360px; }
.nx-mj-net-edges line {
    stroke: var(--brand-purple);
    stroke-width: 1;
    opacity: 0.3;
}
.nx-mj-net-nodes circle {
    fill: var(--brand-purple);
    opacity: 0.7;
}
.nx-mj-net-out {
    fill: var(--brand-blue) !important;
    opacity: 1 !important;
}

/* Properties (Pane 3) */
.nx-mj-property {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0;
    transform: translateX(20px);
}
.nx-mj-pane[data-pane="3"].active .nx-mj-prop-1 { animation: nxmjPropIn 0.6s 0.1s var(--ease-spring) forwards; }
.nx-mj-pane[data-pane="3"].active .nx-mj-prop-2 { animation: nxmjPropIn 0.6s 0.3s var(--ease-spring) forwards; }
.nx-mj-pane[data-pane="3"].active .nx-mj-prop-3 { animation: nxmjPropIn 0.6s 0.5s var(--ease-spring) forwards; }
@keyframes nxmjPropIn {
    to { opacity: 1; transform: translateX(0); }
}
.nx-mj-prop-img {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.nx-mj-prop-info { flex: 1; min-width: 0; }
.nx-mj-prop-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nx-mj-prop-meta {
    font-size: 0.74rem;
    color: var(--text-subtle);
    margin-top: 2px;
}
.nx-mj-prop-match {
    text-align: right;
    flex-shrink: 0;
}
.nx-mj-prop-match span {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nx-mj-prop-match {
    font-size: 0.6rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Followup (Pane 4) */
.nx-mj-followup {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nx-mj-followup-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    align-self: flex-start;
}
.nx-mj-followup-body {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
}
.nx-mj-followup-body strong { color: var(--brand-purple); }
.nx-mj-followup-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.nx-mj-fa-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
}
.nx-mj-fa-btn:hover { border-color: var(--brand-purple); }
.nx-mj-fa-primary {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    color: #fff;
    border-color: transparent;
}

/* Progress bar */
.nx-mj-progress {
    position: sticky;
    bottom: 30px;
    width: 80%;
    max-width: 360px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.nx-mj-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
    transition: width 0.3s var(--ease-out);
}

/* Mobile */
@media (max-width: 1024px) {
    .nx-mj-stage { height: auto; }
    .nx-mj-pin { position: static; height: auto; padding: 20px 0; }
    .nx-mj-grid { grid-template-columns: 1fr; gap: 30px; }
    .nx-mj-step-text { min-height: auto; padding-bottom: 200px; }
    .nx-mj-screen { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nx-mj { padding: 50px 0 30px; }
    .nx-mj-head { margin-bottom: 36px; }
    .nx-mj-stages { padding: 18px; min-height: 420px; }
    .nx-mj-pane { inset: 18px; }
}
/* SAFETY NET: hero title always visible after 1.5s even if reveal JS fails */
.hero-title [data-reveal="mask"] {
    animation: heroTitleSafety 0.1s linear 1.5s forwards;
}
.hero-title [data-reveal="mask"] .title-inner {
    animation: heroTitleInnerSafety 0.1s linear 1.5s forwards;
}
@keyframes heroTitleSafety {
    to { clip-path: inset(0 0 0 0) !important; }
}
@keyframes heroTitleInnerSafety {
    to { transform: translateY(0) !important; }
}