/**
 * Landing Page Styles (Optimized)
 * Only styles needed for index.html
 */

/* CSS Variables */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #111111;
    --color-text-body: #0C2A1F;
    --color-text-light: #404040;
    --color-text-lighter: #888888;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.5;
    overscroll-behavior: none;
}

/* Performance: Touch action for faster taps */
a, button, input, select, textarea {
    touch-action: manipulation;
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Landing Page Container */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.landing-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

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

.header-nav {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .btn {
        min-height: 52px;
        font-size: 18px;
    }
}

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

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

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

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5568d3 0%, #663a8b 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.25;
    word-wrap: break-word;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Video Container with aspect-ratio */
.hero-video {
    max-width: 100%;
    width: 100%;
    margin: 24px auto;
    aspect-ratio: 16 / 9;
    position: relative;
}

.hero-video .voomly-embed {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px;
    overflow: hidden;
}

.hero-video .voomly-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Video Thumbnail Placeholder */
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(45deg, rgb(142, 150, 164) 0%, rgb(201, 208, 222) 100%);
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    decoding: async;
}

.video-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.video-placeholder .play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    fill: #667eea;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 200px;
}

.btn-cta {
    background: white;
    color: var(--color-primary);
    font-size: 18px;
    padding: 16px 32px;
}

.btn-cta:hover {
    background: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 80px 24px;
    background: var(--color-surface);
    contain: layout style paint;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.25;
}

.section-subtitle {
    font-family: var(--font-body);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 36px;
    }
    .section-subtitle {
        font-size: 18px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #000;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.3;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 20px;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 80px 24px;
    background: var(--color-bg);
    contain: layout style paint;
    scroll-margin-top: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-badge-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pricing-badge-starter,
.pricing-badge-pro {
    top: -24px;
    padding: 8px 24px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-light);
}

.pricing-savings {
    margin: 8px 0 16px 0;
    text-align: center;
    min-height: 58px;
}

.pricing-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    min-height: 85px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* FAQ Section - Native Details/Summary */
.faq-section {
    padding: 80px 24px;
    background: var(--color-bg);
    contain: layout style paint;
    content-visibility: auto;
    scroll-margin-top: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23404040'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: var(--color-bg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.landing-footer {
    background: var(--color-text);
    color: white;
    padding: 48px 24px;
    text-align: center;
    content-visibility: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
}

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

/* Guarantee Callout */
.guarantee-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 78, 59, 0.15) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.guarantee-icon svg {
    width: 100%;
    height: 100%;
}

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

.guarantee-content strong {
    font-size: 1.1rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.guarantee-content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.guarantee-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.guarantee-mini svg {
    width: 20px;
    height: 20px;
}

/* Trust Section (Why Trust Us) */
.trust-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.trust-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trust-content strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.trust-content span {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

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

    .trust-item {
        padding: 0.75rem;
        background: rgba(37, 99, 235, 0.03);
        border-radius: 8px;
    }
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.97);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a { color: #a8b4ff; }

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.cookie-btn:hover { opacity: 0.9; }

.cookie-btn-accept {
    background: #667eea;
    color: #fff;
}

.cookie-btn-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 32px 16px;
    }

    .hero-video {
        margin: 16px auto !important;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* Hide embedded quiz on mobile */
    .demo-embed-card {
        display: none;
    }

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

    .features-section,
    .pricing-section,
    .faq-section {
        padding: 48px 16px;
    }

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

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        z-index: 99;
        gap: 8px;
    }

    .header-nav.active .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .guarantee-callout {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .guarantee-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 24px;
    }

    /* On very small screens, hide the live quiz embed - too cramped */
    .demo-embed-card {
        display: none;
    }

    /* Make builder card full width when quiz hidden */
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

/* ====================================
   Social Proof Bar
   ==================================== */
.social-proof-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    text-align: center;
}

.social-proof-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--color-text-light);
    font-weight: 500;
}

.proof-icon {
    color: var(--color-success);
    display: flex;
    flex-shrink: 0;
}

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

/* ====================================
   Countdown Timer Section
   ==================================== */
