/* ============================================
   Racket-String.com — Coming Soon
   Dark Premium Theme
   ============================================ */

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

:root {
    --teal: #00D2B4;
    --teal-dim: #00A893;
    --teal-glow: rgba(0, 210, 180, 0.12);
    --gold: #C9A84C;
    --gold-light: #E0C068;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --bg-deep: #0A0F1C;
    --bg-card: rgba(16, 24, 48, 0.65);
    --bg-card-border: rgba(0, 210, 180, 0.08);
    --text-primary: #E8ECF4;
    --text-secondary: #8A96B0;
    --text-muted: #5A6580;
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 16px 60px rgba(0, 210, 180, 0.08);
    --shadow-glow: 0 0 60px rgba(0, 210, 180, 0.15);
    --radius: 20px;
    --radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Canvas Background --- */
#string-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Floating Glow Orbs --- */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    transition: transform 0.4s ease-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 180, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 14s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 210, 180, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- Main Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Logo --- */
.logo-wrapper {
    margin-bottom: 12px;
    animation: logoEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.7) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.logo {
    width: 580px;
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 8px 40px rgba(0, 210, 180, 0.15));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 16px;
}

.logo:hover {
    transform: scale(1.04) rotate(-1deg);
}

/* --- Tagline --- */
.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.06em;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 210, 180, 0.2);
}

/* --- Coming Soon Badge --- */
.coming-soon-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 52px;
    margin-bottom: 56px;
    background: linear-gradient(135deg, rgba(0, 210, 180, 0.12) 0%, rgba(201, 168, 76, 0.08) 100%);
    border: 1px solid rgba(0, 210, 180, 0.15);
    border-radius: 60px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s 0.5s forwards;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.badge-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 210, 180, 0.2),
        transparent
    );
    animation: shimmer 3.5s infinite;
}

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

/* --- Sport Category Cards --- */
.sport-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 56px;
}

.sport-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}

.sport-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 210, 180, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sport-card:hover .card-glow {
    opacity: 1;
}

.sport-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sport-card:nth-child(1).visible { transition-delay: 0s; }
.sport-card:nth-child(2).visible { transition-delay: 0.1s; }
.sport-card:nth-child(3).visible { transition-delay: 0.2s; }

.sport-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    border-color: rgba(0, 210, 180, 0.2);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    line-height: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 400;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-dim);
    background: rgba(0, 210, 180, 0.06);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(0, 210, 180, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(0, 210, 180, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(0, 210, 180, 0); }
}

/* --- StringLab CTA Banner --- */
.stringlab-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(6, 214, 160, 0.25);
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(6, 214, 160, 0.1);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s 0.5s forwards;
}

.stringlab-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(6, 214, 160, 0.2);
    border-color: rgba(6, 214, 160, 0.4);
}

.cta-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06d6a0;
    flex-shrink: 0;
    animation: ctaPulseGlow 2s ease-in-out infinite;
}

@keyframes ctaPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

.cta-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.cta-text small {
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 500;
}

/* --- Live Card Variant --- */
.sport-card-live {
    text-decoration: none;
    cursor: pointer;
    border-color: rgba(6, 214, 160, 0.2);
}

.sport-card-live:hover {
    border-color: rgba(6, 214, 160, 0.4);
    box-shadow: 0 16px 60px rgba(6, 214, 160, 0.15);
}

.card-glow-live {
    background: radial-gradient(circle at center, rgba(6, 214, 160, 0.08) 0%, transparent 60%) !important;
    opacity: 0.5 !important;
}

.card-status-live {
    color: #06d6a0 !important;
    background: rgba(6, 214, 160, 0.1) !important;
    border-color: rgba(6, 214, 160, 0.2) !important;
}

.status-dot-live {
    background: #06d6a0 !important;
    box-shadow: 0 0 8px rgba(6, 214, 160, 0.6);
}

/* --- Features Section --- */
.features-section {
    width: 100%;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.7s forwards;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(20px);
}

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

.feature:hover {
    border-color: rgba(0, 210, 180, 0.15);
    box-shadow: 0 4px 24px rgba(0, 210, 180, 0.06);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 200px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.divider span:first-child,
.divider span:last-child {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-dim), transparent);
    opacity: 0.3;
}

.divider-icon {
    font-size: 1.1rem;
    opacity: 0.5;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: auto;
    opacity: 0;
    animation: fadeInUp 0.8s 1.2s forwards;
}

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

.footer-tagline {
    margin-top: 6px;
    font-weight: 600;
    color: var(--teal-dim) !important;
    letter-spacing: 0.1em;
    font-size: 0.88rem !important;
}

/* --- Shared Animations --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .container {
        padding: 36px 16px 28px;
    }

    .logo {
        width: 320px;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .coming-soon-badge {
        padding: 14px 32px;
    }

    .badge-text {
        font-size: 1.05rem;
    }

    .sport-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sport-card {
        padding: 28px 20px 24px;
    }

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

    .section-heading {
        font-size: 1.35rem;
    }

    .stringlab-cta {
        padding: 14px 24px;
        gap: 12px;
        border-radius: 16px;
    }

    .cta-text strong {
        font-size: 0.9rem;
    }

    .cta-text small {
        font-size: 0.72rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .logo {
        width: 460px;
    }

    .sport-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
