@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #030712;
    --surface: #0a0f1c;
    --surface-2: #111827;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #06d6a0;
    --accent-glow: rgba(6, 214, 160, 0.3);
    --pink: #f472b6;
    --pink-glow: rgba(244, 114, 182, 0.3);
    --blue: #38bdf8;
    --blue-glow: rgba(56, 189, 248, 0.3);
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #475569;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated gradient mesh background */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-mesh::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: -400px; left: -200px;
    animation: float1 20s ease-in-out infinite;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, transparent 70%);
    bottom: -300px; right: -100px;
    animation: float2 25s ease-in-out infinite;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-orb-1 {
    width: 400px; height: 400px;
    background: rgba(244, 114, 182, 0.15);
    top: 20%; left: 60%;
    animation: float3 18s ease-in-out infinite;
}

.bg-orb-2 {
    width: 300px; height: 300px;
    background: rgba(56, 189, 248, 0.12);
    top: 60%; left: 10%;
    animation: float1 22s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(1.15); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(0.9); }
}

/* Noise overlay */
.noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Grid pattern */
.grid-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

h1, h2, h3, h4, .heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

img { max-width: 100%; display: block; }

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* ========== GLASS ========== */
.glass {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient border cards */
.glass-glow {
    position: relative;
}

.glass-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(6,214,160,0.2), rgba(244,114,182,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-glow:hover::after {
    opacity: 1;
}

/* ========== NAV ========== */
nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 24px var(--primary-glow), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--primary-glow), 0 0 0 1px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: #030712;
    font-weight: 700;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }

/* ========== LAYOUT ========== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 5% 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    backdrop-filter: blur(10px);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.hero h1 {
    font-size: 64px;
    max-width: 900px;
    margin-bottom: 8px;
    line-height: 1.05;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--pink) 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    color: var(--text-dim);
    font-size: 20px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.hero-pill:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.hero-pill i {
    font-size: 12px;
    color: var(--primary-light);
}

.hero-pill::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--surface-2);
    border: 1px solid var(--glass-border-hover);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    max-width: 280px;
    white-space: normal;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-pill::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--surface-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 101;
}

.hero-pill:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.hero-pill:hover::before {
    opacity: 1;
}

.hero-pill:active {
    transform: translateY(0) scale(0.98);
}

/* Hero visual decoration */
.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    pointer-events: none;
    z-index: -1;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.1);
    animation: ringPulse 4s ease-in-out infinite;
}

.hero-decoration::after {
    content: '';
    position: absolute;
    inset: 100px;
    border-radius: 50%;
    border: 1px solid rgba(6, 214, 160, 0.08);
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ========== STATS BAR ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 40px 5%;
    max-width: 1140px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    border-right: 1px solid var(--glass-border);
    padding: 20px;
    transition: var(--transition);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 42px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    font-weight: 500;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.feature-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    font-size: 24px;
    color: var(--primary-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
    font-size: 22px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== VIDEO SECTION ========== */
.video-section {
    padding: 80px 0;
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(6,214,160,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ========== PIPELINE FLOW (legacy pills — kept for compat) ========== */
.pipeline-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
}

.pipeline-step {
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.pipeline-step:hover {
    transform: translateY(-2px) scale(1.05);
}

.pipeline-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== PIPELINE FUNNEL ========== */
.funnel-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0 28px;
    max-width: 980px;
    margin: 0 auto;
}

.funnel-bracket {
    grid-column: 1;
    grid-row: 1 / span 7;
    display: flex;
    align-items: center;
}

.funnel-bracket-accent {
    grid-row: auto;
}

.funnel-bracket-inner {
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-right: none;
    border-radius: 24px 0 0 24px;
    padding: 20px 14px;
    height: 55%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.funnel-bracket-accent .funnel-bracket-inner {
    border-color: rgba(6, 214, 160, 0.35);
}

.funnel-group-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--primary-light);
}

.funnel-group-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    line-height: 1.5;
}

.funnel-row {
    grid-column: 2;
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 10px;
}

.funnel-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: var(--text);
}

