/* Autoposting Landing Page - Dark Theme Matching Planner */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --emerald: #10b981;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    --vk: #0077FF;
    --youtube: #FF0000;
    --telegram: #0088CC;
    --instagram: #E4405F;
    --tiktok: #000000;
    --pinterest: #E60023;
    --radius: 1rem;
    --radius-sm: 0.75rem;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

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

/* Background */
.gradient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.ap-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.ap-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.ap-logo svg { width: 36px; height: 36px; }

.ap-nav { display: flex; gap: 2rem; }

.ap-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.ap-header-btns { display: flex; gap: 0.75rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* Glass Card */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
}

/* Hero Section */
.ap-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.ap-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.ap-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

.ap-hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.ap-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.ap-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.ap-hero-platforms {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ap-platform-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ap-platform-badge:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.ap-platform-badge svg { width: 18px; height: 18px; }

.ap-hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ap-hero-stats {
    display: flex;
    gap: 2.5rem;
}

.ap-stat {
    display: flex;
    flex-direction: column;
}

.ap-stat strong {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ap-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Demo */
.ap-hero-demo {
    position: relative;
}

.ap-demo-window {
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ap-demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.ap-demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ap-demo-dot.red { background: #ff5f56; }
.ap-demo-dot.yellow { background: #ffbd2e; }
.ap-demo-dot.green { background: #27c93f; }

.ap-demo-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ap-demo-content {
    padding: 1.5rem;
    min-height: 400px;
}

/* Demo Calendar */
.ap-demo-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.ap-demo-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.ap-demo-day {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.ap-demo-day:hover {
    border-color: var(--emerald);
    transform: scale(1.05);
}

.ap-demo-day.today {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}

.ap-demo-day-num {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.ap-demo-day.today .ap-demo-day-num { color: var(--emerald); }

.ap-demo-posts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0.25rem;
}

.ap-demo-post {
    height: 4px;
    border-radius: 2px;
    animation: fadeInPost 0.3s ease;
}

@keyframes fadeInPost {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

/* Demo Post Creator */
.ap-demo-creator {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 280px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: floatUp 3s ease-in-out infinite;
}

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

.ap-demo-creator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.ap-demo-creator-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.ap-demo-creator-body { padding: 1rem; }

.ap-demo-textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text);
    resize: none;
    min-height: 60px;
    margin-bottom: 0.75rem;
}

.ap-demo-socials {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ap-demo-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ap-demo-social-btn.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.15);
}

.ap-demo-social-btn svg { width: 16px; height: 16px; }

.ap-demo-publish-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ap-demo-publish-btn:hover { transform: translateY(-1px); }

/* Section Common */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--emerald);
    font-weight: 600;
}

/* Platforms Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.platform-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
}

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

.platform-logo {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo svg { width: 24px; height: 24px; fill: white; }

.platform-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.platform-card h3 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.platform-features {
    list-style: none;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
}

.platform-features li svg {
    width: 16px;
    height: 16px;
    color: var(--emerald);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--gradient);
    opacity: 0.3;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* AI Section */
.ai-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ai-template-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.ai-template-card:hover {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.05);
}

.ai-template-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ai-template-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--emerald);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent);
    transform: scale(1.05);
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--emerald);
    flex-shrink: 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.faq-question:hover { background: rgba(255, 255, 255, 0.05); }

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.05));
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Footer */
.ap-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.ap-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ap-footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.ap-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.ap-footer-links a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 1024px) {
    .features-grid,
    .platforms-grid,
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    
    .ai-section-inner { grid-template-columns: 1fr; gap: 3rem; }
    
    .ap-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .ap-hero-desc { margin: 0 auto 2rem; }
    .ap-hero-platforms { justify-content: center; }
    .ap-hero-btns { justify-content: center; }
    .ap-hero-stats { justify-content: center; }
    .ap-hero-demo { order: -1; }
    
    .ap-demo-creator { display: none; }
}

@media (max-width: 768px) {
    .ap-nav { display: none; }
    
    .features-grid,
    .platforms-grid,
    .pricing-grid,
    .steps-grid,
    .ai-templates-grid { grid-template-columns: 1fr; }
    
    .pricing-card.featured { transform: none; }
    
    .ap-footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .ap-footer-links { flex-wrap: wrap; justify-content: center; }
    
    .cta-buttons { flex-direction: column; align-items: center; }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========================================
   Content Factory Block
   ======================================== */
.content-factory-block {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03), transparent);
    position: relative;
    overflow: hidden;
}

.cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .cf-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.cf-content {
    max-width: 560px;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

.cf-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.cf-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cf-features-mini {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.cf-feature-mini {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.cf-feature-mini:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.cfm-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cfm-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cfm-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.cfm-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cf-cta-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cf-trust-badges span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CF Visual - Platforms Showcase */
.cf-visual {
    display: flex;
    justify-content: center;
}

.cf-platforms-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 420px;
    position: relative;
}

@media (max-width: 480px) {
    .cf-platforms-showcase {
        grid-template-columns: repeat(2, 1fr);
        max-width: 280px;
    }
}

.cf-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: cfpFadeIn 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    transition: all 0.3s ease;
}

.cf-platform-card:hover {
    border-color: var(--color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

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

.cfp-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.cfp-icon svg {
    width: 24px;
    height: 24px;
}

.cf-platform-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.cf-publishing-animation {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    animation: cfpPulse 2s ease-in-out infinite;
}

@keyframes cfpPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cfp-arrow {
    font-size: 1.5rem;
    color: var(--emerald);
    animation: cfpArrow 1s ease-in-out infinite;
}

@keyframes cfpArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.cfp-post-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.cfp-post-thumb {
    font-size: 1.25rem;
}

.cfp-post-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cfp-status-badge {
    padding: 6px 12px;
    background: var(--emerald);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    animation: cfpBadge 1.5s ease-in-out infinite;
}

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

/* ========================================
   Interactive Demo Section
   ======================================== */
.demo-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03), transparent);
}

.demo-section .section-header { margin-bottom: 3rem; }

.demo-interface {
    display: grid;
    grid-template-columns: 220px 1fr 320px;
    gap: 1rem;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .demo-interface {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .demo-sidebar, .demo-post-details { display: none; }
}

/* Demo Sidebar */
.demo-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.demo-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.demo-sidebar-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-project-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
}

.demo-accounts-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-account:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.demo-account.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.08);
}

.demo-account-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-account-icon svg { width: 18px; height: 18px; fill: white; }

.demo-account-info { flex: 1; min-width: 0; }

.demo-account-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-account-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.demo-account-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-account.active .demo-account-check {
    background: var(--emerald);
    border-color: var(--emerald);
}

.demo-account.active .demo-account-check svg { opacity: 1; }
.demo-account-check svg { width: 12px; height: 12px; opacity: 0; }

/* Demo Calendar */
.demo-calendar-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.demo-calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.demo-calendar-nav-btn svg { width: 16px; height: 16px; }

.demo-calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.demo-calendar-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-calendar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-stats-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.demo-stats-pill.green { color: #10b981; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.demo-stats-pill.yellow { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
.demo-stats-pill.red { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); }

.demo-create-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.demo-create-btn svg { width: 16px; height: 16px; }

/* Calendar Grid */
.demo-calendar-grid {
    flex: 1;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 0.5rem;
}

.demo-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0.5rem;
}

.demo-day {
    min-height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.demo-day:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.demo-day.other-month { opacity: 0.3; }

.demo-day.today {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.05);
}

.demo-day.selected {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.demo-day-num {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.demo-day.today .demo-day-num { color: var(--emerald); font-weight: 700; }

.demo-day-posts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.demo-post-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.demo-post-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.demo-post-chip.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.15);
}

.demo-post-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-post-chip-time {
    font-weight: 500;
}

.demo-post-chip-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-day-more {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2px;
}

/* Demo Post Details */
.demo-post-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-post-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.demo-post-details-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.demo-post-details-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-post-details-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.demo-post-details-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.demo-post-preview {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.demo-post-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
}

.demo-post-content {
    padding: 1rem;
}

.demo-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.demo-post-platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-post-platform-icon svg { width: 14px; height: 14px; fill: white; }

.demo-post-account-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.demo-post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-post-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.demo-post-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.demo-stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
}

.demo-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.demo-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.demo-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    margin-left: auto;
}

.demo-status-badge.published { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.demo-status-badge.pending { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.demo-status-badge.draft { color: #8b5cf6; background: rgba(139, 92, 246, 0.15); }

/* Create Post Modal */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.demo-modal.active { display: flex; }

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.demo-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.demo-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.demo-modal-body {
    padding: 1.25rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.demo-form-group {
    margin-bottom: 1.25rem;
}

.demo-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.demo-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s;
}

.demo-textarea:focus {
    outline: none;
    border-color: var(--emerald);
    background: rgba(255, 255, 255, 0.05);
}

.demo-textarea::placeholder { color: var(--text-muted); }

.demo-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.demo-ai-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
}

.demo-platforms-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-platform-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-platform-checkbox:hover { border-color: var(--border-hover); }

.demo-platform-checkbox.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}

.demo-platform-checkbox svg { width: 18px; height: 18px; }

.demo-platform-checkbox span {
    font-size: 0.8rem;
    font-weight: 500;
}

.demo-datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.demo-input:focus {
    outline: none;
    border-color: var(--emerald);
}

.demo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.demo-btn-secondary {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.demo-btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Success notification */
.demo-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.95);
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    z-index: 1100;
    opacity: 0;
    transition: all 0.4s ease;
}

.demo-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.demo-notification svg { width: 20px; height: 20px; }

/* Day Posts Modal */
.demo-day-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.demo-day-modal.active { display: flex; }

.demo-day-modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.demo-day-posts-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.demo-day-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-day-post-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.demo-day-post-item.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.08);
}

.demo-day-post-platform {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-day-post-platform svg { width: 20px; height: 20px; fill: white; }

.demo-day-post-info { flex: 1; min-width: 0; }

.demo-day-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.demo-day-post-time {
    font-size: 0.85rem;
    font-weight: 600;
}

.demo-day-post-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

