:root {
    --primary: #9b59b6;
    --primary-light: #bc8f8f;
    --secondary: #f1c40f;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
    --gradient-gold: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--glass-border);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6rem;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.glass-module {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1;
}

.glass-module:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    z-index: 10;
}

.module-icon {
    font-size: 2rem;
}

.module-text {
    font-weight: 700;
    font-size: 0.9rem;
}

.card-xidach {
    top: 0%;
    left: 0%;
    animation-delay: 0s;
}

.card-masoi {
    top: 5%;
    right: -5%;
    animation-delay: 2.2s;
}

.card-confession {
    top: 40%;
    left: 35%;
    animation-delay: 4.4s;
    z-index: 5;
}

.card-quiz {
    bottom: 20%;
    right: -2%;
    animation-delay: 1.1s;
}

.card-rank {
    bottom: -5%;
    left: 5%;
    animation-delay: 3.3s;
}

.relationship {
    bottom: 40%;
    left: -5%;
    animation-delay: 5.5s;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glassPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Fireworks Canvas */
#hero-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 0;
    opacity: 0.8;
}

/* Quiz Section */
.quiz-section {
    background-color: var(--darker);
}

.quiz-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: white;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quiz-opt {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.quiz-opt:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Leaderboard Section */
.leaderboard-bg {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab {
    padding: 0.6rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.tab.active {
    background: var(--gradient);
    border-color: transparent;
}

.leaderboard-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row .rank {
    width: 60px;
    font-weight: 700;
    font-size: 1.2rem;
}

.leaderboard-row .user {
    flex: 1;
    font-weight: 600;
}

.leaderboard-row .points {
    font-weight: 700;
    color: var(--secondary);
}

.top-1 {
    background: rgba(241, 196, 15, 0.05);
}

.top-1 .rank {
    font-size: 1.6rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.light-bg {
    background-color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    opacity: 0.7;
    transition: opacity 0.4s ease, width 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    width: 6px;
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Split Content */
.split-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.split-content.reverse {
    flex-direction: row-reverse;
}

.split-content .text-content {
    flex: 1;
}

.split-content .visual-content {
    flex: 1;
}

.split-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.check-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

/* Mockups */
.game-mockup {
    background: var(--darker);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: var(--glass);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.mockup-body {
    padding: 2.5rem;
}

.player {
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 1.1rem;
}

.social-circle {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border: 2px dashed var(--glass-border);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.item-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.item-2 {
    bottom: 20%;
    left: 0;
    transform: translate(-50%, 0);
}

.item-3 {
    bottom: 20%;
    right: 0;
    transform: translate(50%, 0);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .split-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .split-content.reverse {
        flex-direction: column;
    }

    .split-content .section-title {
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
        width: 100%;
        margin-top: 2rem;
        padding-left: 0;
    }

    .visual-container {
        max-width: 250px;
        height: 320px;
    }

    .glass-module {
        padding: 0.8rem 1rem;
        min-width: 100px;
        border-radius: 12px;
    }

    .module-icon {
        font-size: 1.2rem;
    }

    .module-text {
        font-size: 0.75rem;
    }

    .card-xidach {
        top: 0;
        left: -10%;
    }

    .card-masoi {
        top: 10%;
        right: -15%;
    }

    .card-confession {
        top: 35%;
        left: 15%;
    }

    .card-quiz {
        bottom: 20%;
        right: -10%;
    }

    .card-rank {
        bottom: 5%;
        left: -5%;
    }

    .relationship {
        top: 50%;
        left: -15%;
    }
}

/* Trust Section */
.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.trust-card {
    position: relative;
    text-decoration: none;
    color: var(--light);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.trust-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.topgg-card:hover {
    border-color: #f1c40f;
    box-shadow: 0 20px 40px rgba(241, 196, 15, 0.15);
}

.discovery-card:hover {
    border-color: #5865F2;
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.15);
}

.trust-badge-container img {
    max-width: 200px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.trust-icon-wrapper {
    font-size: 3.5rem;
    background: var(--glass);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
}

.trust-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topgg-card .trust-info h3 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.trust-external-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-card:hover .trust-external-link {
    opacity: 1;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-content {
    padding: 1.5rem;
}

.news-source {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.22rem;
    }

    .nav-links {
        display: none;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-visual {
        min-height: auto;
        padding: 2rem 0;
        width: 100%;
        margin-top: 1rem;
    }

    .visual-container {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        padding: 1rem;
    }

    .glass-module {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        padding: 1rem;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        animation: glassPulse 4s ease-in-out infinite;
    }

    .glass-module:nth-child(even) {
        margin-top: 2rem;
    }

    .card-rank {
        grid-column: span 2;
        max-width: 160px;
        margin: 1rem auto 0;
    }

    .module-icon {
        font-size: 1.5rem;
    }

    .module-text {
        font-size: 0.8rem;
    }


    .quiz-options {
        grid-template-columns: 1fr;
    }
}