.funnel-num {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.funnel-num-accent {
    background: linear-gradient(135deg, var(--accent), #059669);
    box-shadow: 0 0 16px rgba(6, 214, 160, 0.35);
}

.funnel-layer {
    width: var(--w);
    justify-self: center;
    height: 72px;
    clip-path: polygon(0 0, 100% 0, 95.5% 100%, 4.5% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: default;
    will-change: transform;
}

.funnel-layer:hover {
    filter: brightness(1.2) saturate(1.1);
    transform: scale(1.03);
}

.funnel-handover {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.funnel-handover-line {
    flex: 1;
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
}

.funnel-handover-pill {
    padding: 9px 24px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border-hover);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    animation: handoverPulse 2.5s ease-in-out infinite;
}

@keyframes handoverPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); border-color: var(--glass-border-hover); }
    50% { box-shadow: 0 0 24px rgba(139, 92, 246, 0.25); border-color: rgba(139, 92, 246, 0.5); }
}

.funnel-footer {
    grid-column: 1 / -1;
    margin-top: 28px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.funnel-footer-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    font-size: 28px;
    color: var(--primary-light);
}

.funnel-footer-text {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-heading);
}

.funnel-footer-text strong {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-light);
}

.funnel-footer-text span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
}

.funnel-footer-chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.funnel-chip i {
    color: var(--accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

@media (max-width: 700px) {
    .funnel-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .funnel-bracket {
        display: none;
    }
    .funnel-row {
        grid-column: 1;
        grid-template-columns: 118px 1fr;
        column-gap: 12px;
    }
    .funnel-label {
        font-size: 10px;
        gap: 8px;
    }
    .funnel-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .funnel-layer {
        height: 54px;
        font-size: 20px;
    }
    .funnel-footer {
        padding: 24px 20px;
    }
    .funnel-footer-chips {
        flex-direction: column;
    }
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.testimonial-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-img {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.testimonial-card .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

/* Testimonial quote cards */
.testimonials-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .testimonials-quote-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-quote {
    padding: 40px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(139, 92, 246, 0.15);
    line-height: 1;
}

.testimonial-quote blockquote {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.testimonial-avatar-img {
    object-fit: cover;
    object-position: center top;
}

.testimonial-author-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.testimonial-author-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th {
    text-align: left;
    padding: 20px 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th.highlight {
    text-align: center;
}

.comparison-table th.highlight span {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

.comparison-table td.center {
    text-align: center;
}

.comparison-table .check {
    color: var(--accent);
}

.comparison-table .x {
    color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq-item {
    padding: 28px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--glass-border-hover);
}

.faq-item h4 {
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-item h4 i {
    color: var(--primary-light);
    font-size: 14px;
}

.faq-item p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 5%;
    text-align: center;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 214, 160, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: ctaGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== DEMO PAGE ========== */
.demo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 5% 80px;
}

.demo-input-card {
    padding: 40px;
    margin-bottom: 32px;
}

.demo-input-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.demo-input-card .subtitle {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 28px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ========== SIMULATION ========== */
.sim-screen {
    display: none;
    padding: 40px;
    min-height: 400px;
}

.sim-screen.active { display: block; }

.sim-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.sim-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.sim-step-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    transition: var(--transition);
}

.sim-step-icon.pending {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.sim-step-icon.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--primary-light);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.sim-step-icon.done {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.2), rgba(6, 214, 160, 0.1));
    color: var(--accent);
}

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

.sim-step-content { flex: 1; }

.sim-step-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.sim-step-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 2px;
}

.sim-step-preview {
    margin-top: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    display: none;
    border-left: 3px solid var(--primary);
}

.sim-step-preview.show { display: block; }

.sim-result {
    text-align: center;
    padding: 40px;
}

.sim-result .check {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.2), rgba(6, 214, 160, 0.1));
    border: 1px solid rgba(6, 214, 160, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    box-shadow: 0 0 40px rgba(6, 214, 160, 0.2);
}

.sim-result h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.sim-result p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

/* ========== TECH PAGE ========== */
.tech-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px;
    margin-bottom: 24px;
    align-items: start;
}

.tech-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 18px;
    font-size: 28px;
    color: var(--primary-light);
}

.tech-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.tech-item p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.7;
}

.tech-tags {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(6, 214, 160, 0.15);
    transform: translateY(-2px);
}