.countdown-section {
    background: linear-gradient(135deg, #f59e0b 0%, #ff6b35 100%);
    padding: 32px 24px;
    text-align: center;
}

.countdown-content {
    max-width: 800px;
    margin: 0 auto;
}

.countdown-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.countdown-headline {
    font-family: var(--font-heading);
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.countdown-unit {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 70px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.countdown-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ====================================
   Problem Section
   ==================================== */
.problem-section {
    padding: 80px 24px;
    background: var(--color-surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.problem-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

.problem-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.problem-description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.problem-insight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    text-align: left;
}

.insight-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #6366F1;
}

.insight-icon svg {
    width: 100%;
    height: 100%;
}

.problem-insight p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

.problem-insight strong {
    color: #6366F1;
}

.problem-insight em {
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
}

/* ====================================
   How It Works Section
   ==================================== */
.how-it-works-section {
    padding: 80px 24px;
    background: var(--color-bg);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    background: var(--color-surface);
    padding: 32px 20px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-border);
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 8px auto 20px;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-screenshot {
    margin: 8px auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 280px;
    cursor: zoom-in;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-screenshot::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.step-screenshot:hover::after {
    opacity: 1;
}

.step-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.2s ease;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--color-text-lighter);
    margin-top: 140px;
}

.step-connector svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .step-card {
        max-width: 100%;
    }
}

/* ====================================
   Testimonials Section
   ==================================== */
.testimonials-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: #fff;
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-border);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 24px;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 48px;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.author-title {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ====================================
   Persona (Who This Is For) Section
   ==================================== */
.persona-section {
    padding: 80px 24px;
    background: var(--color-surface);
}

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

.persona-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.persona-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.persona-icon svg {
    width: 100%;
    height: 100%;
}

.persona-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.persona-description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ====================================
   Integrations Section
   ==================================== */
.integrations-section {
    padding: 80px 24px;
    background: var(--color-surface);
}

.integrations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.integration-logo:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.integration-logo svg {
    width: 56px;
    height: 56px;
}

.integration-logo span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* ====================================
   Final CTA Section
   ==================================== */
.final-cta-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.final-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.5;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.final-cta-buttons .btn {
    min-width: 200px;
}

.final-cta-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}

.final-cta-guarantee svg {
    color: rgba(255, 255, 255, 0.9);
}

/* ====================================
   Responsive Adjustments for New Sections
   ==================================== */
