/* =========================================
   VISÃO NO PDV — Design System
   ========================================= */

/* ---------- Switzer Font (self-hosted) ---------- */
@font-face {
    font-family: 'Switzer';
    src: url('../assets/fonts/Switzer-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('../assets/fonts/Switzer-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
    /* ===== NUVIZ BRAND COLORS ===== */

    /* Brand Purple (Primary - 50% usage) */
    --nuviz-purple-900: #4C1D95;
    --nuviz-purple-700: #5B21B6;
    --nuviz-purple-600: #7C3AED;  /* PRIMARY */
    --nuviz-purple-500: #8B5CF6;
    --nuviz-purple-400: #A78BFA;
    --nuviz-purple-100: #EDE9FE;

    /* Supporting Blue (Secondary - 30% usage) */
    --nuviz-blue-700: #1E40AF;
    --nuviz-blue-500: #3B82F6;
    --nuviz-blue-300: #93C5FD;

    /* Functional Colors */
    --nuviz-success: #10B981;
    --nuviz-warning: #F59E0B;
    --nuviz-error: #EF4444;

    /* Neutrals */
    --nuviz-gray-900: #111827;
    --nuviz-gray-600: #4B5563;
    --nuviz-gray-400: #9CA3AF;
    --nuviz-gray-200: #E5E7EB;
    --nuviz-gray-50: #F9FAFB;

    /* ===== ALIASES (for convenience) ===== */
    --primary: var(--nuviz-purple-600);
    --primary-dark: var(--nuviz-purple-700);
    --complementary: var(--nuviz-blue-500);
    --complementary-light: var(--nuviz-blue-300);
    --deep: var(--nuviz-purple-900);

    --alert: var(--nuviz-error);
    --alert-light: #F87171;
    --success: var(--nuviz-success);
    --success-dark: #059669;
    --warning: var(--nuviz-warning);

    --white: #ffffff;
    --gray-50: var(--nuviz-gray-50);
    --gray-100: #E5E5E7;
    --gray-300: #C4C4D4;
    --gray-500: var(--nuviz-gray-400);
    --gray-700: var(--nuviz-gray-600);
    --gray-900: var(--nuviz-gray-900);
    --black: #000000;

    /* Gradientes (Nuviz Brand) */
    --gradient-primary: linear-gradient(135deg, #5B21B6 0%, #7C3AED 50%, #3B82F6 100%);
    --gradient-dark: linear-gradient(135deg, #1e1841 0%, #000000 100%);
    --gradient-alert: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);

    /* Tipografia (Nuviz Brand) */
    --font-logo: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Espaçamentos */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Bordas */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);

    /* Transições (legacy - mantidos para compatibilidade) */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* ===== MOTION DESIGN SYSTEM ===== */

    /* Durations */
    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    /* Easing curves */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Delays para stagger */
    --delay-1: 100ms;
    --delay-2: 200ms;
    --delay-3: 300ms;
    --delay-4: 400ms;
    --delay-5: 500ms;
    --delay-6: 600ms;

    /* ===== SHADOW SYSTEM (Hierarquia Visual) ===== */

    /* Elevation shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Glow effects (para CTAs e destaques) - Nuviz Brand */
    --shadow-glow-primary: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
    --shadow-glow-alert: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);

    /* Elevation system aliases */
    --elevation-1: var(--shadow-sm);
    --elevation-2: var(--shadow-base);
    --elevation-3: var(--shadow-md);
    --elevation-4: var(--shadow-lg);

    /* ===== BLUR & GLASS EFFECTS ===== */

    --blur-sm: 4px;
    --blur-base: 8px;
    --blur-lg: 16px;
    --blur-xl: 24px;

    /* Glassmorphism presets */
    --glass-light: rgba(255, 255, 255, 0.1);
    --glass-medium: rgba(255, 255, 255, 0.15);
    --glass-heavy: rgba(255, 255, 255, 0.25);

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
}

