/*!
 * Distill Works - Demos Page Styles
 * Interactive demo components and demo-specific styling
 * Inherits from main stylesheet color system
 * Version: Phase 1-4 Optimized
 */

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
    /* Demo-specific variables only */
    --demo-primary: var(--color-primary);
    --demo-secondary: var(--indigo-500);
    --demo-success: var(--color-success);
    --demo-warning: var(--color-warning);
    --demo-danger: var(--color-danger);
    --demo-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --demo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --demo-dark: var(--color-text-primary);
    --demo-light: var(--color-bg-secondary);
    --demo-border: var(--color-border-primary);
    --demo-primary-dark: var(--color-primary-dark);
    --demo-primary-light: var(--color-accent-bg-light);
    --pill-active-bg: rgba(59, 130, 246, 0.25);
    --demo-overlay-light: rgba(255, 255, 255, 0.15);
    --demo-overlay-medium: var(--card-overlay-medium);
    --demo-overlay-heavy: rgba(51, 65, 85, 0.25);
    --demo-overlay-strong: rgba(51, 65, 85, 0.35);
    --demo-overlay-bg: rgba(30, 41, 59, 0.95);
    --demo-border-light: rgba(51, 65, 85, 0.3);
    --demo-border-medium: rgba(51, 65, 85, 0.4);
    --demo-border-strong: rgba(51, 65, 85, 0.5);
    --demo-gradient-light: var(--card-overlay-light);
    --demo-shimmer: var(--shimmer-color);
}

/* Hero Section - Modern Design */
.demos-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark theme styles now in :root - no longer needed */

/* Animated Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 30%, var(--slate-600) 60%, var(--slate-800) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

[data-theme="light"] .hero-background {
    background: linear-gradient(135deg, var(--indigo-500) 0%, var(--purple-600) 50%, var(--indigo-500) 100%);
    background-size: 400% 400%;
}

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

/* Mesh Pattern Overlay */
.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--demo-overlay-light) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--demo-gradient-light) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    background: var(--demo-overlay-light);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.float-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation: float1 6s ease-in-out infinite;
}

.float-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 25%;
    animation: float2 8s ease-in-out infinite;
}

.float-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 5%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(15px) translateX(-15px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(20px); }
}

/* Two-Column Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column - Content */
.hero-content {
    color: white;
    text-align: left;
    display: block !important;
    grid-template-columns: none !important;
}

.hero-content {
    color: var(--slate-50);
}

/* Eyebrow Text */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.eyebrow-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.eyebrow-badge {
    background: var(--demo-overlay-heavy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid var(--demo-border-medium);
}

/* Hero Title */
.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: block !important;
    width: 100% !important;
    writing-mode: horizontal-tb !important;
}

