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

:root {
    --primary-accent: #ff2d6f;
    --dark-accent: #c71585;
    --light-accent: #ff5fa2;
    --primary-gradient: linear-gradient(135deg, #ff2d6f 0%, #c71585 55%, #8a2be2 100%);
    --accent-glow: rgba(255, 45, 111, 0.28);
    --border-color: rgba(255, 45, 111, 0.18);

    --secondary-purple: #8A2BE2;
    --secondary-purple-light: #DA70D6;

    --bg-dark: #07050d;
    --bg-darker: #030208;
    --bg-card: rgba(17, 11, 27, 0.72);
    --bg-card-strong: rgba(22, 14, 35, 0.88);

    --text-primary: #ffffff;
    --text-secondary: #b8b3c7;
    --text-soft: #8b8698;

    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.45);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 45, 111, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(138, 43, 226, 0.12), transparent 30%),
        linear-gradient(180deg, #08050f 0%, #0a0613 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

a {
    color: inherit;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 5, 13, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

header .logo img {
    display: block;
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.35rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.96rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0.15rem;
    line-height: 1.1;
}

.nav-menu a:not(.btn-gradient):not(.btn-outline)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn-gradient):not(.btn-outline):hover::after,
.nav-menu a:not(.btn-gradient):not(.btn-outline).active::after {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

header .nav-menu .btn-gradient {
    padding: 0.8rem 1.35rem;
    font-size: 0.92rem;
}

.btn-gradient {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 45, 111, 0.40);
}

.btn-outline {
    padding: 0.9rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 45, 111, 0.45);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 5% 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg video,
.hero-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 5, 13, 0.45) 0%, rgba(7, 5, 13, 0.82) 100%),
        radial-gradient(circle at 20% 10%, rgba(255, 45, 111, 0.14), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(138, 43, 226, 0.14), transparent 30%);
    z-index: -1;
}

.hero-clean-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 1.08rem;
    border: 1px solid rgba(255, 45, 111, 0.24);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    color: var(--text-primary);
    backdrop-filter: blur(14px);
    margin-bottom: 1.4rem;
    font-size: 0.94rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.hero-badge i {
    color: var(--light-accent);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 1.02;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

.hero-mini-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.1rem;
}

.hero-stat {
    min-width: 120px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 45, 111, 0.15);
    backdrop-filter: blur(14px);
}

.hero-stat strong {
    display: block;
    font-size: 1.28rem;
    color: white;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.hero-banner-clean {
    padding: 0 5% 3rem;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.hero-banner-card {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 45, 111, 0.16);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-lg);
}

.hero-banner-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.section {
    padding: 5rem 5%;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 45, 111, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(255, 45, 111, 0.25);
}

.icon-box svg,
.icon-box i {
    color: #fff;
    font-size: 1.35rem;
}

.card-title {
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.9;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stats-counter {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content,
.lore-article,
.rule-article {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.legal-content h2,
.lore-article h2 {
    color: var(--primary-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-content h3,
.lore-article h3,
.rule-article h3 {
    color: var(--light-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content p,
.legal-content li,
.lore-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 2rem;
}

.rule-article p {
    color: var(--text-secondary);
}

.rule-article ol {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.rule-article ol > li {
    counter-increment: item;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.85;
}

.rule-article ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: 800;
    font-size: 1.05rem;
}

.tab-btn {
    padding: 0.85rem 1.7rem;
    border: 1px solid rgba(255, 45, 111, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 45, 111, 0.08);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 45, 111, 0.25);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.45s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-copyright-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

footer {
    background: rgba(3, 2, 8, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    text-align: center;
    backdrop-filter: blur(18px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 22px rgba(255, 45, 111, 0.22);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.animated-bg span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite;
    border-radius: 50%;
}

.animated-bg span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.animated-bg span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.animated-bg span:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.animated-bg span:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 16s; }
.animated-bg span:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 19s; }
.animated-bg span:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 21s; }
.animated-bg span:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 17s; }
.animated-bg span:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 23s; }
.animated-bg span:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 20s; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-banner {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background: rgba(7, 5, 13, 0.97);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        gap: 1.5rem;
        backdrop-filter: blur(16px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .nav-menu .btn-gradient {
        width: 80%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 125px 5% 55px;
    }

    .hero-banner-card img {
        max-height: 340px;
    }
}

@media (max-width: 700px) {
    nav {
        padding: 0.4rem 5%;
    }

    .hero-title {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        border-radius: 18px;
        padding: 0.8rem 1rem;
        font-size: 0.88rem;
    }

    .hero-stat {
        min-width: 100px;
        padding: 0.9rem 1rem;
    }

    .section {
        padding: 4rem 5%;
    }

    .card,
    .rule-article,
    .legal-content,
    .lore-article {
        padding: 1.4rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}