/* ========== ABOUT PAGE ========== */
.about-story {
    padding: 48px;
    margin-bottom: 40px;
}

.about-story p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-story p strong {
    color: var(--text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    padding: 32px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 214, 160, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-light);
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.team-card h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========== TIMELINE ========== */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 4px;
    width: 14px; height: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 16px var(--primary-glow);
}

.timeline-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--text-dim);
    font-size: 15px;
}

/* ========== FOOTER ========== */
footer {
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 7, 18, 0.8);
}

footer .logo {
    justify-content: center;
    margin-bottom: 12px;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

footer .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
}

footer .footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: var(--text);
}

/* ========== SCROLL ANIMATIONS ========== */
/* No default hiding — GSAP sets initial states inline.
   If JS fails for any reason, content stays visible. */
.fade-in-up {
    will-change: opacity, transform;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 17px; }
    .features-grid, .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .nav-links { display: none; }
    .section-header h2 { font-size: 32px; }
    .tech-item { grid-template-columns: 1fr; gap: 16px; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 28px; }
}

@media (max-width: 700px) {
    nav { padding: 0 4%; height: 64px; }
    .logo { font-size: 18px; }
    .logo img { height: 32px; }
    .nav-toggle { display: block; }
    .nav-links {
        display: flex;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }
    .nav-links a {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-dim);
    }
    .nav-links a.active { color: var(--text); }
    .nav-actions {
        display: none;
    }
    .nav-links.open ~ .nav-actions { display: none; }
    .mobile-cta {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 5%;
        background: rgba(3, 7, 18, 0.97);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--glass-border);
        gap: 10px;
        z-index: 998;
    }
    .mobile-cta .btn { flex: 1; padding: 12px 16px; font-size: 13px; }
    .hero { padding-bottom: 80px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 26px; line-height: 1.2; }
    .hero { padding: 100px 5% 100px; }
    .hero p { font-size: 15px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; font-size: 14px; padding: 14px 20px; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 0; }
    .stat { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 16px 8px; }
    .stat:nth-child(2) { border-bottom: 1px solid var(--glass-border); }
    .stat:nth-child(3) { border-bottom: none; }
    .stat:nth-child(4) { border-bottom: none; }
    .stat-num { font-size: 24px; }
    .stat-label { font-size: 11px; }
    .section { padding: 48px 0; }
    .demo-input-card, .sim-screen { padding: 20px; }
    .container { padding: 0 4%; }
    .dashboard-mock { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 28px 20px; }
    .funnel-grid { gap: 12px; }
    .funnel-row { flex-direction: column; align-items: flex-start; }
    .funnel-row .funnel-layer { width: 100%; }
    .testimonials-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
    .cta-box h2 { font-size: 24px; }
    .cta-actions { flex-direction: column; gap: 10px; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}
}

/* ========== CUSTOM CURSOR ========== */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(6, 214, 160, 0.1);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-dot { display: none; }
}

/* ========== THREE.JS CANVAS ========== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== TEXT REVEAL ANIMATION ========== */
/* Char-split reveal removed — Chrome breaks background-clip: text
   with transformed descendants. Gradient CSS animation used instead. */

/* ========== 3D CARD PERSPECTIVE ========== */
.feature-card,
.testimonial-card,
.faq-item,
.tech-item {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.feature-card:hover,
.testimonial-card:hover,
.faq-item:hover,
.tech-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* ========== MAGNETIC BUTTON ========== */
.btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

/* ========== LENIS SMOOTH SCROLL ========== */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ========== GSAP ANIMATION STATES ========== */
.gsap-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.gsap-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

.gsap-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
}

/* ========== PAGE TRANSITIONS ========== */
.page-transition {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #030712 0%, #0a0f1c 50%, #030712 100%);
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
}

