/* ═══════════════════════════════════════════════════════════════
   index.css  –  Bingo Surf Homepage (self-contained)
═══════════════════════════════════════════════════════════════ */
:root {
    --gen-accent:     #00C9FF;
    --gen-accent2:    #92FE9D;
    --gen-bg:         #0f1623;
    --gen-surface:    #1a202c;
    --gen-surface2:   #242d3d;
    --gen-border:     #2d3748;
    --gen-text:       #e2e8f0;
    --gen-text-muted: #718096;
    --gen-radius:     12px;
    --gen-shadow:     0 4px 24px rgba(0,0,0,0.4);
}

/* ── BASE ── */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.home-page {
    background-color: var(--gen-bg);
    color: var(--gen-text);
    font-family: Inter, sans-serif;
    min-height: 100vh;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.sr-only:focus {
    position: static;
    width: auto; height: auto;
    padding: 8px 16px; margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--gen-accent);
    color: #000;
    font-weight: 700;
    z-index: 9999;
    border-radius: 4px;
}

/* ── PRINT UTILITIES ── */
@media print {
    .no-print { display: none !important; }
}

/* ── TOP PROMO BAR ── */
.top-promo-bar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #101c30, #1a2744, #101c30);
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,201,255,0.3);
    position: relative;
    z-index: 10;
}
.top-promo-bar a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
    flex-wrap: wrap;
}
.top-promo-bar a:hover { color: var(--gen-accent); }
.top-promo-bar i { color: var(--gen-accent); font-size: 1.1rem; flex-shrink: 0; }

/* ── NAV ── */
.top-nav {
    background: var(--gen-surface);
    border-bottom: 1px solid var(--gen-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.nav-logo {
    font-family: Orbitron, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo i { color: var(--gen-accent); flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a {
    color: var(--gen-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-pro-btn {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border: 1px solid #f59e0b;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-pro-btn:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245,158,11,0.3);
}

/* ── HERO ── */
.home-hero {
    background: linear-gradient(135deg, #0f1623 0%, #1a2744 50%, #0f2033 100%);
    padding: 100px 20px 90px;
    text-align: center;
    border-bottom: 1px solid var(--gen-border);
    position: relative;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,201,255,0.13) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,201,255,0.1);
    border: 1px solid rgba(0,201,255,0.3);
    color: var(--gen-accent);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
    max-width: 100%;
    white-space: nowrap;
}
.hero-content h1 {
    font-family: Orbitron, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.15;
}
.hero-content > p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #a0aec0;
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 580px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
    background: linear-gradient(135deg, var(--gen-accent), #0099cc);
    color: #000;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,201,255,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,201,255,0.45);
}
.btn-primary i { flex-shrink: 0; }

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--gen-border);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--gen-accent); color: var(--gen-accent); }
.btn-secondary i { flex-shrink: 0; }

/* ── TOOLS SECTION ── */
.tools-section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--gen-border);
}
.tools-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.tools-heading-group {
    text-align: center;
    margin-bottom: 48px;
}
.tools-heading-group h2 {
    font-family: Orbitron, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #fff;
    margin: 0 0 12px;
}
.tools-subhead {
    color: var(--gen-text-muted);
    font-size: 1.05rem;
    margin: 0;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.tool-card {
    background: var(--gen-surface);
    border: 1px solid var(--gen-border);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--gen-text);
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,201,255,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}
.tool-card:hover { border-color: var(--gen-accent); transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.5); }
.tool-card:hover::before { opacity: 1; }
.tool-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(0,201,255,0.08);
    border: 1px solid rgba(0,201,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.tool-icon { font-size: 1.6rem; color: var(--gen-accent); }
.tool-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: #fff; font-weight: 700; }
.tool-card p  { margin: 0 0 20px; color: var(--gen-text-muted); font-size: 0.92rem; line-height: 1.65; flex: 1; }
.tool-card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gen-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s;
}
.tool-card:hover .tool-card-cta { gap: 10px; }
.tool-card-cta i { font-size: 0.75rem; }

/* ── APP SPOTLIGHT ── */
.app-spotlight {
    background: var(--gen-surface);
    border-top: 1px solid var(--gen-border);
    padding: 100px 20px;
}
.app-spotlight-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-width: 0;
}
.app-text { min-width: 0; }
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(146,254,157,0.08);
    border: 1px solid rgba(146,254,157,0.25);
    color: var(--gen-accent2);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.app-text h2 {
    font-family: Orbitron, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}
