/* ==========================================================================
   Wingo Prediction — High Performance Modern Cyberpunk Design System
   ========================================================================== */

:root {
    --bg-main: #0c1220;
    --bg-surface: #141d30;
    --bg-surface-elevated: #1e2942;
    
    --neon-green: #00ff88;
    --neon-green-glow: rgba(0, 255, 136, 0.45);
    --neon-green-dim: rgba(0, 255, 136, 0.12);
    
    --neon-purple: #9333ea;
    --neon-purple-bright: #a855f7;
    --neon-purple-glow: rgba(168, 85, 247, 0.65);
    
    --beam-white: #ffffff;
    --beam-white-glow: rgba(255, 255, 255, 0.95);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8494ab;
    --text-hud: #a78bfa;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace, sans-serif;
    
    --radius-card: 18px;
    --radius-pill: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    min-height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-heading);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 16px 12px;
    position: relative;
    background: radial-gradient(circle at 50% 12%, #1e1b4b 0%, #111827 50%, #0d121f 100%);
}

/* Cyber Ambient Lighting & Background Grid */
.ambient-glow {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.glow-top {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 75%);
}

.glow-bottom {
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    height: 360px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, rgba(0, 255, 136, 0.1) 50%, transparent 80%);
}

.cyber-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Main Stage / Poster Container */
.landing-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(19, 27, 44, 0.88);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(168, 85, 247, 0.16);
    padding: 24px 20px 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   TOP HERO: Cyberpunk Avatar & Floating HUD
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    min-height: 250px;
}

.avatar-container {
    position: relative;
    width: 210px;
    height: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
}

.hero-avatar.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.75));
    mask-image: none;
    -webkit-mask-image: none;
    animation: avatarFloat 6s ease-in-out infinite;
}

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

/* Neon Portal Halo Rings (Royal Purple / Violet) */
.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 214px;
    height: 214px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.85);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.7),
        inset 0 0 15px rgba(147, 51, 234, 0.45);
    z-index: 1;
    animation: ringPulse 4s ease-in-out infinite alternate;
}

.ring-secondary {
    width: 228px;
    height: 228px;
    border: 1px dashed rgba(192, 132, 252, 0.45);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    animation: spinRing 24s linear infinite;
}

@keyframes ringPulse {
    0% { transform: translateX(-50%) scale(0.98); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1.03); opacity: 1; }
}

@keyframes spinRing {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Cyberpunk HUD Brackets (Top Corners) */
.hud-badge {
    position: absolute;
    top: 4px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-hud);
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    z-index: 3;
    opacity: 0.85;
    pointer-events: none;
}

.hud-left {
    left: 12px;
    top: 14px;
    text-align: left;
}

.hud-right {
    right: 12px;
    top: 14px;
    text-align: right;
}

.hud-bracket {
    font-size: 11px;
    color: var(--neon-green);
    margin-bottom: 2px;
}

.hud-bracket-bottom {
    font-size: 11px;
    color: var(--neon-green);
    margin-top: 2px;
}

.accent-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.accent-dot .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 1px;
    box-shadow: 0 0 4px var(--neon-green);
}

/* Secondary Floating HUD Labels */
.hud-sub {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(163, 194, 181, 0.6);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 3;
    pointer-events: none;
    bottom: 25px;
}

.hud-sub-left {
    left: 4px;
}

.hud-sub-right {
    right: 4px;
    text-align: right;
}

/* ==========================================================================
   TITLE SECTION: Wingo Prediction
   ========================================================================== */

.title-section {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 22px;
    z-index: 3;
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.title-white {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.title-green {
    color: var(--neon-green);
    text-shadow: 
        0 0 16px rgba(0, 255, 136, 0.65),
        0 0 32px rgba(0, 255, 136, 0.35);
}

.sub-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.8px;
    color: #e2fbf0;
    opacity: 0.95;
    text-transform: uppercase;
}

/* ==========================================================================
   3 CLOCKWISE BEAM FEATURE BOXES
   ========================================================================== */

.feature-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    z-index: 3;
}

/* Individual Card Container */
.beam-box {
    position: relative;
    border-radius: var(--radius-card);
    padding: 2px; /* thickness of the border where beam is visible */
    overflow: hidden;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 10px rgba(0, 255, 136, 0.05);
    transition: var(--transition-smooth);
    cursor: default;
}

.beam-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 255, 136, 0.25);
}

/* Clockwise White Beam Layer */
.beam-wrapper {
    position: absolute;
    inset: -120%;
    margin: auto;
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 1;
}

.beam-spinner {
    width: 100%;
    height: 100%;
    /* Clockwise conic gradient ending in pure white beam with trailing glow */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 260deg,
        rgba(255, 255, 255, 0.08) 290deg,
        rgba(255, 255, 255, 0.35) 325deg,
        rgba(255, 255, 255, 0.85) 350deg,
        #ffffff 360deg
    );
    animation: rotateBeamClockwise 2.8s linear infinite;
    filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Stagger beam start offsets so they look dynamic together */