.page-transition.entering {
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-transition.leaving {
    animation: pageLeave 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    0% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

@keyframes pageLeave {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

/* Page load fade-in */
body {
    animation: bodyFadeIn 0.6s ease-out;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== DASHBOARD MOCK (Hero) ========== */
.dashboard-mock {
    margin-top: 48px;
    width: 100%;
    max-width: 960px;
    border-radius: 16px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #07080d;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
    display: flex;
    position: relative;
    z-index: 1;
    transform: perspective(1200px) rotateX(2deg) rotateY(-1deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
}

.dashboard-mock:hover {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.08);
}

.dm-sidebar {
    width: 200px;
    min-width: 200px;
    background: rgba(13, 15, 24, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    position: relative;
    z-index: 2;
    border-radius: 16px 0 0 16px;
}

.dm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    margin-bottom: 28px;
}

.dm-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.dm-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #a78bfa, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dm-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #a78bfa;
}

.dm-nav-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.1);
}

.dm-nav-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.dm-sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-engine-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #10b981;
    padding: 8px;
}

.dm-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    position: relative;
}

.dm-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: dmPulseRing 2s ease-out infinite;
}

@keyframes dmPulseRing {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}

.dm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dm-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 24, 0.8);
}

.dm-topbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.dm-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #475569;
}

.dm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.dm-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.dm-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dm-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dm-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.dm-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
}

.dm-stat-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dm-funnel-card {
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px;
}

.dm-funnel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dm-funnel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.dm-funnel-period {
    font-size: 11px;
    color: #475569;
}

.dm-funnel-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dm-funnel-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    gap: 8px;
}

.dm-funnel-label {
    font-size: 11px;
    color: #8892b0;
}

.dm-funnel-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.dm-funnel-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-funnel-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    color: #8892b0;
}

.dm-activity-card {
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px;
    flex: 1;
}

.dm-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dm-activity-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.dm-activity-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #10b981;
}

.dm-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dm-activity-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
}

.dm-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dm-activity-text {
    flex: 1;
    color: #8892b0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-activity-text strong {
    color: #06d6a0;
    font-weight: 500;
}

.dm-activity-time {
    font-size: 10px;
    color: #475569;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dashboard-mock {
        border-radius: 12px;
        transform: none;
    }
    .dashboard-mock:hover {
        transform: none;
    }
    .dm-sidebar {
        width: 56px;
        min-width: 56px;
        padding: 16px 8px;
        border-radius: 12px 0 0 12px;
    }
    .dm-logo-text,
    .dm-nav-item span,
    .dm-engine-status span:last-child {
        display: none;
    }
    .dm-nav-item {
        justify-content: center;
        padding: 10px;
    }
    .dm-nav-item i {
        margin: 0;
    }
    .dm-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dm-stat-num {
        font-size: 13px;
    }
    .dm-stat-label {
        font-size: 9px;
    }
    .dm-funnel-row {
        grid-template-columns: 60px 1fr 40px;
    }
    .dm-activity-entry {
        font-size: 10px;
    }
    .dm-search {
        display: none;
    }
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    padding: 40px 32px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.pricing-card-featured:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    width: fit-content;
}

.pricing-badge-featured {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border-color: rgba(139, 92, 246, 0.3);
}

.pricing-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card-featured .pricing-price {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 18px;
    font-weight: 500;
    -webkit-text-fill-color: var(--text-dim);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

.pricing-features li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 12px;
    flex-shrink: 0;
}

/* ========== DASHBOARD MOCK PANELS ========== */
.dm-panel {
    display: none;
}
.dm-panel.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

/* Pipeline Panel */
.dm-pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.dm-pipeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
}
.dm-pipeline-count {
    font-size: 12px;
    color: #475569;
}
.dm-pipeline-funnel {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 12px;
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
}
.dm-pf-bar {
    flex: 1;
    height: var(--h);
    min-height: 8px;
    background: var(--c);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4px;
    position: relative;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dm-pf-bar span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.dm-pf-bar small {
    font-size: 8px;
    color: rgba(255,255,255,0.7);
    position: absolute;
    bottom: -16px;
    white-space: nowrap;
}
.dm-lead-table {
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    overflow: hidden;
}
.dm-lead-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.7fr;
    padding: 8px 14px;
    font-size: 12px;
    color: #8892b0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
}
.dm-lead-row:last-child {
    border-bottom: none;
}
.dm-lead-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    font-weight: 600;
    background: rgba(255,255,255,0.02);
}
.dm-lead-handle {
    color: #06d6a0;
    font-weight: 500;
}
.dm-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    color: var(--sc);
    border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent);
    width: fit-content;
}

