/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #f4f4f8;
    --surface: #f7f7fb;
    --border: #e4e4ed;
    --border-light: #d4d4e0;
    --text: #1a1a2e;
    --text-muted: #6b6b8a;
    --text-dim: #9a9ab5;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06d6a0;
    --accent2: #f43f5e;
    --coral: #ff6b6b;
    --amber: #f59e0b;
    --cyan: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #6366f1, #ec4899);
    --gradient2: linear-gradient(135deg, #6366f1, #06d6a0);
    --gradient-mesh: linear-gradient(135deg, #6366f1 0%, #a855f7 25%, #ec4899 50%, #f43f5e 75%, #f59e0b 100%);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(99,102,241,0.06);
    --shadow: 0 4px 24px rgba(99,102,241,0.08);
    --shadow-lg: 0 12px 48px rgba(99,102,241,0.12);
    --shadow-xl: 0 24px 64px rgba(99,102,241,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ===== PROFESSIONAL DYNAMIC TYPOGRAPHY ===== */
body {
    text-rendering: optimizeLegibility;
}
p, li, span, a, label, button, input, textarea, select {
    text-rendering: optimizeLegibility;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 30px; border-radius: 50px; font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.25), 0 0 0 0 rgba(99,102,241,0);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(99,102,241,0.35), 0 0 0 4px rgba(99,102,241,0.08);
    color: #fff;
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline {
    background: transparent; color: var(--text);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.04); }
.btn-ghost {
    background: rgba(99,102,241,0.06); color: var(--text);
    border: 2px solid var(--border);
}
.btn-ghost:hover { background: rgba(99,102,241,0.1); color: var(--primary); border-color: var(--primary-light); }
.btn-sm { padding: 9px 22px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon {
    width: 42px; height: 42px; padding: 0; border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.1rem; transition: var(--transition);
}
.btn-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0;
    background: rgba(255,255,255,0.75); backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(99,102,241,0.08);
    transition: all 0.3s ease;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: 'Luckiest Guy', cursive; font-size: 1.5rem; font-weight: 400;
    color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(99,102,241,0.08);
    transition: text-shadow 0.3s ease;
}
.logo:hover {
    color: var(--text);
    text-shadow: 0 2px 4px rgba(99,102,241,0.12), 0 4px 12px rgba(99,102,241,0.06);
}
.logo-icon {
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-size: 1.4rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-muted); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gradient); border-radius: 1px; transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary-dark); text-shadow: 0 1px 3px rgba(99,102,241,0.12); transform: translateY(-1px); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.credit-display {
    display: flex; align-items: center; gap: 8px;
    background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    color: var(--primary);
}
.credit-icon { font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
    padding: 180px 0 100px; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(180deg, #f0edff 0%, #fff5f5 30%, #f0fdf9 60%, #ffffff 100%);
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 700px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.10), rgba(236,72,153,0.06) 40%, rgba(6,214,160,0.04) 60%, transparent 70%);
    pointer-events: none;
}
.badge {
    display: inline-block; padding: 10px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.06));
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    color: var(--primary); margin-bottom: 32px; letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(99,102,241,0.1);
    box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    color: var(--text);
    text-shadow:
        0 1px 0 rgba(0,0,0,0.06),
        0 2px 4px rgba(99,102,241,0.08),
        0 4px 12px rgba(99,102,241,0.06),
        0 8px 24px rgba(99,102,241,0.04);
}
.gradient-text {
    background: var(--gradient-mesh);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: meshShift 6s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(99,102,241,0.15)) drop-shadow(0 6px 16px rgba(236,72,153,0.1));
}
@keyframes meshShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-sub {
    font-size: 1.2rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 44px;
    line-height: 1.8; font-weight: 400; letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; justify-content: center; gap: 64px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
    font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; text-shadow: 0 1px 1px rgba(0,0,0,0.03);
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); }
.section-title {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700;
    text-align: center; margin-bottom: 16px; letter-spacing: 0.03em; color: var(--text);
    text-shadow:
        0 1px 0 rgba(0,0,0,0.05),
        0 2px 4px rgba(99,102,241,0.07),
        0 6px 16px rgba(99,102,241,0.05);
    transition: text-shadow 0.4s ease;
}
.section-title:hover {
    text-shadow:
        0 1px 0 rgba(0,0,0,0.06),
        0 3px 8px rgba(99,102,241,0.12),
        0 8px 24px rgba(236,72,153,0.06);
}
.section-sub { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 60px; font-weight: 500; letter-spacing: 0.01em; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
    text-align: center; padding: 44px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.step-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.step-num {
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--gradient); color: #fff; font-size: 1.2rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}
.step-card h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: var(--text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(99,102,241,0.05);
    transition: text-shadow 0.3s ease, color 0.3s ease;
}
.step-card:hover h3 {
    text-shadow: 0 2px 4px rgba(99,102,241,0.1), 0 4px 12px rgba(99,102,241,0.06);
    color: var(--primary-dark);
}
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; transition: color 0.3s ease; }
.step-card:hover p { color: var(--text); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    margin-bottom: 16px; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px; transition: transform 0.4s ease;
}
.feature-icon svg {
    width: 26px; height: 26px; stroke-width: 1.75;
}
.feature-card:nth-child(1) .feature-icon { background: rgba(99,102,241,0.08); color: #6366f1; }
.feature-card:nth-child(2) .feature-icon { background: rgba(245,158,11,0.08); color: #f59e0b; }
.feature-card:nth-child(3) .feature-icon { background: rgba(236,72,153,0.08); color: #ec4899; }
.feature-card:nth-child(4) .feature-icon { background: rgba(6,214,160,0.08); color: #06d6a0; }
.feature-card:nth-child(5) .feature-icon { background: rgba(6,182,212,0.08); color: #06b6d4; }
.feature-card:nth-child(6) .feature-icon { background: rgba(244,63,94,0.08); color: #f43f5e; }
.feature-card h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: var(--text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(99,102,241,0.05);
    transition: text-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover h3 {
    text-shadow: 0 2px 4px rgba(99,102,241,0.1), 0 4px 12px rgba(99,102,241,0.06);
    color: var(--primary-dark);
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; transition: color 0.3s ease; }
.feature-card:hover p { color: var(--text); }

/* ===== DEMO SHOWCASE ===== */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.demo-grid .demo-card:first-child {
    grid-column: 1 / -1;
}
.demo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    background: var(--surface);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.demo-card:hover {
    border-color: transparent;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99,102,241,0.18), 0 0 0 2px rgba(99,102,241,0.15);
}
.demo-card.demo-active { z-index: 10; }
.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.demo-prompt {
    font-size: 0.9rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
}
.demo-style {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.demo-placeholder .demo-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(236,72,153,0.04));
}
.demo-play-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    opacity: 0.6;
}

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.pricing-grid-2 { max-width: 700px; margin-left: auto; margin-right: auto; }
.pricing-grid-4 { max-width: 1100px; margin-left: auto; margin-right: auto; grid-template-columns: repeat(4, 1fr); }
.pricing-grid-5 { max-width: 1340px; margin-left: auto; margin-right: auto; grid-template-columns: repeat(5, 1fr); }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px 24px 36px; position: relative; transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: none;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.price-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--border);
    transition: height 0.4s ease, filter 0.4s ease;
}
.price-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.price-card:hover::before {
    height: 6px;
    filter: brightness(1.15) saturate(1.3);
}
.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 40px rgba(99,102,241,0.12);
    transform: scale(1.03);
}
.price-card.popular:hover {
    transform: translateY(-10px) scale(1.05);
}
.popular-badge, .premium-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 0.78rem; font-weight: 800;
    padding: 7px 28px; border-radius: 50px; text-transform: uppercase;
    white-space: nowrap; letter-spacing: 0.1em; z-index: 10;
}
.popular-badge { background: var(--gradient); box-shadow: 0 4px 20px rgba(99,102,241,0.45); }
.premium-badge { background: linear-gradient(135deg, #f43f5e, #f59e0b); box-shadow: 0 4px 20px rgba(244,63,94,0.45); }
.price-icon {
    margin-bottom: 12px;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; margin-left: auto; margin-right: auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.price-icon svg {
    width: 28px; height: 28px; stroke-width: 1.75;
}
.price-card:hover .price-icon {
    transform: scale(1.12) translateY(-2px);
}
.price-tier {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.price-amount {
    font-family: 'Space Grotesk', sans-serif; font-size: 3.2rem; font-weight: 700; margin-bottom: 4px; color: var(--text);
    text-shadow:
        0 1px 0 rgba(0,0,0,0.06),
        0 2px 4px rgba(99,102,241,0.06),
        0 6px 16px rgba(99,102,241,0.04);
    transition: text-shadow 0.35s ease;
    line-height: 1.1;
}
.price-card:hover .price-amount {
    text-shadow:
        0 2px 2px rgba(0,0,0,0.08),
        0 4px 8px rgba(99,102,241,0.12),
        0 8px 24px rgba(99,102,241,0.06);
}
.price-amount span { font-size: 0.95rem; font-weight: 400; color: var(--text-dim); }
.price-desc {
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.price-card:hover .price-desc { border-color: rgba(99,102,241,0.15); }
.price-features { list-style: none; margin-bottom: 28px; flex: 1; }
.price-features li {
    font-family: 'Poppins', sans-serif;
    padding: 7px 0; font-size: 0.88rem; color: var(--text);
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}
.price-features li:last-child { border-bottom: none; }
.price-features li:hover {
    transform: translateX(4px);
    color: var(--primary-dark);
}
.price-features li.disabled { color: var(--text-dim); }
.price-card .btn { margin-top: auto; font-family: 'Poppins', sans-serif; }

/* Tier accent colors + icon backgrounds */
.price-card.tier-free::before { background: linear-gradient(90deg, #9ca3af, #d1d5db); }
.price-card.tier-free:hover { box-shadow: 0 16px 48px rgba(156,163,175,0.18); }
.price-card.tier-free .price-tier { color: #6b7280; }
.price-card.tier-free .price-icon { background: rgba(156,163,175,0.08); color: #6b7280; }
.price-card.tier-free .price-amount { font-size: 2.8rem; color: #06d6a0; }
.price-card.tier-free .btn-primary { background: linear-gradient(135deg, #6b7280, #9ca3af); box-shadow: 0 4px 16px rgba(107,114,128,0.2); }

.price-card.tier-lite::before { background: linear-gradient(90deg, #06d6a0, #34d399); }
.price-card.tier-lite:hover { box-shadow: 0 16px 48px rgba(6,214,160,0.18); }
.price-card.tier-lite .price-tier { color: #059669; }
.price-card.tier-lite .price-icon { background: rgba(6,214,160,0.08); color: #059669; }
.price-card.tier-lite .btn-primary { background: linear-gradient(135deg, #06d6a0, #04b88a); box-shadow: 0 4px 16px rgba(6,214,160,0.3); }

.price-card.tier-starter::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.price-card.tier-starter:hover { box-shadow: 0 16px 48px rgba(59,130,246,0.18); }
.price-card.tier-starter .price-tier { color: #2563eb; }
.price-card.tier-starter .price-icon { background: rgba(59,130,246,0.08); color: #2563eb; }
.price-card.tier-starter .btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }

.price-card.tier-pro::before { background: linear-gradient(90deg, #6366f1, #818cf8, #ec4899); background-size: 200% 100%; animation: proStripe 3s ease infinite; }
@keyframes proStripe { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.price-card.tier-pro .price-tier { color: #6366f1; }
.price-card.tier-pro .price-icon { background: rgba(99,102,241,0.08); color: #6366f1; }
.price-card.tier-pro .btn-primary { box-shadow: 0 4px 16px rgba(99,102,241,0.3); }

.price-card.tier-ultra::before { background: linear-gradient(90deg, #f43f5e, #f59e0b, #f43f5e); background-size: 200% 100%; animation: ultraStripe 3s ease infinite; }
@keyframes ultraStripe { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.price-card.tier-ultra { background: linear-gradient(135deg, #fffbf5, #fff5f7, #fdf2f8); }
.price-card.tier-ultra:hover { box-shadow: 0 16px 48px rgba(244,63,94,0.18); }
.price-card.tier-ultra .price-tier { color: #e11d48; }
.price-card.tier-ultra .price-icon { background: linear-gradient(135deg, rgba(244,63,94,0.08), rgba(245,158,11,0.06)); color: #e11d48; }
.price-card.tier-ultra .btn-primary { background: linear-gradient(135deg, #f43f5e, #f59e0b); box-shadow: 0 4px 16px rgba(244,63,94,0.3); }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-box {
    background: linear-gradient(135deg, #f0edff 0%, #fdf2f8 50%, #f0fdf9 100%);
    border: 1px solid rgba(99,102,241,0.12); border-radius: var(--radius-lg);
    padding: 80px 40px; text-align: center; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.05), transparent 50%); pointer-events: none;
}
.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700;
    margin-bottom: 16px; letter-spacing: -0.02em; color: var(--text);
    text-shadow:
        0 1px 0 rgba(0,0,0,0.05),
        0 2px 4px rgba(99,102,241,0.08),
        0 6px 16px rgba(99,102,241,0.05);
}
.cta-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.01em; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
    color: var(--text-muted); font-size: 0.85rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 1px 3px rgba(99,102,241,0.12);
    transform: translateY(-1px);
}
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ===== STUDIO PAGE ===== */
.studio { padding: 90px 0 40px; min-height: 100vh; background: var(--bg-dark); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel-header h2 {
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(99,102,241,0.05);
}

.token-info { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.status-dot.connected { background: var(--accent); }

/* Inputs */
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.input-group textarea, .input-group input, .input-group select {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; font-family: inherit; font-size: 0.95rem; color: var(--text);
    transition: var(--transition); resize: vertical;
}
.input-group textarea:focus, .input-group input:focus, .input-group select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
    background: #fff;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-count { font-size: 0.75rem; color: var(--text-dim); text-align: right; }

/* Mode Toggle */
.mode-toggle {
    display: flex; gap: 0; margin-bottom: 20px;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 4px;
}
.mode-btn {
    flex: 1; padding: 10px 16px; border: none; background: transparent;
    color: var(--text-muted); font-family: inherit; font-size: 0.85rem; font-weight: 600;
    border-radius: 9px; cursor: pointer; transition: var(--transition);
}
.mode-btn.active {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}
.mode-btn:hover:not(.active) { color: var(--text); background: rgba(99,102,241,0.06); }

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border); border-radius: 12px; padding: 24px;
    text-align: center; cursor: pointer; transition: var(--transition);
    position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center;
    background: var(--surface);
}
.image-upload-area:hover { border-color: var(--primary); background: rgba(99,102,241,0.03); }
.image-upload-area.dragover { border-color: var(--accent); background: rgba(6,214,160,0.04); }
.upload-placeholder .upload-icon { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.5; }
.upload-placeholder p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.upload-hint { color: var(--text-dim); font-size: 0.75rem; }
.upload-preview { position: relative; width: 100%; text-align: center; }
.upload-preview img { max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: contain; }
.remove-image-btn {
    position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%;
    background: #f43f5e; color: #fff; border: 2px solid #fff; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
    box-shadow: 0 2px 8px rgba(244,63,94,0.3);
}
.security-note {
    display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-dim);
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* Video Container */
.video-container {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    min-height: 320px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.video-placeholder { text-align: center; padding: 40px; }
.placeholder-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.video-placeholder p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 4px; }
.video-placeholder span { color: var(--text-dim); font-size: 0.8rem; }
.video-player { width: 100%; border-radius: var(--radius); }
.video-loading { text-align: center; padding: 40px; }
.video-loading p { color: var(--text); font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.loading-sub { color: var(--text-dim); font-size: 0.8rem; }

.spinner-lg {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar {
    width: 100%; height: 4px; background: var(--border); border-radius: 2px;
    margin: 16px 0; overflow: hidden;
}
.progress-fill {
    height: 100%; background: var(--gradient); border-radius: 2px;
    width: 0%; transition: width 1s ease;
}

/* History */
.history-section { margin-top: 24px; }
.history-section h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.empty-history { color: var(--text-dim); font-size: 0.85rem; }
.history-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.history-item:hover { border-color: var(--primary); background: rgba(99,102,241,0.03); }
.history-item .h-prompt { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .h-time { color: var(--text-dim); font-size: 0.75rem; }
.history-item .h-status { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 50px; }
.h-status.done { background: rgba(6,214,160,0.1); color: var(--accent); }
.h-status.fail { background: rgba(239,68,68,0.1); color: var(--danger); }
.h-status.processing { background: rgba(245,158,11,0.1); color: var(--warning); animation: pulse-status 1.5s infinite; }
@keyframes pulse-status { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.history-item.clickable { cursor: pointer; transition: border-color 0.2s; }
.history-item.clickable:hover { border-color: var(--primary); }

/* ===== INTRO ANIMATION ===== */
.intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 10000;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    overflow: hidden;
}
.intro-overlay.punch-out {
    animation: punchOut 0.8s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}
.intro-letters {
    display: flex; align-items: center; justify-content: center;
    gap: 2px; flex-wrap: nowrap;
}
.punch-letter {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: clamp(3rem, 9vw, 7rem);
    color: var(--text);
    display: inline-block;
    opacity: 0;
    animation: letterPunch 0.4s cubic-bezier(0.17, 0.67, 0.2, 1.2) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.08s);
}
.punch-letter:nth-child(odd) {
    animation-name: letterPunchDown;
}
.punch-letter:nth-child(even) {
    animation-name: letterPunchUp;
}
.punch-space {
    width: 20px; animation: none; opacity: 0;
}
.intro-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transform: translateY(15px);
    animation: introFadeUp 0.5s ease-out 1.2s forwards;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.intro-impact {
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: rgba(99,102,241,0.08);
    transform: translate(-50%, -50%);
    animation: impactRing 0.6s ease-out 0.9s forwards;
    pointer-events: none;
}
.intro-flash {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary); opacity: 0; pointer-events: none;
    animation: introFlash 0.2s ease-out 0.15s forwards;
}
.intro-overlay.shake {
    animation: screenShake 0.15s ease-out;
}

@keyframes letterPunchDown {
    0% { opacity: 0; transform: translateY(-120px) scale(2.5) rotate(-15deg); }
    60% { opacity: 1; transform: translateY(8px) scale(0.9) rotate(2deg); }
    80% { transform: translateY(-3px) scale(1.05) rotate(-1deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes letterPunchUp {
    0% { opacity: 0; transform: translateY(120px) scale(2.5) rotate(15deg); }
    60% { opacity: 1; transform: translateY(-8px) scale(0.9) rotate(-2deg); }
    80% { transform: translateY(3px) scale(1.05) rotate(1deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes introFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes introFlash {
    0% { opacity: 0; }
    30% { opacity: 0.08; }
    100% { opacity: 0; }
}
@keyframes impactRing {
    0% { width: 0; height: 0; opacity: 0.4; }
    100% { width: 800px; height: 800px; opacity: 0; }
}
@keyframes screenShake {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-4px, 3px); }
    40% { transform: translate(4px, -3px); }
    60% { transform: translate(-3px, -2px); }
    80% { transform: translate(3px, 2px); }
    100% { transform: translate(0, 0); }
}
@keyframes punchOut {
    0% { clip-path: circle(150% at 50% 50%); opacity: 1; }
    100% { clip-path: circle(0% at 50% 50%); opacity: 0; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.from-left {
    transform: translateX(-50px);
}
.reveal.from-right {
    transform: translateX(50px);
}
.reveal.scale-in {
    transform: scale(0.85);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FLOATING ORBS ===== */
.hero-orbs {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.18;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
    width: 450px; height: 450px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    top: -120px; left: 10%; animation-delay: 0s;
}
.orb-2 {
    width: 350px; height: 350px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    top: 40px; right: 5%; animation-delay: -3s; animation-duration: 10s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, #06d6a0, #06b6d4);
    bottom: -60px; left: 30%; animation-delay: -5s; animation-duration: 12s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.08); }
    66% { transform: translate(-25px, 20px) scale(0.92); }
}

/* ===== ANIMATED GRADIENT TEXT ===== */
.gradient-text-animated {
    background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b, #06d6a0, #6366f1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== BADGE PULSE ===== */
.badge {
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); }
    50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}

/* ===== CARD SHIMMER EFFECT ===== */
.feature-card, .step-card, .price-card, .demo-card {
    position: relative; overflow: hidden;
}
.price-card.popular, .price-card.tier-ultra {
    overflow: visible;
}
.feature-card::after, .step-card::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(99,102,241,0.03) 50%, transparent 60%);
    transform: rotate(0deg); transition: transform 0.7s ease;
    pointer-events: none;
}
.feature-card:hover::after, .step-card:hover::after {
    transform: rotate(180deg);
}

/* ===== GLOWING BORDERS ON HOVER ===== */
.feature-card:hover {
    box-shadow: 0 0 0 1px rgba(99,102,241,0.12), var(--shadow-lg);
}
.step-card:hover {
    box-shadow: 0 0 0 1px rgba(99,102,241,0.12), var(--shadow-xl);
}
.price-card.popular {
    animation: popularGlow 4s ease-in-out infinite;
}
@keyframes popularGlow {
    0%, 100% { box-shadow: 0 8px 40px rgba(99,102,241,0.10); }
    50% { box-shadow: 0 16px 56px rgba(99,102,241,0.20), 0 0 80px rgba(236,72,153,0.06); }
}
.price-card.tier-ultra {
    animation: ultraGlow 4s ease-in-out infinite;
}
@keyframes ultraGlow {
    0%, 100% { box-shadow: 0 8px 40px rgba(244,63,94,0.08); }
    50% { box-shadow: 0 16px 56px rgba(244,63,94,0.18), 0 0 80px rgba(245,158,11,0.06); }
}

/* ===== BUTTON RIPPLE ===== */
.btn-primary {
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}
.btn-primary:active::after {
    width: 400px; height: 400px; opacity: 1;
    transition: 0s;
}

/* ===== HERO TITLE REVEAL ANIMATION ===== */
.hero-reveal {
    overflow: hidden;
}
.hero-line-1, .hero-line-2 {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroLineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line-1 {
    animation-delay: 0.1s;
}
.hero-line-2 {
    animation-delay: 0.45s;
}
@keyframes heroLineReveal {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero .badge {
    animation: heroFadeUp 0.5s ease-out 0s both, badgePulse 3s ease-in-out 1s infinite;
}
.hero-sub {
    animation: heroFadeUp 0.8s ease-out 1.7s both;
}
.hero-actions {
    animation: heroFadeUp 0.8s ease-out 2.0s both;
}
.hero-stats {
    animation: heroFadeUp 0.8s ease-out 2.3s both;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FLOATING CTA ===== */
.cta-box {
    animation: ctaFloat 6s ease-in-out infinite;
}
@keyframes ctaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== STAT NUMBER ===== */
.stat-num {
    filter: drop-shadow(0 2px 6px rgba(99,102,241,0.2)) drop-shadow(0 6px 16px rgba(99,102,241,0.1));
    transition: filter 0.4s ease;
}
.stat:hover .stat-num {
    filter: drop-shadow(0 3px 8px rgba(99,102,241,0.3)) drop-shadow(0 8px 24px rgba(236,72,153,0.12));
}

/* ===== DEMO CARD PLAY HOVER ===== */
.demo-play-icon {
    transition: all 0.3s ease;
}

/* ===== NAVBAR SLIDE DOWN ===== */
.navbar {
    animation: navSlideDown 0.5s ease-out 0s both;
}
@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== SOCIAL PROOF BAR ===== */
.social-proof-bar {
    background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 18px 0; position: relative; z-index: 2;
}
.social-proof-inner {
    display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.proof-item {
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
}
.proof-item strong { color: var(--text); text-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.proof-icon { font-size: 1.1rem; }
.proof-divider {
    width: 1px; height: 20px; background: var(--border);
}

/* ===== HERO PREVIEW MOCKUP ===== */
.hero-preview {
    max-width: 600px; margin: 0 auto 50px;
}
.preview-mockup {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-xl);
}
.preview-bar {
    background: var(--surface); padding: 10px 16px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border);
}
.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #06d6a0; }
.preview-title { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.preview-content { padding: 16px; }
.preview-prompt-line {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-label { color: var(--primary); font-weight: 700; margin-right: 6px; }
.preview-typed { color: var(--text); }
.typing-cursor.small { width: 2px; height: 0.9em; }
.preview-video-area {
    height: 160px; border-radius: var(--radius-sm); overflow: hidden;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.preview-hero-video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: var(--radius-sm);
    transition: opacity 0.3s ease;
}
.preview-gradient-anim {
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1), rgba(6,214,160,0.08));
    background-size: 400% 400%;
    animation: previewShift 6s ease infinite;
}
@keyframes previewShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.preview-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0edff, #fdf2f8, #f0fdf9);
    border-radius: var(--radius-sm); overflow: hidden;
}
.preview-placeholder-shimmer {
    position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.06) 25%, rgba(236,72,153,0.08) 50%, rgba(6,214,160,0.06) 75%, transparent 100%);
    animation: placeholderShimmer 3s ease-in-out infinite;
}
@keyframes placeholderShimmer {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(25%); }
}
.preview-placeholder-text {
    position: relative; z-index: 1;
    color: var(--text-dim); font-size: 0.85rem; font-style: italic;
    animation: placeholderPulse 2s ease-in-out infinite;
}
@keyframes placeholderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.preview-play {
    position: relative; z-index: 1; font-size: 2rem; color: rgba(99,102,241,0.5);
    width: 50px; height: 50px; border: 2px solid rgba(99,102,241,0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    animation: playPulse 2s ease infinite;
}
@keyframes playPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

/* ===== COMPARISON SECTION ===== */
.comparison-grid {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    max-width: 800px; margin: 0 auto; flex-wrap: wrap;
}
.compare-card {
    flex: 1; min-width: 260px; padding: 36px 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.compare-old {
    background: var(--surface); opacity: 0.7;
}
.compare-new {
    background: #fff; border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}
.compare-header {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px;
}
.compare-new .compare-header { color: var(--primary); }
.compare-price {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 20px;
}
.compare-old .compare-price { color: var(--text-dim); text-decoration: line-through; }
.compare-new .compare-price { color: var(--accent); }
.compare-price span { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-dim); }
.compare-list { list-style: none; }
.compare-list li { padding: 6px 0; font-size: 0.9rem; color: var(--text-muted); }
.compare-old .compare-list li { color: var(--text-dim); }
.compare-new .compare-list li { color: var(--text); }
.compare-vs {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
    color: var(--primary); padding: 0 8px;
    animation: vsPulse 2s ease infinite;
}
@keyframes vsPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ===== PRICE PER VIDEO ===== */
.price-per-video {
    background: rgba(6,214,160,0.08); border: 1px solid rgba(6,214,160,0.15);
    border-radius: 50px; padding: 6px 16px; font-size: 0.85rem;
    color: var(--accent); display: inline-block; margin-bottom: 24px;
}
.price-per-video strong { color: var(--text); }

/* ===== TRUST BADGES ===== */
.trust-badges {
    display: flex; justify-content: center; gap: 16px; margin-top: 48px; flex-wrap: wrap;
}
.trust-item {
    font-size: 0.85rem; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
}
.trust-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--primary);
    text-shadow: 0 1px 3px rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.15);
}

/* ===== TOP-UP CARDS ===== */
.topup-grid {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.topup-card {
    background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
    padding: 22px 32px; text-decoration: none; text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.topup-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #06d6a0, #06b6d4);
    opacity: 0; transition: opacity 0.3s ease;
}
.topup-card:hover {
    border-color: var(--accent); transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(6,214,160,0.15);
}
.topup-card:hover::before { opacity: 1; }
.topup-card.topup-popular {
    border-color: rgba(6,214,160,0.3);
    box-shadow: 0 4px 20px rgba(6,214,160,0.08);
}
.topup-card.topup-popular::before { opacity: 1; }
.topup-amount {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 2px 6px rgba(6,214,160,0.08);
    line-height: 1.1;
}
.topup-label {
    color: var(--text-dim); font-size: 0.78rem; margin-bottom: 6px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.topup-price {
    color: var(--accent); font-weight: 800; font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(6,214,160,0.1);
}

/* ===== PULSE BUTTON ===== */
.pulse-btn {
    animation: btnPulse 3s ease infinite;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99,102,241,0.25); }
    50% { box-shadow: 0 6px 40px rgba(99,102,241,0.4), 0 0 60px rgba(236,72,153,0.12); }
}

/* ===== CTA ENHANCED ===== */
.cta-emoji { font-size: 3.5rem; margin-bottom: 16px; }
.cta-trust { color: var(--text-dim); font-size: 0.85rem; margin-top: 20px; font-weight: 500; }

/* ===== STAT SUFFIX ===== */
.stat-num-suffix {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== DEMO GRADIENT VARIATIONS ===== */
.demo-gradient-1 { background: linear-gradient(135deg, rgba(255,140,50,0.08), rgba(255,80,80,0.05)) !important; }
.demo-gradient-2 { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.05)) !important; }
.demo-gradient-3 { background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(168,85,247,0.05)) !important; }
.demo-gradient-4 { background: linear-gradient(135deg, rgba(6,214,160,0.08), rgba(6,182,212,0.05)) !important; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
    background: var(--gradient); width: 0%;
    transition: width 0.1s linear;
}

/* ===== STAR PARTICLES ===== */
.particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.04), rgba(236,72,153,0.02) 40%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ===== 3D TILT CARDS ===== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.tilt-card > * {
    transition: transform 0.2s ease;
}

/* ===== ANIMATED GRADIENT BORDERS ===== */
.price-card.popular {
    position: relative;
    background: #fff;
}
.price-card.popular::after {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #ec4899, #06d6a0, #6366f1);
    background-size: 400% 400%;
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}
.price-card.tier-ultra {
    position: relative;
}
.price-card.tier-ultra::after {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #f43f5e, #f59e0b, #f43f5e, #f59e0b);
    background-size: 400% 400%;
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FEATURE ICON HOVER ANIMATION ===== */
.feature-card:hover .feature-icon {
    animation: iconBounce 0.5s ease;
    transform: scale(1.1);
}
@keyframes iconBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-5deg); }
    50% { transform: scale(0.95) rotate(3deg); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

/* ===== STEP NUMBER PULSE ===== */
.step-card:hover .step-num {
    animation: stepPulse 0.6s ease;
    box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
@keyframes stepPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ===== DEMO VIDEO CARDS ===== */
.demo-card .demo-video {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}
@media (hover: hover) {
    .demo-card .demo-video {
        filter: brightness(0.85);
    }
    .demo-card:hover .demo-video {
        transform: scale(1.06);
        filter: brightness(1);
    }
}
@media (hover: none) {
    .demo-card .demo-video {
        filter: brightness(1);
    }
}
.demo-card .demo-overlay {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-card:hover .demo-overlay {
    opacity: 1;
    transform: translateY(0);
}
.demo-sound-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.demo-card:hover .demo-sound-badge {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary);
}
.demo-card.demo-active .demo-sound-badge {
    color: #06d6a0;
}
.demo-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--coral));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.demo-card:hover::after {
    opacity: 1;
}

/* ===== SECTION WAVE DIVIDERS ===== */
.wave-divider {
    width: 100%; height: 60px; overflow: hidden;
    position: relative; margin-top: -1px;
}
.wave-divider svg {
    position: absolute; bottom: 0; width: 100%; height: 100%;
}
.wave-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -1px; }

/* ===== TYPING CURSOR ===== */
.typing-cursor {
    display: inline-block; width: 3px; height: 1.2em;
    background: var(--primary); margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== PRICE AMOUNT HOVER ===== */
.price-amount {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.35s ease;
}
.price-card:hover .price-amount {
    transform: scale(1.08);
}

/* ===== LOGO HOVER SPIN ===== */
.logo:hover .logo-icon {
    animation: logoSpin 0.6s ease;
    display: inline-block;
}
@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}
.logo-icon { display: inline-block; }

/* ===== FOOTER ENHANCED ===== */
.footer {
    position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

/* ===== VIDEO ACTIONS SLIDE ===== */
.video-actions-show {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
.section { position: relative; }
.section-dark::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-dark::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cursor-glow { display: none; }
    .nav-links { display: none; }
    .hero { padding: 140px 0 60px; }
    .hero-stats { gap: 32px; }
    .steps-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid, .pricing-grid-4, .pricing-grid-5 { grid-template-columns: 1fr; }
    .studio-grid { grid-template-columns: 1fr; }
    .input-row { grid-template-columns: 1fr; }
    .social-proof-inner { gap: 16px; }
    .proof-divider { display: none; }
    .comparison-grid { flex-direction: column; }
    .compare-vs { transform: rotate(90deg); }
    .trust-badges { gap: 12px; }
    .hero-preview { margin-bottom: 30px; }
    .faq-window { width: calc(100vw - 32px) !important; right: 16px !important; bottom: 80px !important; max-height: 70vh !important; }
}

/* ===== FAQ CHAT WIDGET ===== */
.faq-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9998; }

.faq-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: var(--gradient); color: #fff; font-size: 1.5rem;
    cursor: pointer; box-shadow: 0 4px 24px rgba(99,102,241,0.3);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; align-items: center; justify-content: center;
}
.faq-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(99,102,241,0.4); }
.faq-toggle-icon { line-height: 1; }

.faq-window {
    position: absolute; bottom: 72px; right: 0;
    width: 360px; max-height: 480px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column;
    animation: faqSlideUp 0.25s ease;
}

@keyframes faqSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0edff, #fdf2f8);
    border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 1rem; color: var(--text);
}
.faq-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.faq-close:hover { color: var(--text); }

.faq-body { padding: 16px 20px; overflow-y: auto; flex: 1; }

.faq-welcome {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px;
}

.faq-questions { display: flex; flex-direction: column; gap: 8px; }

.faq-q {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; text-align: left;
    color: var(--text); font-size: 0.88rem; font-family: inherit;
    cursor: pointer; transition: all 0.25s ease;
}
.faq-q:hover { border-color: var(--primary); background: rgba(99,102,241,0.04); transform: translateX(4px); }

.faq-answer {
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(236,72,153,0.03));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.faq-answer p { color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.faq-answer strong { color: var(--primary); }

.faq-back {
    background: none; border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 16px; color: var(--text-muted); font-size: 0.85rem;
    font-family: inherit; cursor: pointer; transition: all 0.25s ease;
    width: 100%;
}
.faq-back:hover { border-color: var(--primary); color: var(--primary); }

/* ===== PROFESSIONAL DYNAMIC TEXT SYSTEM ===== */

/* Space Grotesk headings: 3D emboss + depth */
.logo,
.section-title,
.hero h1,
.cta-box h2,
.compare-price,
.compare-vs,
.price-amount,
.stat-num,
.stat-num-suffix {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth letter reveal on all headings */
.section-title,
.step-card h3,
.feature-card h3,
.faq-header span {
    background-size: 200% auto;
    transition: text-shadow 0.4s ease, color 0.4s ease, background-position 0.4s ease;
}

/* Labels and small caps get tracking */
.badge,
.price-tier,
.stat-label,
.demo-style,
.popular-badge,
.premium-badge,
.h-status,
.proof-icon {
    letter-spacing: 0.06em;
    -webkit-font-smoothing: antialiased;
}

/* Body text breathe on hover parent */
.step-card p,
.feature-card p,
.price-desc,
.hero-sub,
.cta-box p,
.faq-welcome,
.faq-answer p,
.security-note,
.footer-brand p {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* Interactive text micro-lift on links */
.footer-links a,
.nav-links a,
.faq-q {
    display: inline-block;
}

/* FAQ question text hover */
.faq-q {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
}
.faq-q:hover {
    text-shadow: 0 1px 3px rgba(99,102,241,0.1);
    color: var(--primary-dark);
}

/* FAQ header text */
.faq-header span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(99,102,241,0.06);
}

/* Credit display text */
.credit-display {
    text-shadow: 0 1px 2px rgba(99,102,241,0.08);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Input labels refined */
.input-group label {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}
.input-group:focus-within label {
    color: var(--primary);
}

/* Mode toggle text */
.mode-btn {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
    letter-spacing: 0.02em;
}
.mode-btn.active {
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Popular/Premium badge text depth */
.popular-badge, .premium-badge {
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Video loading text */
.video-loading p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* History items */
.history-item .h-prompt {
    text-shadow: 0 1px 1px rgba(0,0,0,0.02);
    transition: color 0.2s ease;
}
.history-item:hover .h-prompt {
    color: var(--primary-dark);
}

/* Compare card text shadows */
.compare-header {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
}
.compare-price {
    text-shadow:
        0 1px 0 rgba(0,0,0,0.05),
        0 2px 4px rgba(99,102,241,0.06),
        0 4px 12px rgba(99,102,241,0.04);
}
.compare-vs {
    text-shadow:
        0 1px 0 rgba(0,0,0,0.06),
        0 3px 8px rgba(99,102,241,0.12);
}

/* Smooth text color transitions everywhere */
a, button, .btn, .faq-q, .trust-item, .price-features li {
    transition-property: color, text-shadow, transform, background, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text lift on card hover (subtle tracking increase) */
.step-card:hover p,
.feature-card:hover p {
    letter-spacing: 0.005em;
}

/* Price card hover — features text activates */
.price-card:hover .price-features li {
    color: var(--text);
}
.price-card:hover .price-desc {
    color: var(--text);
}

/* Intro punch letters — 3D shadow */
.punch-letter {
    text-shadow:
        0 2px 0 rgba(0,0,0,0.06),
        0 4px 8px rgba(99,102,241,0.08),
        0 8px 20px rgba(99,102,241,0.05);
}