/* ---------- Animations ---------- */

/* Gradient shift animation (for logo and hero highlights) */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Utility class for animated gradients */
.gradient-animated {
    background-size: 250% 250%;
    animation: gradient-shift 5s ease-in-out infinite;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-variation-settings: 'opsz' 40;  /* Optical sizing for DM Sans */
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-variation-settings: 'opsz' 36;  /* Optical sizing for DM Sans */
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-variation-settings: 'opsz' 24;  /* Optical sizing for DM Sans */
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.small {
    font-size: 0.875rem;
}

.mono {
    font-family: var(--font-mono);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    max-width: var(--container-sm);
}

.container-md {
    max-width: var(--container-md);
}

.container-lg {
    max-width: var(--container-lg);
}

section {
    padding: var(--space-4xl) 0;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease-out);
}

/* Scrolled state - more compact and prominent */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(var(--blur-lg));
    box-shadow: var(--elevation-2);
}

.header.scrolled .header-inner {
    height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height var(--duration-base) var(--ease-out);
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
    opacity: 0.85;
}

/* Logo Wordmark with Gradient Animation */
.logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo-primary {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease-in-out infinite;
}

.logo-secondary {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 480px) {
    .logo-primary {
        font-size: 24px;
    }

    .logo-secondary {
        font-size: 11px;
    }
}

/* Legacy SVG logo (keep for fallback) */
.logo-svg {
    display: block;
    height: 36px;
    width: auto;
}

@media (max-width: 480px) {
    .logo-svg {
        height: 28px;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
    color: var(--white);
    box-shadow: var(--shadow-glow-primary);
    transform: translateY(-2px);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-100);
        display: none;
    }

    .nav.active {
        display: flex;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(72px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

/* Ripple effect base */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--duration-slow) var(--ease-out),
                height var(--duration-slow) var(--ease-out);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    color: var(--white);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-base);
}

.btn-secondary::before {
    background: rgba(0, 0, 0, 0.05);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: var(--success-dark);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-3px);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

/* ---------- Tags ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    background: var(--complementary);
    color: var(--white);
}

.tag-alert {
    background: var(--alert);
}

.tag-success {
    background: var(--success);
}

.tag-warning {
    background: var(--warning);
    color: var(--black);
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--elevation-1);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--elevation-3);
    transform: translateY(-6px);
}

.card-img {
    aspect-ratio: 16/9;
    background: var(--gray-50);
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: var(--space-lg);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card-title a {
    color: var(--black);
    transition: color var(--duration-fast) var(--ease-out);
}

.card-title a:hover {
    color: var(--primary);
}

/* Card image zoom on hover */
.card-img {
    overflow: hidden;
}

.card-img img,
.card-img span {
    transition: transform var(--duration-base) var(--ease-out);
}

.card:hover .card-img img,
.card:hover .card-img span {
    transform: scale(1.05);
}