.app-text > p {
    color: #a0aec0;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 28px;
}
.app-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.app-features li {
    color: var(--gen-text);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
}
.app-features i { color: #f59e0b; margin-top: 3px; font-size: 1.1rem; flex-shrink: 0; }
.app-features .feature-text { flex: 1; line-height: 1.55; font-size: 1rem; }
.app-features .feature-text strong { color: #fff; font-weight: 700; }

.app-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.app-rating-badge .stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.app-rating-badge .rating-text { color: var(--gen-text-muted); font-size: 0.82rem; font-weight: 600; }

.play-badge-img {
    height: 65px;
    width: auto;
    display: block;
    transition: transform 0.2s;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.play-badge-img:hover { transform: translateY(-3px) scale(1.02); }

.app-image { min-width: 0; }
.app-image picture { display: block; }
.app-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    display: block;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--gen-bg);
    border-top: 1px solid var(--gen-border);
    padding: 64px 20px 0;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gen-border);
    min-width: 0;
}
.footer-brand { min-width: 0; }
.footer-logo {
    font-family: Orbitron, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-logo i { color: var(--gen-accent); flex-shrink: 0; }
.footer-tagline {
    color: var(--gen-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 280px;
}
.footer-badge {
    height: 46px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}
.footer-badge:hover { transform: translateY(-2px); }

.footer-col { min-width: 0; }
.footer-col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gen-text-muted);
    margin: 0 0 16px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    color: var(--gen-text-muted);
    font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom i { color: #fc8181; }

/* ── MOBILE FAB ── */
.mobile-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulseFab 2s infinite;
    border-radius: 8px;
    background: transparent;
}
.mobile-fab img {
    height: 50px;
    width: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
@keyframes pulseFab {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.8); }
    70%  { box-shadow: 0 0 0 20px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ── FOCUS VISIBLE ── */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.tool-card:focus-visible,
.nav-pro-btn:focus-visible,
.nav-links a:focus-visible,
.nav-logo:focus-visible,
.footer-logo:focus-visible,
.footer-col ul li a:focus-visible,
.footer-badge:focus-visible,
.play-badge-img:focus-visible,
.mobile-fab:focus-visible,
.top-promo-bar a:focus-visible {
    outline: 2px solid var(--gen-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   BREAKPOINTS
═══════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
    .nav-links  { display: none !important; }
    .mobile-fab { display: flex !important; }

    .home-hero { padding: 64px 20px 56px; }

    .app-spotlight-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .app-features li  { justify-content: flex-start; text-align: left; }
    .app-rating-badge { margin: 0 auto 24px; }
    .play-badge-img   { margin: 0 auto; }
    .app-image        { order: -1; max-width: 480px; margin: 0 auto; }

    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* ── MOBILE PORTRAIT (≤ 600px) ── */
@media (max-width: 600px) {
    .home-hero { padding: 48px 16px 40px; }

    .hero-content { padding: 0; }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero-content > p { font-size: 0.95rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .tools-section { padding: 48px 16px; }
    .tools-grid    { grid-template-columns: 1fr; }
    .tool-card     { padding: 24px 20px; }

    .app-spotlight { padding: 48px 16px; }
    .app-text h2   { font-size: 1.5rem; }

    .site-footer       { padding: 40px 16px 0; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
    .footer-brand      { grid-column: auto; }
}

/* ── VERY SMALL PHONES (≤ 380px) ── */
@media (max-width: 380px) {
    .hero-content h1 { font-size: 1.4rem; }
    .hero-badge      { font-size: 0.68rem; letter-spacing: 0.03em; }
    .tool-card       { padding: 20px 16px; }
    .btn-primary,
    .btn-secondary   { font-size: 0.9rem; padding: 12px 16px; }
}

/* ── DESKTOP: hide FAB ── */
@media (min-width: 901px) {
    .mobile-fab { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration:  0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .btn-primary:hover    { transform: none; }
    .btn-secondary:hover  { transform: none; }
    .tool-card:hover      { transform: none; }
    .nav-pro-btn:hover    { transform: none; }
    .play-badge-img:hover { transform: none; }
    .footer-badge:hover   { transform: none; }
    .mobile-fab           { animation: none; }
}