/* ==========================================================================
   PairCoder Home Page Styles
   Hero, Terminal Demo, Video, CTA
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--success);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-hero);
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

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

/* --------------------------------------------------------------------------
   Scarcity Banner
   -------------------------------------------------------------------------- */
.scarcity-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px 28px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scarcity-banner.sold-out {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.scarcity-icon {
    font-size: 2rem;
}

.scarcity-content {
    flex: 1;
}

.scarcity-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scarcity-title .spots-count {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scarcity-title.sold-out .spots-count {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scarcity-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.scarcity-subtitle strong {
    color: var(--success);
}

.scarcity-banner.sold-out .scarcity-subtitle strong {
    color: var(--success);
}

.scarcity-progress {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.scarcity-progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.scarcity-banner.sold-out .scarcity-progress-fill {
    background: var(--gradient-success);
}

/* --------------------------------------------------------------------------
   Terminal Demo
   -------------------------------------------------------------------------- */
.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono), serif;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono), serif;
    font-size: 0.875rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    opacity: 0;
    animation: typeIn 0.3s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.4s; }
.terminal-line:nth-child(6) { animation-delay: 1.7s; }
.terminal-line:nth-child(7) { animation-delay: 2.0s; }

.terminal-prompt { color: var(--success); }
.terminal-command { color: var(--text-primary); }
.terminal-output { color: var(--text-secondary); }
.terminal-success { color: var(--success); }

/* --------------------------------------------------------------------------
   Video Demo Section
   -------------------------------------------------------------------------- */
.demo-section {
    padding: 80px 0;
    scroll-margin-top: 100px; /* Account for fixed header */
}

/* Make video wrapper the target for better centering */
.demo-section .video-wrapper {
    scroll-margin-top: 120px;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper lite-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

.video-placeholder-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.video-placeholder p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.demo-youtube-callout {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.demo-youtube-callout a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.demo-youtube-callout a:hover {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    text-align: center;
    padding: 120px 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.cta-section > .container > p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Scarcity */
.cta-scarcity {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.cta-scarcity.sold-out {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.cta-scarcity h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cta-scarcity p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Pricing Preview (Homepage)
   -------------------------------------------------------------------------- */
.pricing-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pricing-preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.pricing-preview-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.pricing-preview-card .pricing-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-preview-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-preview-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto 40px;
    }

    .pricing-preview-card .pricing-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
}