.card-excerpt {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- Email Capture ---------- */
.email-capture {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.email-capture h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.email-capture p {
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.email-form {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.email-form input::placeholder {
    color: var(--gray-500);
}

.email-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.email-form button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .email-form {
        flex-direction: column;
    }
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-1);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    /* Counter animation prepared via JS */
}

.stat-number.alert {
    color: var(--alert);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.stat-number.success {
    color: var(--success);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* ---------- Article ---------- */
.article {
    padding-top: calc(72px + var(--space-3xl));
}

.article-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--gray-500);
}

.article-title {
    margin-bottom: var(--space-lg);
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-cover {
    aspect-ratio: 21/9;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.article-content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-content strong {
    color: var(--black);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content ul, .article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-700);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

/* Callout box */
.callout {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.callout-alert {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--alert);
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
}

.callout-info {
    background: rgba(124, 58, 237, 0.1);
    border-left: 4px solid var(--primary);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer .logo-svg {
    height: 28px;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
}

.footer-bottom a {
    color: var(--primary);
}

/* ---------- Grid ---------- */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-alert { color: var(--alert); }
.text-success { color: var(--success); }
.text-muted { color: var(--gray-500); }

.bg-dark { background: var(--gray-900); color: var(--white); }
.bg-light { background: var(--gray-50); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger animations */
.stagger > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* =========================================
   MOTION DESIGN SYSTEM — Keyframes
   ========================================= */

/* Fade variations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse & Attention */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.35); }
    50% { box-shadow: 0 6px 20px 3px rgba(124, 58, 237, 0.45); }
}

@keyframes pulseGlowSuccess {
    0%, 100% { box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35); }
    50% { box-shadow: 0 6px 20px 3px rgba(16, 185, 129, 0.45); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Underline reveal */
@keyframes underlineGrow {
    from { width: 0; }
    to { width: 100%; }
}

/* Shimmer/Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Float effect */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Ripple effect */
@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* =========================================
   MOTION DESIGN SYSTEM — Utility Classes
   ========================================= */

/* ---------- Hover Effects ---------- */

/* Lift effect (card-like) */
.hover-lift {
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Glow effect */
.hover-glow {
    transition: box-shadow var(--duration-base) var(--ease-out);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow-primary);
}

/* Scale effect */
.hover-scale {
    transition: transform var(--duration-fast) var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Underline animation */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--duration-base) var(--ease-out);
}

.hover-underline:hover::after {
    width: 100%;
}

/* ---------- Scroll Reveal Classes ---------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered reveal children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-1); }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-2); }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-3); }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-4); }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-5); }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: var(--delay-6); }

/* ---------- Pulse & Attention Grabbers ---------- */

.pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

.pulse-glow {
    animation: pulseGlow 4s var(--ease-in-out) infinite;
}

.pulse-glow-success {
    animation: pulseGlowSuccess 4s var(--ease-in-out) infinite;
}

.float {
    animation: float 3s var(--ease-in-out) infinite;
}

/* ---------- Shimmer/Skeleton ---------- */

.shimmer {
    background: linear-gradient(
        90deg,
        var(--gray-100) 25%,
        var(--gray-50) 50%,
        var(--gray-100) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ---------- Animation utilities ---------- */

.animate-delay-1 { animation-delay: var(--delay-1); }
.animate-delay-2 { animation-delay: var(--delay-2); }
.animate-delay-3 { animation-delay: var(--delay-3); }
.animate-delay-4 { animation-delay: var(--delay-4); }
.animate-delay-5 { animation-delay: var(--delay-5); }
.animate-delay-6 { animation-delay: var(--delay-6); }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */

@media (max-width: 768px) {
    /* Reduce section padding on mobile */
    section {
        padding: var(--space-3xl) 0;
    }

    /* Reduce hero top padding */
    .hero {
        padding-top: calc(72px + var(--space-2xl));
        padding-bottom: var(--space-3xl);
    }

    /* Stack hero buttons vertically */
    .hero .flex-center {
        flex-direction: column;
        width: 100%;
    }

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

    /* Reduce grid gap */
    .grid {
        gap: var(--space-lg);
    }

    /* Nav mobile transition */
    .nav {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity var(--duration-base) var(--ease-out),
                    transform var(--duration-base) var(--ease-out);
    }

    .nav.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stats section less padding */
    .bg-light {
        padding: var(--space-2xl) 0;
    }

    /* Email capture padding */
    .email-capture {
        padding: var(--space-2xl);
    }

    /* Footer padding */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
}

@media (max-width: 480px) {
    /* Even smaller padding on very small screens */
    .container {
        padding: 0 var(--space-md);
    }

    /* Smaller H1 on mobile */
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    /* Smaller hero subtitle */
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Smaller stat numbers */
    .stat-number {
        font-size: 2rem;
    }

    /* Smaller buttons */
    .btn-lg {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }
}