@media (max-width: 768px) {
    .social-proof-content {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }

    .countdown-timer {
        gap: 4px;
    }

    .countdown-unit {
        padding: 10px 12px;
        min-width: 55px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-separator {
        font-size: 24px;
    }

    .problem-section,
    .how-it-works-section,
    .testimonials-section,
    .persona-section,
    .integrations-section,
    .final-cta-section {
        padding: 48px 16px;
    }

    .problem-insight {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

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

    .testimonial-card {
        padding: 32px 24px;
    }

    .integrations-grid {
        gap: 24px;
    }

    .integration-logo svg {
        width: 48px;
        height: 48px;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .final-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ====================================
   "See It In Action" Hero Button
   ==================================== */
.see-it-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.see-it-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.see-it-action-emoji {
    font-size: 20px;
}

.see-it-action-btn svg {
    animation: bounce-down 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Back to Top Link */
.back-to-top-wrapper {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.back-to-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.back-to-top-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.back-to-top-link svg {
    transition: transform 0.2s;
}

.back-to-top-link:hover svg {
    transform: translateY(-3px);
}

/* ====================================
   Meet the Founder Section
   ==================================== */
.founder-section {
    padding: 80px 24px;
    background: var(--color-bg);
}

.founder-video-container {
    max-width: 700px;
    margin: 0 auto;
}

.founder-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-blur-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    backdrop-filter: blur(0px);
}

.video-coming-soon-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.coming-soon-icon svg {
    width: 48px;
    height: 48px;
}

.founder-video-placeholder:hover .coming-soon-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon-teaser {
    max-width: 400px;
    margin: 0;
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.founder-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.founder-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
}

.founder-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.founder-role {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ====================================
   See It In Action / Demo Section
   ==================================== */
.demo-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    scroll-margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Floating decorative shapes */
.demo-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 20s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -80px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Badge at top of section */
.demo-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 1;
}

.demo-section-badge svg {
    color: #fcd34d;
}

.demo-section .section-title,
.demo-section .section-subtitle {
    color: #fff;
    position: relative;
    z-index: 1;
}

.demo-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.demo-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    text-align: left;
}

.demo-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.demo-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.demo-card-icon svg {
    width: 100%;
    height: 100%;
}

.demo-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.demo-card-description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Demo Embed Card */
.demo-embed-container {
    flex: 1;
    margin-bottom: 24px;
}

.demo-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.demo-embed-mockup {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.mockup-dot:nth-child(1) { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #10B981; }

.mockup-content {
    padding: 40px 24px;
    text-align: center;
    color: var(--color-text-light);
}

.mockup-content p {
    margin-bottom: 16px;
    font-size: 15px;
}

.mockup-progress {
    width: 60%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.mockup-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { width: 30%; }
    50% { width: 70%; }
}

.demo-embed-note {
    font-size: 13px;
    color: var(--color-text-lighter);
    font-style: italic;
    margin: 0;
}

.demo-cta {
    width: 100%;
    margin-top: auto;
}

/* Demo Builder Card - Animated Glow */
.demo-builder-card {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.demo-card-glow {
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(
        90deg,
        #667eea,
        #764ba2,
        #f093fb,
        #f5576c,
        #feca57,
        #48dbfb,
        #667eea
    );
    background-size: 300% 300%;
    animation: glowRotate 4s ease-in-out infinite;
    opacity: 0.7;
    filter: blur(8px);
    z-index: -1;
}

.demo-builder-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        #667eea,
        #764ba2,
        #f093fb,
        #667eea
    );
    background-size: 200% 200%;
    animation: borderRotate 3s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

.demo-card-inner {
    position: relative;
    background: var(--color-surface);
    border-radius: 20px;
    padding: 32px;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@keyframes glowRotate {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.9;
    }
}

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

/* Highlight state when "Build One Like This" is clicked */
.demo-builder-card.highlight {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.demo-builder-card.highlight .demo-card-glow {
    opacity: 1;
    filter: blur(12px);
    animation: glowPulse 0.5s ease-out;
}

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

/* Icon animation */
.demo-card-icon-animated svg {
    animation: iconFloat 3s ease-in-out infinite;
}

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

/* Demo Builder Form */
.demo-builder-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.demo-form-textarea {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.demo-form-input::placeholder {
    color: var(--color-text-lighter);
}

.demo-form-textarea textarea {
    resize: vertical;
    min-height: 120px;
    flex: 1;
}

.demo-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    cursor: pointer;
}

.demo-form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.demo-form-note {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-lighter);
    margin: 0;
}

/* Submit Button with Shimmer */
.demo-submit-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-submit-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Welcome Back State */
.demo-welcome-back {
    text-align: center;
    padding: 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-build-new-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    margin-top: 8px;
    transition: color 0.2s;
}

.demo-build-new-btn:hover {
    color: #667eea;
}

/* Build Like This Button */
.build-like-this-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.build-like-this-btn svg {
    transition: transform 0.3s ease;
}

.build-like-this-btn:hover svg {
    transform: translateX(4px);
}

.trial-step-text {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.trial-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    color: var(--color-success);
    font-size: 14px;
    font-weight: 600;
}

.trial-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trial-notify-text {
    text-align: center;
    margin: 12px 0 0;
    font-size: 13px;
}

.trial-notify-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.trial-notify-text a:hover {
    text-decoration: underline;
}

/* Demo Section Responsive */
@media (max-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    /* Tighten scroll margins on mobile - header isn't sticky */
    .pricing-section,
    .faq-section,
    .demo-section {
        scroll-margin-top: 10px;
    }

    .founder-section,
    .demo-section {
        padding: 48px 16px;
    }

    /* Hide floating shapes on mobile for performance */
    .demo-floating-shapes {
        display: none;
    }

    .demo-section-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .founder-video-placeholder {
        border-radius: 12px;
    }

    .coming-soon-icon {
        width: 64px;
        height: 64px;
    }

    .coming-soon-icon svg {
        width: 36px;
        height: 36px;
    }

    .coming-soon-teaser {
        font-size: 14px;
    }

    .demo-card {
        padding: 24px;
    }

    .demo-card-title {
        font-size: 20px;
    }

    .demo-embed-mockup {
        min-height: 220px;
    }

    .see-it-action-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Demo builder card responsive */
    .demo-card-inner {
        padding: 24px;
    }

    .demo-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .demo-card-glow {
        filter: blur(6px);
    }

    .demo-form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .demo-form-note {
        font-size: 11px;
    }
}

/* ====================================
   Waitlist / Early Access Form
   ==================================== */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waitlist-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.waitlist-input,
.waitlist-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input:focus,
.waitlist-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.waitlist-input::placeholder,
.waitlist-textarea::placeholder {
    color: var(--color-text-lighter);
}

.waitlist-textarea {
    resize: vertical;
    min-height: 80px;
}

.waitlist-textarea-wrapper {
    position: relative;
}

.waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 4px;
}

.waitlist-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.waitlist-consent span {
    line-height: 1.4;
}

.waitlist-submit {
    position: relative;
}

.waitlist-submit-loading .spinner {
    animation: spin 1s linear infinite;
}

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

.waitlist-note {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-lighter);
    margin: 4px 0 0;
}

/* Waitlist Success State */
.waitlist-success {
    text-align: center;
    padding: 24px 16px;
}

.waitlist-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.waitlist-success-icon svg {
    width: 100%;
    height: 100%;
}

.waitlist-success-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.waitlist-success-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Waitlist Responsive */
@media (max-width: 500px) {
    .waitlist-form-row {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   Demo Builder (Inside Waitlist Success)
   ==================================== */
.demo-intro {
    text-align: center;
}

.demo-prompt {
    margin-top: 24px;
    text-align: left;
}

.demo-prompt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.demo-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    color: var(--color-text);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.demo-input::placeholder {
    color: var(--color-text-lighter);
}

.demo-build-btn {
    width: 100%;
    margin-top: 16px;
}

.demo-build-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Demo Progress State */
.demo-progress {
    text-align: center;
    padding: 24px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-progress-spinner {
    margin-bottom: 20px;
}

.demo-progress-circle {
    animation: rotate 1.5s linear infinite;
    transform-origin: center;
}

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

.demo-progress-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 24px;
    transition: opacity 0.2s;
}

.demo-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.demo-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--color-bg);
    border-radius: 8px;
    opacity: 0.4;
    transition: opacity 0.3s, background 0.3s;
}

.demo-step.active {
    opacity: 1;
    background: rgba(99, 102, 241, 0.1);
}

.demo-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    flex-shrink: 0;
    transition: background 0.3s;
}

.demo-step.active .demo-step-dot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-step-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.demo-step.active .demo-step-label {
    color: var(--color-text);
    font-weight: 500;
}

/* Demo Result State */
.demo-result,
.demo-exists,
.demo-error {
    text-align: center;
    padding: 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.demo-result-icon svg {
    width: 100%;
    height: 100%;
}

.demo-result-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.demo-result-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0 0 20px;
    line-height: 1.5;
}

.demo-result-url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 16px;
}

.demo-result-url {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    word-break: break-all;
}

.demo-copy-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-light);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.demo-copy-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.demo-result-actions {
    margin-bottom: 16px;
}

.demo-open-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-result-note {
    font-size: 13px;
    color: var(--color-text-lighter);
    margin: 0 0 8px;
}

.demo-upgrade-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.demo-upgrade-link:hover {
    text-decoration: underline;
}

/* ============================================
   Upsell Modal (Lemon Squeezy Checkout Flow)
   ============================================ */

.upsell-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.upsell-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upsell-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.upsell-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: upsellModalIn 0.3s ease-out;
}

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

