/* ============================================
   Come Game — Light Theme Sports Platform
   ============================================ */

/* ===== RESET ===== */
*, *::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: #ffffff;
    color: #334155;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; image-rendering: -webkit-optimize-contrast; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== UTILITIES ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.text-gold { color: #f59e0b; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f1729;
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.25);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.btn-outline {
    background: transparent;
    color: #0f1729;
    border: 1.5px solid #cbd5e1;
}
.btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.btn-ghost {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.btn-ghost:hover { color: #f59e0b; background: #f8fafc; border-color: #cbd5e1; }
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== TOP BAR ===== */
.top-bar {
    background: #0f1729;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 14px;
}
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-bar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #94a3b8;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    transition: color 0.2s;
    white-space: nowrap;
}
.social-link::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}
.social-link[href*="facebook"]::before { content: 'f'; background: #1877f2; }
.social-link[href*="instagram"]::before { content: 'IG'; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); font-size: 7px; }
.social-link[href*="youtube"]::before { content: '▶'; background: #ff0000; font-size: 8px; }
.social-link[href*="telegram"]::before { content: 'T'; background: #229ed9; }
.social-link:hover { color: #fbbf24; }
.top-bar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.top-bar-actions .btn-top { padding: 13px 24px; border-radius: 8px; font-size: 15px; font-weight: 700; }

/* ===== SECTION COMPONENTS ===== */

/* ===== SECTION COMPONENTS ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #0f1729;
    line-height: 1.12;
}
.section-desc {
    color: #64748b;
    font-size: 16px;
    margin-top: 10px;
    max-width: 520px;
    line-height: 1.7;
}
.section-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}
.section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 44px;
}
.section-row.center { text-align: center; justify-content: center; }
.section-row.center > div { text-align: center; }
.section-row.center .section-desc { margin: 10px auto 0; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s, box-shadow 0.3s;
}
.has-top-bar { top: 52px; }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    gap: 16px;
    position: relative;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f1729;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}
.navbar-brand img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
}
.navbar-brand strong { font-weight: 800; color: #0f1729; }
.brand-text {
    display: block;
    line-height: 1.1;
}
.brand-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #0f1729;
}
.brand-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 4px;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 38px;
    flex-shrink: 0;
}
.nav-link {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-link:hover { color: #f59e0b; }
.navbar-actions { display: none !important; }
.hamburger {
    display: none !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f1729;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 100px 0 50px;
    background: #ffffff;
    overflow: hidden;
}
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}
.hero-gallery-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f1729;
    letter-spacing: 3px;
    text-align: center;
}
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-main-img,
.hero-side-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}
.hero-main-img:hover,
.hero-side-img:hover { transform: translateY(-8px); }

/* ===== TICKER ===== */
.ticker {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 14px 0;
}
.ticker-track {
    display: flex;
    gap: 56px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.ticker-track span {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: #f8fafc; }
.about-grid {
    display: flex;
    align-items: center;
    gap: 64px;
}
.about-img {
    flex: 1;
    position: relative;
}
.about-img img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.about-badge {
    position: absolute;
    bottom: -14px; right: -14px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}
.about-text { flex: 1; }
.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}
.about-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-feat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.about-feat h4 { font-size: 15px; font-weight: 700; color: #0f1729; margin-bottom: 2px; }
.about-feat p { font-size: 14px; color: #64748b; }

/* ===== MATCHES ===== */
.matches { padding: 80px 0; background: #ffffff; }
.match-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 18px;
}
.match-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.match-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.match-card-lg img { height: 310px; }
.match-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.match-card:hover img { transform: scale(1.06); }
.match-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.98) 60%);
}
.match-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.match-live { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.match-hot { background: rgba(251, 191, 36, 0.2); color: #b45309; }
.match-new { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.match-overlay h4 { font-size: 16px; font-weight: 700; color: #0f1729; }
.match-overlay p { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ===== HOW TO PLAY ===== */
.howto { padding: 100px 0; background: #f8fafc; }
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 14px;
}
.step-num {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}
.step h4 { font-size: 16px; font-weight: 700; color: #0f1729; margin-bottom: 8px; }
.step p { font-size: 14px; color: #64748b; }
.step-line {
    width: 36px;
    height: 2px;
    background: #e2e8f0;
    margin-top: 22px;
    flex-shrink: 0;
}

/* ===== PROMO ===== */
.promo { padding: 60px 0; background: #ffffff; }
.promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 52px 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}
.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}
.promo-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    margin-bottom: 16px;
}
.promo-content h3 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #0f1729;
    margin-bottom: 10px;
}
.promo-content p { margin-bottom: 28px; max-width: 420px; color: #64748b; }
.promo-emoji {
    font-size: 88px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: #ffffff; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    padding: 36px 32px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    background: #ffffff;
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 38px;
    margin-bottom: 20px;
}
.feature-card h4 { font-size: 16px; font-weight: 700; color: #0f1729; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ===== WINNERS ===== */
.winners { padding: 80px 0; background: #f8fafc; }
.winners-showcase {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.winners-showcase img { width: 100%; display: block; }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: #ffffff; }
.faq-grid {
    display: flex;
    gap: 72px;
    align-items: flex-start;
}
.faq-sidebar { flex: 0 0 340px; }
.faq-sidebar h2 { margin-bottom: 12px; }
.faq-list { flex: 1; }
.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.25s;
}
.faq-item:hover { border-color: rgba(245, 158, 11, 0.3); }
.faq-item[open] { border-color: rgba(245, 158, 11, 0.35); background: #fffbeb; }
.faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #0f1729;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.faq-item summary:hover { color: #f59e0b; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #94a3b8;
    transition: 0.25s;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: #f59e0b; }
.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.75;
}

/* ===== CTA ===== */
.cta { padding: 80px 0; background: #f8fafc; }
.cta-box {
    text-align: center;
    padding: 72px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
}
.cta-box h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: #0f1729;
    margin-bottom: 14px;
    position: relative;
}
.cta-box p {
    max-width: 500px;
    margin: 0 auto 36px;
    color: #64748b;
    position: relative;
}
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

/* ===== BLOG ===== */
.blog { padding: 80px 0; background: #ffffff; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.blog-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.blog-card:hover img { transform: scale(1.04); }
.blog-body { padding: 24px; }
.blog-body time { font-size: 12px; color: #64748b; font-weight: 600; }
.blog-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f1729;
    margin: 10px 0 8px;
    line-height: 1.4;
}
.blog-body p { font-size: 14px; color: #64748b; }

/* ===== FOOTER ===== */
.footer {
    padding: 68px 0 0;
    background: #0f1729;
    border-top: 1px solid #1e293b;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .navbar-brand { margin-bottom: 14px; color: #f1f5f9; font-size: 20px; letter-spacing: 1px; }
.footer-brand .navbar-brand .footer-logo-strong { color: #fbbf24; }
.footer-brand p { font-size: 14px; color: #94a3b8; max-width: 280px; }
.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fbbf24; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 22px 0;
    text-align: center;
}
.footer-bottom p { font-size: 13px; color: #64748b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero { padding: 120px 0 40px; }
    .hero-gallery-title { font-size: 32px; }
    .hero-main-img,
    .hero-side-img { max-width: 260px; }
    .about-grid { flex-direction: column; text-align: center; }
    .about-img { max-width: 420px; }
    .about-text .section-desc { margin-left: auto; margin-right: auto; }
    .match-grid { grid-template-columns: 1fr; }
    .steps { flex-wrap: wrap; justify-content: center; }
    .step-line { display: none; }
    .step { flex: 0 0 calc(33.33% - 16px); min-width: 160px; margin-bottom: 32px; }
    .faq-grid { flex-direction: column; }
    .faq-sidebar { flex: none; text-align: center; }
    .faq-sidebar .section-desc { margin: 10px auto 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .has-top-bar { top: 0; }
    .navbar-menu, .navbar-actions { display: none; }
    .hamburger { display: flex; }
    .navbar-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 76px; left: 0; right: 0;
        background: #ffffff;
        padding: 20px 28px;
        border-bottom: 1px solid #e2e8f0;
        gap: 0;
    }
    .navbar-menu.open .nav-link { padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
    .navbar-actions.open {
        display: flex;
        position: fixed;
        top: calc(76px + 155px);
        left: 0; right: 0;
        background: #ffffff;
        padding: 0 28px 22px;
        border-bottom: 1px solid #e2e8f0;
    }
    .hero { padding: 110px 0 30px; }
    .hero-gallery-title { font-size: 30px; }
    .hero-main-img,
    .hero-side-img { max-width: 220px; }
    .step { flex: 0 0 calc(50% - 12px); }
    .promo-card { flex-direction: column; text-align: center; padding: 40px 28px; }
    .promo-content p { margin-left: auto; margin-right: auto; }
    .promo-emoji { font-size: 60px; margin-top: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
    .wrap { padding: 0 18px; }
    .hero { padding: 100px 0 30px; }
    .hero-gallery-title { font-size: 26px; }
    .hero-main-img,
    .hero-side-img { max-width: 100%; }
    .step { flex: 0 0 100%; }
    .cta-box { padding: 48px 20px; }
}
