/* ==========================================================================
   aivideogenerator.cfd - Ultra Modern Design System & Style Architecture
   Target Performance: 100/100 PageSpeed Score (Zero render-blocking overhead)
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-sans);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-gradient {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
}

/* Header Announcement Bar */
.top-announcement {
    background: linear-gradient(90deg, #312e81, #581c87, #312e81);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.announcement-link {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: underline;
}

/* Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-card-border);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text .highlight {
    color: var(--accent);
}

.logo-text .tld {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.main-nav a:hover {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Banner Ad Containers */
.ad-container {
    width: 100%;
    margin: 1.5rem 0;
}

.ad-inner {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.ad-banner-link {
    display: block;
}

.ad-mockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-sm);
    text-align: left;
    gap: 1rem;
}

.ad-purple {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(49, 46, 129, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ad-cyan {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.4), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.ad-gold {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.4), rgba(120, 53, 15, 0.4));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ad-emerald {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.4), rgba(6, 78, 59, 0.4));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ad-sunset {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.4), rgba(159, 18, 57, 0.4));
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.ad-neon {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.4), rgba(14, 116, 144, 0.4));
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.ad-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
}

.ad-title {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-top: 0.2rem;
}

.ad-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ad-cta {
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 3rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    color: #a5b4fc;
    margin-bottom: 1.25rem;
}

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

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-text h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.stat-num {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.hero-search-box {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 0.4rem;
    border-radius: var(--radius-md);
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

/* Hero Preview Visual */
.hero-preview-card {
    padding: 1.25rem;
    position: relative;
    border-color: rgba(99, 102, 241, 0.3);
}

.card-badge-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.video-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;

}

.animated-gradient-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #4f46e5, #9333ea, #06b6d4, #ec4899);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

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

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.prompt-overlay-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(11, 15, 25, 0.85);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #e2e8f0;
}

.hero-tool-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* AEO Direct Answer Section */
.section-geo-answer {
    padding: 2rem 0;
}

.aeo-answer-box {
    padding: 2rem;
    border-left: 4px solid var(--accent);
}

.aeo-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.aeo-answer-box h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.aeo-summary {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.aeo-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.kp-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-card-border);
    font-size: 0.9rem;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.text-left {
    text-align: left;
}

/* Tools Grid */
.section-tools {
    padding: 4rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.tool-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

.gradient-bg-1 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.gradient-bg-2 { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.gradient-bg-3 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gradient-bg-4 { background: linear-gradient(135deg, #ec4899, #be185d); }
.gradient-bg-5 { background: linear-gradient(135deg, #10b981, #047857); }
.gradient-bg-6 { background: linear-gradient(135deg, #f59e0b, #b45309); }

.tool-category {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.tool-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.tool-features {
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.tool-features li {
    margin-bottom: 0.4rem;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-card-border);
}

.price-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* Comparison Table */
.section-comparison {
    padding: 3rem 0;
}

.table-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.table-link {
    color: var(--accent);
    font-weight: 600;
}

/* Prompt Builder */
.section-prompt-builder {
    padding: 4rem 0;
}

.prompt-builder-card {
    padding: 2.5rem;
}

.prompt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group input, .form-group select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.prompt-output-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.output-text-wrapper {
    position: relative;
}

.output-text-wrapper textarea {
    width: 100%;
    height: 100px;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem;
    padding-right: 140px;
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.btn-copy {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* SEO Article Section */
.section-seo-article {
    padding: 3rem 0;
}

.article-card {
    padding: 3rem;
}

.article-intro {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.article-card h3 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.75rem 0;
    color: var(--accent);
}

.article-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;

}

.article-list {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.article-list li {
    margin-bottom: 0.5rem;
}

.code-example-block {
    background: #0f172a;
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0 1.5rem 0;
    font-family: monospace;
    font-size: 0.85rem;
    color: #38bdf8;
}

/* 100+ FAQ Section */
.section-faqs {
    padding: 4rem 0;
}

.faq-controls {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.faq-search-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.faq-search-wrapper input {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--bg-card-border);
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.faq-search-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.btn-clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
}

.faq-category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.825rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pill-btn.active, .pill-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.faq-count-indicator {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: right;
}

/* FAQ Accordions */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

/* Sticky Bottom Ad */
.sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--primary);
    padding: 0.75rem 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

.sticky-ad-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.close-ad-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
}

.sticky-ad-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.ad-text {
    font-size: 0.9rem;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #070a12;
    border-top: 1px solid var(--bg-card-border);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 1rem 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-contact-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .ad-mockup {
        flex-direction: column;
        align-items: flex-start;
    }

    .sticky-ad-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .output-text-wrapper textarea {
        padding-right: 1rem;
        height: 140px;
    }

    .btn-copy {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Multi-Format Ad Banners, Skyscraper Sidebars & Interactive Simulator Styles
   ========================================================================== */

/* Vertical Skyscraper Banner Ads (Left & Right 120x600 Desktop Floating Sticky) */
.skyscraper-ad {
    position: fixed;
    top: 100px;
    z-index: 95;
    width: 120px;
    height: 600px;
    display: none;
}

@media (min-width: 1520px) {
    .skyscraper-ad {
        display: block;
    }
}

.skyscraper-left {
    left: 12px;
}

.skyscraper-right {
    right: 12px;
}

.close-skyscraper-btn {
    position: absolute;
    top: -24px;
    right: 0;
    background: #0f172a;
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.close-skyscraper-btn:hover {
    color: #fff;
    background: #ef4444;
}

.skyscraper-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.skyscraper-link {
    display: block;
    width: 100%;
    height: calc(100% - 15px);
}

.skyscraper-box {
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skys-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
}

.skys-title {
    font-size: 1.05rem;
    color: #fff;
    font-family: var(--font-heading);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.skys-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.skys-cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: auto;
    padding-top: 1rem;
}

/* Top Bar Strip Ad & Footer Banner Strip */
.top-bar-ad-strip {
    background: linear-gradient(90deg, #312e81, #581c87, #312e81);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.top-bar-link {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: underline;
}

.footer-banner-strip {
    background: linear-gradient(90deg, #065f46, #047857, #065f46);
    color: #fff;
    padding: 0.85rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-strip-link {
    color: #6ee7b7;
    font-weight: 700;
    text-decoration: underline;
}

/* 336x280 Box Ad Slot Layout */
.prompt-ad-layout {
    display: grid;
    grid-template-columns: 1fr 336px;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 992px) {
    .prompt-ad-layout {
        grid-template-columns: 1fr;
    }
}

.ad-box-336x280 {
    width: 336px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-box-inner {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
}

.ad-box-content {
    height: 260px;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.ad-box-title {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 0.4rem;
}

.ad-box-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Interactive Free AI Video Generator Simulator */
.interactive-simulator-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.simulator-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simulator-inputs label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.simulator-inputs input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.875rem;
}

.sim-options-row {
    display: flex;
    gap: 0.5rem;
}

.sim-options-row select {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.rendering-progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.progress-status-text {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

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

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

/* Keyword Directory Cloud & Table */
.section-keywords {
    padding: 3.5rem 0;
}

.keywords-card {
    padding: 2rem;
}

.keyword-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.kw-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.kw-tag.active, .kw-tag:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.keyword-table th, .keyword-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bg-card-border);
    text-align: left;
}

.keyword-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