/* Engine Panel */
.dm-engine-card {
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
}
.dm-engine-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dm-engine-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dm-engine-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dm-engine-badge {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
}
.dm-badge-online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.dm-engine-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.dm-es {
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
}
.dm-es-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}
.dm-es-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.dm-engine-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dm-log-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #8892b0;
    margin-bottom: 4px;
}
.dm-log-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    font-size: 11px;
    color: #8892b0;
}
.dm-log-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dm-log-entry span:last-child {
    margin-left: auto;
    font-size: 10px;
    color: #475569;
    white-space: nowrap;
}

/* Settings Panel */
.dm-settings-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dm-set-group {
    background: rgba(22, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px;
}
.dm-set-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text);
}
.dm-set-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    color: #8892b0;
}
.dm-set-row:last-child {
    border-bottom: none;
}
.dm-set-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    color: var(--text);
}
.dm-set-on {
    color: #10b981;
}
.dm-set-link {
    color: #06d6a0;
}

@media (max-width: 768px) {
    .dm-pipeline-funnel { height: 60px; }
    .dm-pf-bar small { display: none; }
    .dm-lead-row { grid-template-columns: 1.2fr 0.6fr 0.8fr; }
    .dm-lead-row span:last-child { display: none; }
    .dm-engine-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========== LIVE ACTIVITY FEED ========== */
.activity-feed-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.activity-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.activity-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    transition: background 0.2s ease;
}

.activity-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-action {
    color: var(--text-dim);
    font-size: 13px;
    min-width: 110px;
}

.activity-handle {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 13px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.activity-loading, .activity-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@keyframes activitySlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.activity-row {
    animation: activitySlideIn 0.3s ease;
}

/* ========== BEFORE / AFTER ========== */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.ba-card {
    padding: 40px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.ba-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ba-before {
    border-color: rgba(239, 68, 68, 0.2);
}

.ba-before:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 68, 68, 0.05);
}

.ba-after {
    border-color: rgba(6, 214, 160, 0.2);
}

.ba-after:hover {
    border-color: rgba(6, 214, 160, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(6, 214, 160, 0.05);
}

.ba-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.ba-badge-before {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ba-badge-after {
    background: rgba(6, 214, 160, 0.15);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.ba-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.ba-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ba-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.5;
}

.ba-before .ba-list li i {
    color: #f87171;
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.ba-after .ba-list li i {
    color: #06d6a0;
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }
    .ba-card {
        padding: 28px 20px;
    }
}

/* ========== CASE STUDY ========== */
.case-study-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.case-study-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-stat {
    padding: 24px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.cs-stat:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cs-stat-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.cs-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.case-study-quote {
    padding: 32px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.case-study-quote::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(139, 92, 246, 0.15);
    line-height: 1;
}

.case-study-quote blockquote {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.case-study-quote .testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.case-study-quote .testimonial-author h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.case-study-quote .testimonial-author p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .cs-stat-num {
        font-size: 28px;
    }
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loading-overlay.active {
    animation: loadingPulse 1.4s ease-in-out;
}

.loading-overlay.exit {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    animation: loadingBreathe 1.4s ease-in-out;
}

.loading-logo-img {
    height: 60px;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
}

@keyframes loadingBreathe {
    0% { opacity: 0; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.05); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes loadingPulse {
    0% { opacity: 1; }
    100% { opacity: 1; }
}

/* ========== STAT BARS ========== */
.stat-bars {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-bar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.stat-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.stat-bar-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.stat-bar-track {
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    overflow: hidden;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: barShine 2s ease-in-out infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 700px) {
    .stat-bars {
        padding: 0 4%;
    }
    .stat-bar-head {
        gap: 8px;
    }
    .stat-bar-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .stat-bar-label {
        font-size: 13px;
    }
    .stat-bar-num {
        font-size: 15px;
    }
    .stat-bar-track {
        height: 32px;
    }
}

/* ========== CURSOR TRAIL ========== */
.cursor-trail-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    mix-blend-mode: screen;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
    .cursor-trail-dot {
        display: none;
    }
}

/* ========== LIVE FEED ANIMATIONS ========== */
.activity-row-new {
    animation: feedSlideIn 0.4s ease-out;
}

@keyframes feedSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}
