:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.header .container {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.ad-unit {
    background: var(--light-bg);
    padding: 15px;
    text-align: center;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 728px;
}

.ad-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.social-proof {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Adds depth */
}

.stat-label {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.features {
    background: var(--light-bg);
    padding: 80px 20px;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    color: var(--dark-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.pricing {
    padding: 80px 20px;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.plan-name {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.plan-price {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plan-period {
    color: #666;
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.plan-features li:last-child {
    border-bottom: none;
}

.testimonials {
    background: var(--light-bg);
    padding: 80px 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-bg);
}

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.email-capture {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.email-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.email-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    min-width: 0;
}

.email-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.demo-container {
    background: white;
    padding: 60px 20px;
    text-align: center;
}

.demo-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.demo-output {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    min-height: 200px;
    text-align: left;
    font-size: 0.9em;
    overflow-y: auto;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
}

.demo-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.confidence-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 10px;
}

.high-confidence { background: var(--success-color); color: white; }
.medium-confidence { background: var(--warning-color); color: white; }
.low-confidence { background: var(--danger-color); color: white; }

/* Loading animation for demo */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Sticky Sidebar Ad */
.sidebar-ad {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 160px;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-ad .ad-label {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .sidebar-ad {
        display: none; /* Hide on tablets and mobile */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .feature-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}
/* ===== DEMO SECTION ENHANCEMENTS ===== */
.demo-output:empty::before {
    content: "Select content type and topic to see AI-generated content...";
    color: #666;
    font-style: italic;
}

.demo-output.success {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.demo-output.error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

.demo-output.loading {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.demo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-button:active {
    transform: translateY(2px);
}

/* ===== MOBILE TOUCH IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .cta-button, .demo-button, .email-submit {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .demo-select, .email-input {
        min-height: 44px;
        font-size: 16px;
    }
    
    .feature-card, .pricing-card, .testimonial-card {
        padding: 25px 20px;
    }
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* ===== DEMO SECTION ENHANCEMENTS ===== */
.demo-output {
    transition: all 0.3s ease;
    min-height: 200px;
    line-height: 1.5;
}

.demo-output.loading {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-output.success {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.demo-output.error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

/* Loading animation */
.demo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Button states */
.demo-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.demo-button:active:not(:disabled) {
    transform: translateY(2px);
}
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .header p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .stats {
        gap: 20px;
        margin-top: 25px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 80px;
    }
}
.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0;
}
@media (max-width: 768px) {
    .ad-unit {
        margin: 15px auto;
        padding: 10px;
    }
    
    .sticky-ad {
        position: relative;
        bottom: auto;
    }
    
    /* In-article ads for mobile */
    .mobile-in-article-ad {
        margin: 20px 0;
        text-align: center;
    }
}