.upsell-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.upsell-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upsell-modal-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.upsell-modal-message {
    text-align: center;
    color: #404040;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.upsell-modal-offer {
    background: linear-gradient(135deg, rgba(13, 79, 43, 0.1) 0%, rgba(26, 172, 184, 0.1) 100%);
    border: 2px solid #0D4F2B;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.upsell-offer-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px 0;
    text-align: center;
}

.upsell-offer-price {
    text-align: center;
    margin-bottom: 12px;
}

.upsell-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0D4F2B;
}

.upsell-price-original {
    font-size: 1.2rem;
    color: #888888;
    text-decoration: line-through;
    margin-left: 8px;
}

.upsell-price-period {
    font-size: 1rem;
    color: #404040;
    margin-left: 4px;
}

.upsell-discount-note {
    text-align: center;
    background: linear-gradient(135deg, #0D4F2B 0%, #1AACB8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 16px 0;
}

.upsell-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upsell-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #404040;
    font-size: 0.95rem;
}

.upsell-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #0D4F2B;
    font-weight: bold;
}

.upsell-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upsell-btn-yes {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0D4F2B 0%, #1AACB8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upsell-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 79, 43, 0.3);
}

.upsell-btn-no {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #404040;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upsell-btn-no:hover {
    background: #f8fafc;
    color: #111111;
}

/* Body class to prevent scroll when modal is open */
body.upsell-modal-open {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .upsell-modal-content {
        padding: 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }

    .upsell-modal-headline {
        font-size: 1.6rem;
    }

    .upsell-price-current {
        font-size: 2rem;
    }

    .upsell-btn-yes {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
