@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #050508;
    --bg-bento: #0d0d18;
    --bg-bento-hover: #121224;
    --border-bento: rgba(255, 255, 255, 0.05);
    --border-bento-hover: rgba(255, 255, 255, 0.12);
    
    --primary: #a200ff;
    --primary-glow: rgba(162, 0, 255, 0.35);
    --secondary: #ff007f;
    --secondary-glow: rgba(255, 0, 127, 0.35);
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #8e94b5;
    
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-dark: linear-gradient(180deg, #0a0a14 0%, #050508 100%);
    --grad-gold: linear-gradient(135deg, #ffd700, #ff8c00);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px; /* Framer curves */
    --shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(162, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 0, 127, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(162, 0, 255, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Prompt', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #8b9bb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-main);
    box-shadow: 0 8px 24px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(255, 0, 127, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-bento);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--grad-gold);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 8px 24px -5px var(--accent-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(255, 215, 0, 0.6);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.badge-glow {
    background: rgba(162, 0, 255, 0.1);
    border: 1px solid var(--primary);
    color: #c980ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(162, 0, 255, 0.2);
    display: inline-block;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.65);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-bento);
    transition: var(--transition);
}

.header.scrolled {
    background: #050508;
    padding: 5px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffd700, #ff007f, #a200ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 9px;
    border-radius: 6px;
    color: var(--text-main);
    -webkit-text-fill-color: initial;
    border: 1px solid var(--border-bento);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   Bento Grid Layout
   ========================================================================== */
.bento-section {
    padding: 120px 0 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-box {
    background-color: var(--bg-bento);
    border: 1px solid var(--border-bento);
    border-radius: var(--radius-lg); /* Beautiful Framer curves */
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.bento-box:hover {
    background-color: var(--bg-bento-hover);
    border-color: var(--border-bento-hover);
    transform: translateY(-4px);
}

/* Bento Box Column Assignments */
.box-hero {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box-wheel {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.box-rtp {
    grid-column: span 8;
}

.box-steps {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-seo {
    grid-column: span 12;
}

.box-faq {
    grid-column: span 12;
}

/* ==========================================================================
   Bento Component: Box 1 (Hero)
   ========================================================================== */
.box-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-top: 15px;
    margin-bottom: 20px;
}

.box-hero h1 span.gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.box-hero h1 span.neon {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
}

.box-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
}

.hero-stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 25px;
}

.hero-stat-box {
    display: flex;
    flex-direction: column;
}

.hero-stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* ==========================================================================
   Bento Component: Box 2 (Wheel Game)
   ========================================================================== */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.wheel-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #1a1a36;
    box-shadow: 
        0 0 25px var(--primary-glow),
        inset 0 0 15px var(--secondary-glow);
    z-index: 1;
    pointer-events: none;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 32px;
    background: var(--accent);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5));
}

.wheel-canvas-wrap {
    width: 94%;
    height: 94%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.15, 1);
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    background: #0d0d18;
}

.wheel-center-btn {
    position: absolute;
    width: 64px;
    height: 64px;
    background: var(--grad-primary);
    border-radius: 50%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
    border: 3px solid #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
}

.box-wheel h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.box-wheel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 290px;
}

/* ==========================================================================
   Bento Component: Box 3 (Live RTP Grid)
   ========================================================================== */
.box-rtp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.box-rtp-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.box-rtp-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rtp-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rtp-game-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-bento);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.rtp-game-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(162, 0, 255, 0.2);
}

.game-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #15162b;
    flex-shrink: 0;
}

.game-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-wrap {
    flex-grow: 1;
}

.game-detail-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-detail-rtp {
    font-size: 1.15rem;
    font-weight: 800;
}

.rtp-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.rtp-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ==========================================================================
   Bento Component: Box 4 (Steps to register)
   ========================================================================== */
.box-steps-title h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-bento);
    padding: 15px;
    border-radius: var(--radius-md);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.step-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Bento Component: Box 5 (SEO Article Content)
   ========================================================================== */
.seo-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.seo-content h2, .seo-content h3 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.3;
    margin: 40px 0 20px;
}

.seo-content h2 {
    font-size: 1.8rem;
    position: relative;
    padding-left: 15px;
}

.seo-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.seo-content h3 {
    font-size: 1.35rem;
}

.seo-content p {
    margin-bottom: 20px;
}

.seo-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.seo-content ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
}

.seo-content ul li::before {
    content: '✦';
    position: absolute;
    left: -15px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.seo-content strong {
    color: var(--text-main);
}

.seo-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.seo-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,215,0,0.5);
}

.seo-highlight-box {
    background: rgba(162, 0, 255, 0.03);
    border: 1px solid rgba(162, 0, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 30px 0;
}

.seo-highlight-box h3 {
    margin-top: 0;
    color: #cb6bff;
    font-weight: 800;
}

/* ==========================================================================
   Bento Component: Box 6 (FAQ)
   ========================================================================== */
.box-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.box-faq-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-bento);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255,255,255,0.02);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted);
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
}

/* ==========================================================================
   Spin Wheel Win Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0d0d18;
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-emoji {
    font-size: 4.5rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.modal-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.prize-result {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px dashed var(--border-bento);
}

/* Hot / Cold states for progress bar */
.rtp-hot {
    background: linear-gradient(90deg, #ff3c00, #ff007f);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.rtp-warm {
    background: linear-gradient(90deg, #ffa600, #ffea00);
    box-shadow: 0 0 10px rgba(255, 166, 0, 0.5);
}

.rtp-cool {
    background: linear-gradient(90deg, #00d2ff, #0055ff);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.val-hot { color: #ff007f; text-shadow: 0 0 10px rgba(255, 0, 127, 0.3); }
.val-warm { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.val-cool { color: #00d2ff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #030305;
    border-top: 1px solid var(--border-bento);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-bento);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-disclaimer {
    max-width: 100%;
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-md);
    background: rgba(255, 0, 0, 0.01);
    border: 1px solid rgba(255, 0, 0, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .box-hero h1 {
        font-size: 2.6rem;
    }
    
    .bento-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-box {
        grid-column: span 12 !important;
        padding: 30px 20px;
    }
    
    .wheel-container {
        max-width: 290px;
    }
    
    .rtp-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #050508;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid var(--border-bento);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-btns {
        display: none;
    }
    
    .nav-menu .nav-btns-mobile {
        display: flex;
        flex-direction: column;
        width: 80%;
        gap: 15px;
        margin-top: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .box-hero h1 {
        font-size: 2.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