.highlight-text {
    background: linear-gradient(135deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 600px;
    margin-bottom: 1.75rem;
    display: block !important;
    clear: both;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.hero-description strong {
    color: var(--yellow-400);
    font-weight: 600;
}

/* Feature Points */
.hero-features {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: center;
}


.feature-point {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.feature-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

/* Progressive Disclosure Hint */
.hero-hint {
    margin-top: 1.25rem;
    opacity: 0.8;
}

.hint-text {
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Enhanced Demo Pills */
.demo-nav-pills {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.pill {
    background: var(--demo-overlay-medium);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--demo-border-light);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--demo-shimmer), transparent);
    transition: left 0.8s;
}

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

.pill:hover,
.pill.active {
    background: var(--pill-active-bg);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--demo-border-strong);
}

.pill.active {
    background: var(--demo-overlay-strong);
    border-color: var(--yellow-400);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.pill-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.pill-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.pill-title {
    font-weight: 600;
    font-size: 1rem;
}

.pill-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Right Column - Visual Elements */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.demo-preview-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 0 auto;
}

.demo-preview {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(30px) translateY(20px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.demo-preview.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    pointer-events: all;
    z-index: 10;
}

/* Fade out effect for exiting preview */
.demo-preview:not(.active) {
    opacity: 0;
    transform: translateX(-30px) translateY(-20px) scale(0.95);
    pointer-events: none;
    z-index: 1;
}

/* Mock Window Design */
.preview-window {
    background: var(--demo-overlay-bg);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid var(--demo-border-medium);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.preview-window {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(100, 116, 139, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.window-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red-500);
}

.control:nth-child(2) { background: var(--yellow-400); }
.control:nth-child(3) { background: var(--green-400); }

.window-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-content {
    padding: 1.5rem;
}

/* Lead Qualifier Preview */
.mock-lead {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.lead-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}

.lead-info {
    flex: 1;
}

.lead-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.lead-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lead-score {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-600);
}

.lead-status {
    background: var(--green-100);
    color: var(--green-800);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
    border-radius: 3px;
    animation: progressFill 2s ease-in-out infinite alternate;
}

@keyframes progressFill {
    0% { width: 65%; }
    100% { width: 85%; }
}

/* Data Scraper Preview */
.scraper-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.item-icon {
    font-size: 1.5rem;
}

.item-data {
    flex: 1;
}

.data-row {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    line-height: 1.2;
}

.data-row.short {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.item-price {
    font-weight: 700;
    color: var(--emerald-600);
    font-size: 1.1rem;
}

.scraper-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blog Generator Preview */
.blog-editor {
    background: transparent;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.editor-line {
    margin-bottom: 0.5rem;
}

.editor-line.short {
    width: 70%;
}

.typing-cursor {
    width: 2px;
    height: 1rem;
    background: var(--accent-primary);
    animation: blink 1s infinite;
    display: inline-block;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes blinkCaret {
    0%, 50% { border-color: var(--accent-primary); }
    51%, 100% { border-color: transparent; }
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-icon {
    font-size: 1rem;
}

/* Demo Navigation Section */
.demo-navigation {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.demo-navigation h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.demo-nav-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.demo-navigation .demo-nav-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-navigation .pill {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: none;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.demo-navigation .pill:hover,
.demo-navigation .pill.active {
    background: var(--demo-primary);
    color: white;
    border-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.demo-navigation .pill-desc {
    opacity: 0.9;
}

.demo-navigation .pill.active .pill-desc,
.demo-navigation .pill:hover .pill-desc {
    opacity: 1;
}

/* Possibilities Section */
.possibilities-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Possibilities Form Section */
.possibilities-form-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.possibilities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.possibilities-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.possibilities-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.possibilities-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.possibilities-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.possibilities-form .form-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-primary);
}

.possibilities-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.possibilities-form .form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.possibilities-form .form-group {
    margin-bottom: 1rem;
}

.possibilities-form input,
.possibilities-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.possibilities-form input:focus,
.possibilities-form textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.possibilities-form .char-counter {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.25rem;
}

.possibilities-form .submit-btn {
    width: 100%;
    background: var(--blue-500);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.possibilities-form .submit-btn:hover {
    background: var(--demo-primary-dark);
    transform: translateY(-1px);
}

.possibilities-form .trust-indicators {
    margin-top: 1rem;
    text-align: center;
}

.possibilities-form .trust-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design for Possibilities Section */
@media (max-width: 968px) {
    .possibilities-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .possibilities-text {
        order: 1;
    }
    
    .possibilities-form {
        order: 2;
    }
}

@media (max-width: 768px) {
    .demo-navigation {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .demo-navigation h2 {
        font-size: 1.75rem;
    }
    
    .demo-navigation .demo-nav-pills {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .demo-navigation .pill {
        padding: 1rem;
    }
    
    .possibilities-section {
        padding: 2rem 0;
    }
    
    .possibilities-text h2 {
        font-size: 1.75rem;
    }
    
    .possibilities-description {
        font-size: 1rem;
    }
    
    .possibilities-form .form-container {
        padding: 1.5rem;
    }
}

/* Demo Sections */
.demo-section {
    padding: 4rem 0;
    min-height: 70vh;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
    background: var(--bg-primary);
}

.demo-section:nth-child(even) {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-section.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.demo-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.demo-btn.primary {
    background: var(--demo-primary);
    color: white;
}

.demo-btn.primary:hover {
    background: var(--demo-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--demo-shadow);
}

.demo-btn.secondary {
    background: var(--bg-primary);
    color: var(--demo-primary);
    border: 2px solid var(--demo-primary);
}

.demo-btn.secondary:hover {
    background: var(--demo-primary);
    color: white;
    transform: translateY(-2px);
}

.business-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow);
}

.business-selector label {
    font-weight: 600;
    color: var(--text-secondary);
}

#current-business {
    font-weight: 600;
    color: var(--demo-dark);
}

.shuffle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--demo-primary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shuffle-btn:hover {
    background: var(--demo-light);
    transform: rotate(180deg);
}

/* Demo Dashboard */
.demo-dashboard {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--demo-shadow-lg);
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

.dashboard-loading, .workspace-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--demo-border);
    border-top: 4px solid var(--demo-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Data Scraper Scenarios */
.scraper-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.scenario-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--demo-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--demo-border);
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--demo-shadow-lg);
    border-color: var(--demo-primary);
}

.scenario-card h3 {
    color: var(--demo-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.scenario-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scraper-workspace {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--demo-shadow-lg);
    min-height: 500px;
    padding: 2rem;
}

/* Blog Generator Pipeline */
.blog-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.pipeline-step {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--demo-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pipeline-step:hover {
    border-color: var(--demo-primary);
    transform: translateY(-2px);
}

.pipeline-step.active {
    border-color: var(--demo-success);
    background: var(--green-50);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--demo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.pipeline-step.active .step-number {
    background: var(--demo-success);
}

.pipeline-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--demo-dark);
}

.pipeline-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.blog-workspace {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--demo-shadow-lg);
    padding: 2rem;
    text-align: center;
}

.content-preview {
    margin-top: 2rem;
    text-align: left;
    min-height: 300px;
    padding: 1rem;
    background: var(--demo-light);
    border-radius: 8px;
    border: 1px solid var(--demo-border);
}

/* CTA Section */
.demos-cta {
    background: var(--demo-dark);
    color: var(--bg-primary);
    padding: 4rem 0;
    text-align: center;
}

.demos-cta {
    background: var(--slate-800);
    color: var(--slate-50);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn.primary {
    background: var(--demo-primary);
    color: white;
}

.btn.primary:hover {
    background: var(--demo-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--demo-shadow);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background: var(--bg-primary);
    color: var(--demo-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: var(--slate-200);
    border: 2px solid var(--slate-500);
}

.btn.secondary:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section specific button styling */
.demos-cta .btn.secondary {
    background: transparent;
    color: var(--slate-200);
    border: 2px solid var(--slate-200);
}

.demos-cta .btn.secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Navigation Active State */
.navbar .nav-links a.active {
    color: var(--demo-primary);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--demo-dark);
    color: var(--bg-primary);
    padding: 2rem 0;
}

footer {
    background: var(--slate-900);
    color: var(--slate-400);
    border-top: 1px solid var(--slate-800);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--bg-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a {
    color: var(--slate-200);
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 3rem;
    }
    
    .hero-visual {
        order: 2;
        height: 350px;
        margin-top: 2rem;
    }
    
    .demos-hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: none;
    }
    
    .hero-features {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-point {
        flex: 1;
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .demo-nav-pills {
        gap: 0.75rem;
    }
    
    .pill {
        padding: 0.75rem 1rem;
    }
    
    .pill-title {
        font-size: 0.9rem;
    }
    
    .pill-desc {
        font-size: 0.75rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .float-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pill {
        padding: 0.5rem 0.75rem;
    }
    
    .pill-icon {
        font-size: 1.25rem;
    }
    
    .demo-header h2 {
        font-size: 2rem;
    }
    
    .demo-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .business-selector {
        justify-content: center;
    }
    
    .scraper-scenarios {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-pipeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    footer .container {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .demos-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .demo-section {
        padding: 2rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Admin Dashboard Email Flow Styles */
.email-status-link {
    color: var(--blue-500);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dotted var(--blue-500);
    transition: all 0.2s ease;
}

.email-status-link:hover {
    color: var(--demo-primary);
    border-bottom-color: var(--demo-primary);
    background: var(--demo-primary-light);
    border-radius: 3px;
    padding: 2px 4px;
}

/* ==========================================
   BLOG GENERATOR ENHANCEMENTS
   ========================================== */

/* Title Variations Section */
.title-variations {
    background: var(--bg-secondary);
    border: 2px solid var(--demo-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideIn 0.5s ease;
}

.title-variations h5 {
    color: var(--demo-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.title-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.title-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.title-option:hover {
    border-color: var(--demo-primary);
    background: var(--demo-primary-light);
    transform: translateY(-1px);
}

.title-option.selected {
    border-color: var(--demo-primary);
    background: rgba(59, 130, 246, 0.1);
}

.title-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--demo-primary);
}

.title-option label {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

.secondary-btn {
    background: var(--bg-primary);
    border: 2px solid var(--demo-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-btn:hover {
    border-color: var(--demo-primary);
    color: var(--demo-primary);
    background: var(--demo-primary-light);
}

/* SEO Score Badge */
.seo-score-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.seo-score-badge.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.seo-score-badge.good {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-600);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.seo-score-badge.fair {
    background: rgba(245, 158, 11, 0.2);
    color: var(--yellow-600);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.seo-score-badge.poor {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red-600);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* SERP Preview Section */
.serp-preview-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--demo-border);
}

.serp-preview-section h4 {
    color: var(--demo-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.serp-preview {
    background: var(--bg-primary);
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    padding: 1rem;
    font-family: arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serp-url {
    color: var(--blue-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.serp-title {
    color: var(--blue-700);
    font-size: 1.125rem;
    font-weight: normal;
    text-decoration: underline;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.serp-description {
    color: var(--slate-600);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.serp-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.meta-chars {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.meta-chars:first-child {
    background: rgba(59, 130, 246, 0.1);
    color: var(--demo-primary);
}

.meta-chars:last-child {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
}

/* Optimal Timing Section */
.optimal-timing-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.optimal-timing-section h4 {
    color: var(--demo-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timing-recommendation-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--demo-shadow);
}

.rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rec-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.rec-info h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.rec-info p {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.rec-boost {
    background: var(--demo-success);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.timing-insights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.insight-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--demo-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Timeline Controls Enhancement */
.timeline-btn.optimal {
    background: linear-gradient(135deg, var(--demo-success) 0%, var(--emerald-600) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.timeline-btn.optimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--demo-overlay-heavy), transparent);
    transition: left 0.5s;
}

.timeline-btn.optimal:hover::before {
    left: 100%;
}

/* Schedule Confirmation Cards */
.optimal-schedule-confirmation {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow-lg);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.schedule-details-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.schedule-time {
    text-align: center;
    margin-bottom: 1rem;
}

.schedule-time h5 {
    color: var(--demo-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.schedule-time h6 {
    color: var(--text-secondary);
    margin: 0;
}

.schedule-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.platform-distribution {
    margin: 1rem 0;
    text-align: center;
}

.platform-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.platform-tag {
    background: var(--demo-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-btn.primary {
    background: var(--demo-primary);
    color: white;
}

.action-btn.primary:hover {
    background: var(--demo-primary-dark);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--demo-border);
}

.action-btn.secondary:hover {
    border-color: var(--demo-primary);
    color: var(--demo-primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .title-options {
        gap: 0.5rem;
    }
    
    .title-option {
        padding: 0.5rem;
    }
    
    .rec-header {
        flex-direction: column;
        text-align: center;
    }
    
    .timing-insights {
        justify-content: center;
    }
    
    .platform-list {
        gap: 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ========================================
   ENHANCED HERO DEMO ANIMATIONS & STYLING
   ======================================== */

/* Enhanced Lead Qualifier Styles */
.lead-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo-500) 0%, var(--purple-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.lead-avatar:hover {
    transform: scale(1.1);
}

.avatar-initial {
    animation: avatarPulse 2s ease-in-out infinite;
}

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

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-primary);
    animation: typeWriter 2s steps(20) forwards, blinkCaret 1s step-end infinite;
}

@keyframes typeWriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blinkCaret {
    0%, 50% { border-color: var(--accent-primary); }
    51%, 100% { border-color: transparent; }
}

.lead-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lead-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.lead-engagement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.engagement-label {
    color: var(--text-secondary);
}

.engagement-value {
    font-weight: 600;
    color: var(--success-color);
    animation: engagementGlow 2s ease-in-out infinite;
}

@keyframes engagementGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; text-shadow: 0 0 4px var(--success-color); }
}

.score-counter {
    font-weight: 700;
    color: var(--success-color);
    animation: scoreCount 3s ease-in-out infinite;
}

@keyframes scoreCount {
    0% { color: var(--text-secondary); transform: scale(1); }
    50% { color: var(--success-color); transform: scale(1.15); }
    100% { color: var(--success-color); transform: scale(1); }
}

.score-trend {
    font-size: 1rem;
    animation: trendBounce 2s ease-in-out infinite;
}

@keyframes trendBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

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

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

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    margin-right: 0.5rem;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.email-notification {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--demo-overlay-light);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease-out 2s forwards;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.notification-icon {
    margin-right: 0.5rem;
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Enhanced Data Scraper Styles */
.scraper-feed {
    position: relative;
    overflow: hidden;
}

.scraper-item {
    opacity: 0;
    transform: translateY(20px);
    animation: dataFloat 4s ease-in-out infinite;
}

.scraper-item.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes dataFloat {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    80% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.8); }
}

.extraction-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
    opacity: 0;
    animation: statusFade 1s ease-out 1s forwards;
}

@keyframes statusFade {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.scraper-progress {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.progress-bar-detailed {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-detailed .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
    width: 0%;
    animation: progressGrow 4s ease-in-out infinite;
}

@keyframes progressGrow {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

.success-rate {
    color: var(--success-color);
    animation: rateFlicker 3s ease-in-out infinite;
}

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

/* Enhanced Blog Generator Styles */
.preview-content .blog-editor {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    min-height: 80px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.editor-status {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.7rem;
}

.cursor-blink {
    color: var(--accent-primary);
    animation: cursorBlink 1s infinite;
}

.editor-content {
    min-height: 50px;
}

.editor-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    min-height: 16px;
}

.editor-line.title-line .line-content {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.preview-content .line-number {
    display: none;
}

.line-content {
    color: var(--text-primary);
    flex: 1;
    word-wrap: break-word;
}

.typing-cursor {
    color: var(--accent-primary);
    font-weight: bold;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.generation-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.seo-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-ring {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--success-color) 0deg,
        var(--success-color) calc(3.6deg * var(--score, 94)),
        var(--border-color) calc(3.6deg * var(--score, 94)),
        var(--border-color) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scoreRingPulse 3s ease-in-out infinite;
}

.score-ring::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.score-number {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-primary);
}

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

.publish-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--demo-overlay-light);
    border-radius: 6px;
    font-size: 0.875rem;
}

.platform-icon {
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.word-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.count-number {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
    animation: countUp 4s ease-in-out infinite;
}

@keyframes countUp {
    0% { color: var(--text-secondary); }
    50% { color: var(--accent-primary); transform: scale(1.2); }
    100% { color: var(--accent-primary); transform: scale(1); }
}

.count-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Enhanced Hover Effects */
.demo-preview:hover .mock-lead {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.demo-preview:hover .scraper-item {
    transform: translateY(-2px) scale(1.02);
}

.demo-preview:hover .blog-editor {
    transform: translateY(-1px);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .generation-metrics {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .typing-text {
        font-size: 0.875rem;
    }
    
    .score-ring {
        width: 40px;
        height: 40px;
    }
    
    .score-ring::before {
        width: 28px;
        height: 28px;
    }
    
    .score-number {
        font-size: 0.75rem;
    }
}

/* Performance Optimizations */
.demo-preview * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced micro-animations for better UX */
.lead-status.pulse {
    animation: statusPulse 2s ease-in-out infinite;
}

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

.item-price.pulse {
    animation: pricePulse 1.5s ease-in-out infinite;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.progress-fill.animated {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 200%;
    animation: progressFlow 3s ease-in-out infinite;
}

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

/* Preview window hover effects */
.preview-window {
    transition: all 0.3s ease;
}

.demo-preview:hover .preview-window {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}