/* ============================================
   Spencer AI — Section Styles
   ============================================ */

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero .bg-orb-blue {
    top: -200px;
    right: -200px;
}

.hero .bg-orb-purple {
    bottom: -150px;
    left: -100px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.hero-stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero mock chat */
.hero-visual {
    position: relative;
}

.mock-chat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    margin-left: auto;
}

.mock-chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

.mock-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.mock-chat-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.mock-chat-status {
    font-size: var(--text-xs);
    color: var(--green);
}

.mock-chat-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 320px;
}

.chat-msg {
    max-width: 85%;
    padding: var(--space-sm) var(--space-md);
    border-radius: 14px;
    font-size: var(--text-sm);
    line-height: 1.5;
    animation: msgSlide 0.4s ease;
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg-bot {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg-system {
    align-self: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
}

@keyframes msgSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PLATFORMS ========== */
.platforms {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    background: rgba(15, 23, 42, 0.3);
}

.platforms-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition);
}

.platform-item:hover {
    color: var(--text-primary);
}

.platform-icon {
    font-size: 1.5rem;
}

.platform-status {
    font-size: var(--text-xs);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}

.platform-status.live {
    background: var(--green-glow);
    color: var(--green);
}

.platform-status.soon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

/* ========== FEATURES ========== */
.features {
    position: relative;
}

.features .bg-orb-blue {
    top: 50%;
    left: -300px;
    transform: translateY(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

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

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 0 30px var(--accent-glow);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Step connector lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -1rem;
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-glow), transparent);
    transform: translateX(50%);
}

/* ========== PRICING ========== */
.pricing {
    position: relative;
}

.pricing .bg-orb-purple {
    top: -100px;
    right: -200px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.pricing-card {
    padding: var(--space-2xl);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.pricing-card.popular::before {
    opacity: 1;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.pricing-price {
    font-size: var(--text-5xl);
    font-weight: 900;
    margin-bottom: var(--space-xs);
    line-height: 1;
}

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

.pricing-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.pricing-feature .check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
    background: rgba(5, 10, 21, 0.8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-md);
    max-width: 300px;
    line-height: 1.7;
}

.footer-column-title {
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .mock-chat {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

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

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .platforms-inner {
        flex-direction: column;
        gap: var(--space-lg);
    }
}