/* ======================================================
   NBA Score Predictor — Landing Page Styles
   Dark NBA theme matching the mobile app
   ====================================================== */

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

:root {
    --bg-dark: #0b0e1a;
    --bg-card: #141829;
    --card-border: #1e2440;
    --nba-blue: #1D428A;
    --nba-red: #C8102E;
    --ai-purple: #7c3aed;
    --text-primary: #ffffff;
    --text-muted: #8892B0;
    --win-green: #4ade80;
    --odds-blue: #60a5fa;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(29, 66, 138, 0.2) 0%,
        rgba(124, 58, 237, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    margin-bottom: 28px;
    filter: drop-shadow(0 8px 32px rgba(29, 66, 138, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 60%, var(--odds-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--nba-blue);
    background: rgba(29, 66, 138, 0.15);
    border: 1px solid rgba(29, 66, 138, 0.4);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

.cta-btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--nba-red), var(--nba-blue));
    border: none;
    border-radius: 14px;
    padding: 14px 40px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(200, 16, 46, 0.25);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.35);
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

/* ---------- Features ---------- */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 66, 138, 0.5);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.feature-tagline {
    color: var(--nba-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--win-green);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(29, 66, 138, 0.04) 50%, transparent 100%);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nba-blue), var(--ai-purple));
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: var(--card-border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ---------- Beta Signup ---------- */
.beta {
    padding: 100px 0;
}

.beta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.beta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.12), transparent 70%);
    pointer-events: none;
}

.beta-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.beta-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    position: relative;
}

.beta-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.form-row input[type="email"] {
    flex: 1;
    font-family: var(--font);
    font-size: 15px;
    padding: 14px 18px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(11, 14, 26, 0.6);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-row input[type="email"]:focus {
    border-color: var(--nba-blue);
}

.form-row input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-row button {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--nba-red), var(--nba-blue));
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.form-row button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
}

.form-row button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.beta-message {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.beta-message.success {
    color: var(--win-green);
}

.beta-message.error {
    color: var(--nba-red);
}

.beta-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 18px;
    opacity: 0.6;
    position: relative;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-brand img {
    border-radius: 6px;
}

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

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

.footer-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
        min-height: auto;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-divider {
        width: 2px;
        height: 32px;
        margin-top: 0;
    }

    .beta-card {
        padding: 40px 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