#box-free-codes .beam-spinner {
    animation-delay: 0s;
}

#box-instant .beam-spinner {
    animation-delay: -0.93s;
}

#box-safe-secure .beam-spinner {
    animation-delay: -1.86s;
}

@keyframes rotateBeamClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Inner Card Content */
.beam-box-content {
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at 50% 20%, #1a253c 0%, #111a2c 100%);
    border-radius: calc(var(--radius-card) - 2px);
    padding: 18px 8px 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 122px;
}

/* Feature Icon Badges (Emerald Rounded Squares) */
.icon-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.22) 0%, rgba(0, 255, 136, 0.08) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
    color: var(--neon-green);
    box-shadow: 
        0 0 12px rgba(0, 255, 136, 0.2),
        inset 0 0 8px rgba(0, 255, 136, 0.12);
    transition: var(--transition-smooth);
}

.beam-box:hover .icon-badge {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35) 0%, rgba(0, 255, 136, 0.15) 100%);
    box-shadow: 
        0 0 18px rgba(0, 255, 136, 0.4),
        inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.6));
}

.box-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.box-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.85;
    white-space: nowrap;
}

/* ==========================================================================
   TAGLINE ROW: TRADE • PLAY • WIN
   ========================================================================== */

.tagline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(203, 213, 225, 0.85);
    z-index: 3;
}

.tag-line-dash {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}

.tag-word {
    color: #cbd5e1;
}

.tag-dot {
    color: var(--neon-purple-bright);
    font-size: 10px;
}

/* ==========================================================================
   CTA BUTTON: START BOT (Vibrant Electric Purple / Violet)
   ========================================================================== */

.cta-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    z-index: 3;
}

.btn-start-bot {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
    box-shadow: 
        0 6px 28px rgba(147, 51, 234, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        inset 0 -2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    overflow: visible;
    transition: var(--transition-smooth);
}

.btn-start-bot:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #d946ef 100%);
    box-shadow: 
        0 10px 38px rgba(168, 85, 247, 0.8),
        0 0 30px rgba(192, 132, 252, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.btn-start-bot:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.45);
}

.btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.telegram-icon-circle {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.tg-svg {
    width: 19px;
    height: 19px;
    color: #7c3aed;
    margin-right: 1px;
}

.btn-start-bot:hover .telegram-icon-circle {
    transform: scale(1.08) rotate(-6deg);
}

.btn-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-arrow {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.btn-start-bot:hover .btn-arrow {
    transform: translateX(4px);
}

/* Pulsing Aura Behind Button */
.btn-glow-aura {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-pill);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.75) 0%, transparent 75%);
    filter: blur(12px);
    z-index: 0;
    opacity: 0.75;
    animation: pulseAura 3s ease-in-out infinite alternate;
}

@keyframes pulseAura {
    0% { opacity: 0.55; transform: scale(0.98); }
    100% { opacity: 0.9; transform: scale(1.03); }
}

.cta-hint {
    margin-top: 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.75;
}

/* ==========================================================================
   LIVE STATUS BADGES
   ========================================================================== */

.live-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 18px;
    z-index: 3;
}

.status-pill {
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-radius: var(--radius-pill);
    padding: 5px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-secondary);
}

.status-dot-pulsing {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-green);
    animation: statusPulse 1.8s ease-in-out infinite;
}

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

.countdown-pill strong {
    color: var(--neon-green);
    font-weight: 700;
}

/* ==========================================================================
   FOOTER PEDESTAL
   ========================================================================== */

.footer-pedestal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
    z-index: 3;
}

.pedestal-line {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
    margin-bottom: 9px;
}

.pedestal-text {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(163, 194, 181, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ped-dot {
    color: var(--neon-green);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Smaller Screens)
   ========================================================================== */

@media (max-width: 420px) {
    .landing-stage {
        padding: 18px 14px 22px 14px;
        border-radius: 22px;
    }

    .main-title {
        font-size: 32px;
    }

    .sub-title {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .feature-boxes-grid {
        gap: 8px;
    }

    .beam-box-content {
        padding: 14px 4px 12px 4px;
        min-height: 112px;
    }

    .icon-badge {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
    }

    .feature-icon {
        width: 19px;
        height: 19px;
    }

    .box-title {
        font-size: 12px;
    }

    .box-subtitle {
        font-size: 9px;
    }

    .btn-start-bot {
        height: 54px;
    }

    .btn-text {
        font-size: 17px;
    }

    .live-status-bar {
        gap: 6px;
    }

    .status-pill {
        font-size: 9.5px;
        padding: 4px 9px;
    }
}
