/* =============================================
   SPIKE VOLLEY - LANDING PAGE
   assets/landing.css
   ============================================= */

/* ---- Variables (matching project design system) ---- */
:root {
    --primary-blue: #0D3B66;
    --secondary-blue: #1B4C8C;
    --accent-gold: #F2CF1D;
    --light-blue: #4A90E2;
    --dark-bg: #0A1929;
    --dark-surface: #0F2744;
    --dark-card: #132F4C;
    --text-light: #EBEFF2;
    --text-muted: #99AAB5;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 39, 68, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #2ECC71;
    --gradient-gold: linear-gradient(135deg, #F2CF1D 0%, #FFD700 100%);
    --gradient-blue: linear-gradient(135deg, #0D3B66 0%, #1B4C8C 50%, #2563A8 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 20px rgba(242, 207, 29, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(27, 76, 140, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(242, 207, 29, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(74, 144, 226, 0.08) 0%, transparent 50%);
    animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ---- Navbar ---- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 32px;
    transition: var(--transition);
}

.landing-nav.scrolled {
    background: rgba(10, 25, 41, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo i {
    font-size: 1.4rem;
    -webkit-text-fill-color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
    background: rgba(242, 207, 29, 0.08);
}

.nav-cta {
    background: var(--gradient-gold) !important;
    color: var(--dark-bg) !important;
    -webkit-text-fill-color: var(--dark-bg) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-gold);
    padding: 10px 22px !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(242, 207, 29, 0.3) !important;
    filter: brightness(1.1);
    background: var(--gradient-gold) !important;
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

/* Decorative volleyball elements */
.hero::after {
    content: '🏐';
    position: absolute;
    top: 18%;
    right: 12%;
    font-size: 6rem;
    opacity: 0.18;
    animation: floatBall 6s ease-in-out infinite;
}

@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(242, 207, 29, 0.1);
    border: 1px solid rgba(242, 207, 29, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #FFD700 50%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(242, 207, 29, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-blue);
    transform: translateY(-2px);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ---- Sections ---- */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 207, 29, 0.2);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-icon.gold {
    background: rgba(242, 207, 29, 0.12);
    color: var(--accent-gold);
}

.feature-icon.blue {
    background: rgba(74, 144, 226, 0.12);
    color: var(--light-blue);
}

.feature-icon.green {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- How It Works (Steps) ---- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(74, 144, 226, 0.3));
    border-radius: 2px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(242, 207, 29, 0.1);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 4px;
}

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

/* ---- Stats Bar ---- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 40px;
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
}

.stat-item .stat-value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    padding: 100px 24px 120px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(242, 207, 29, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 207, 29, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(242, 207, 29, 0.05);
    position: relative;
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer ---- */
.landing-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    text-align: center;
}

.landing-footer p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.landing-footer a {
    color: var(--light-blue);
    text-decoration: none;
    transition: var(--transition);
}

.landing-footer a:hover {
    color: var(--accent-gold);
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ---- Mobile Menu ---- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    width: auto;
    box-shadow: none;
}

.mobile-toggle:hover {
    color: var(--accent-gold);
    transform: none;
    filter: none;
    box-shadow: none;
}

/* ---- Integration Section ---- */
.integration-section {
    padding: 80px 24px;
    position: relative;
}

.integration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(242, 207, 29, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.integration-card {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--dark-card);
    border: 1px solid rgba(242, 207, 29, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(242, 207, 29, 0.04);
    position: relative;
}

.integration-text {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.integration-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.integration-label i {
    font-size: 0.9rem;
}

.integration-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.integration-text h2 .text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.integration-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

.integration-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.integration-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.integration-highlight .check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.store-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.store-badge i {
    font-size: 1.1rem;
}

.integration-visual {
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.6), rgba(27, 76, 140, 0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.integration-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 207, 29, 0.05) 0%, transparent 60%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

.app-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(242, 207, 29, 0.25);
    position: relative;
    z-index: 1;
}

.app-icon-large i {
    color: var(--dark-bg);
}

.integration-visual h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.integration-visual p {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.flow-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    position: relative;
    z-index: 1;
}

.flow-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.flow-dot.from {
    background: rgba(74, 144, 226, 0.2);
    color: var(--light-blue);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.flow-dot.to {
    background: rgba(242, 207, 29, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(242, 207, 29, 0.3);
}

.flow-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--light-blue), var(--accent-gold));
    position: relative;
}

.flow-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(-45deg);
}

/* ---- Selection & Scrollbar ---- */
::selection {
    background: rgba(242, 207, 29, 0.3);
    color: white;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--secondary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--light-blue); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .landing-nav {
        padding: 0 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 25, 41, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 16px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }

    .section {
        padding: 60px 20px;
    }

    .steps-container::before {
        left: 24px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1rem;
    }

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

    .scroll-indicator {
        display: none;
    }

    .integration-card {
        grid-template-columns: 1fr;
    }

    .integration-text {
        padding: 32px 24px;
    }

    .integration-visual {
        padding: 32px 24px;
    }

    .integration-text h2 {
        font-size: 1.3rem;
    }
}
