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

:root {
    --bg-primary: #0e0e0e;
    --bg-secondary: #1f1f1f;
    --bg-card: #000000;
    --bg-card-hover: #22223a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --accent-red: #e63946;
    --accent-green: #2dc653;
    --accent-gold: #d4a843;
    --accent-red-glow: rgba(230, 57, 70, 0.3);
    --accent-green-glow: rgba(45, 198, 83, 0.3);
    --accent-gold-glow: rgba(212, 168, 67, 0.3);
    --accent-white-glow: rgba(255, 255, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(11, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-custom .navbar-brand img {
    height: 36px;
    width: auto;
}

.navbar-custom .navbar-brand span {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-green), #fff, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-social {
    display: flex;
    gap: 0.75rem;
}

.nav-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-social a:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 1.5rem 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 50%, var(--accent-green-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, var(--accent-white-glow) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 50%, var(--accent-red-glow) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-3%, 3%) scale(1.05);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 160px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: floatUp 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}

.hero-title-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-characters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-characters img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.hero-characters img:hover {
    transform: scale(1.15) rotate(-5deg);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-red-glow);
    color: #fff;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-green), #1fa342);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-green-glow);
}

.btn-buy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px var(--accent-green-glow);
    color: #fff;
}

.btn-buy svg {
    width: 20px;
    height: 20px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-sm {
    padding: 60px 1.5rem;
}

.section-full {
    padding: 100px 1.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-subtitle.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.9rem;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* ===== PRODUCT CARDS (Home) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: inherit;
}

.product-card-img {
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.product-card-img img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.product-card:hover .card-link {
    gap: 0.7rem;
}

/* ===== PRODUCT PAGE HERO ===== */
.product-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 1.5rem 60px;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, var(--accent-red-glow) 0%, transparent 60%);
    z-index: 0;
}

.product-hero.green::before {
    background: radial-gradient(ellipse at 70% 50%, var(--accent-green-glow) 0%, transparent 60%);
}

.product-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.product-hero-text .tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-image img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
    animation: floatUp 3s ease-in-out infinite alternate;
}

/* ===== HOW TO PLAY ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.gallery-placeholder svg {
    display: block;
    margin: 0 auto 0.5rem;
    opacity: 0.3;
}

/* ===== LEGAL / INFO ===== */
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 800px;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

/* ===== CTA / BUY SECTION ===== */
.cta-section {
    text-align: center;
    padding: 80px 1.5rem;
    position: relative;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold), var(--accent-red));
}

.cta-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ===== FEATURES ROW ===== */
.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== DIVIDER ===== */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-divider hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ===== FOOTER ===== */
.footer-custom {
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 500;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-logo {
        width: 120px;
    }

    .hero-characters img {
        width: 55px;
        height: 55px;
    }

    .product-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-hero-image {
        order: -1;
    }

    .product-hero-image img {
        max-width: 200px;
    }

    .product-hero-text .hero-buttons {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .legal-content {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title-img {
        max-width: 280px;
    }

    .features-row {
        grid-template-columns: 1fr 1fr;
    }
}