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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0420;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
}

.container-small {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (max-width: 767px) {
    .container-small {
        padding: 0 1rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 4, 32, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
    border-radius: 8px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-inner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 4px;
    transform: rotate(-45deg);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #22d3ee;
}

.mobile-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(147, 51, 234, 0.3);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #22d3ee;
}

.mobile-btn {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
}

.btn-primary {
    background: linear-gradient(90deg, #3fc5f1 0%, #8b6fd8 100%);
    color: #ffffff;
    border-radius: 35px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #3fc5f1;
    color: #3fc5f1;
    border-radius: 35px;
}

.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid;
    transition: all 0.3s;
}

.btn-outline:hover {
    transform: scale(1.05);
}

.btn-cyan {
    border-color: #22d3ee;
    color: #22d3ee;
}

.btn-cyan:hover {
    background: rgba(34, 211, 238, 0.1);
}

.btn-red {
    border-color: #ef4444;
    color: #ef4444;
    min-width: 200px;
    justify-content: center;
}

.btn-red:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-purple {
    border-color: #a855f7;
    color: #a855f7;
    min-width: 200px;
    justify-content: center;
}

.btn-purple:hover {
    background: rgba(168, 85, 247, 0.1);
}

.btn-yellow {
    border-color: #facc15;
    color: #facc15;
    min-width: 200px;
    justify-content: center;
}

.btn-yellow:hover {
    background: rgba(250, 204, 21, 0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-xlarge {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.nav-btn {
    padding: 0.5rem 1.5rem;
}

.icon {
    width: 1rem;
    height: 1rem;
}

.icon-large {
    width: 2.5rem;
    height: 2.5rem;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #06b6d4 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
    animation: bounce 2s infinite;
}

.floating-cta.visible {
    display: flex;
}

.floating-cta:hover {
    transform: scale(1.1);
}

.floating-cta-text {
    display: none;
}

@media (min-width: 640px) {
    .floating-cta-text {
        display: inline;
    }
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #020617 0%, #1c0737 50%, #0a0621 100%);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 2rem 0.75rem;
    }
}

.animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #34cbf1 0%, #a094fa 40%, #c681f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #9ba3c7;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.875rem;
    }
}

.hero-description {
    color: #7d85a8;
    font-size: 1rem;
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

.badge-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: white;
}

.badge-text {
    text-align: left;
}

.badge-label {
    font-size: 0.625rem;
    color: #9ca3af;
}

@media (min-width: 640px) {
    .badge-label {
        font-size: 0.75rem;
    }
}

.badge-title {
    font-size: 0.875rem;
    color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

.stat-cyan {
    color: #3fc5f1;
}

.stat-purple {
    color: #8b6fd8;
}

.stat-pink {
    color: #ed7dbf;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7599;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 1rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #0a0420 0%, #1a0f3a 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-title-left {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .section-title-left {
        font-size: 3rem;
    }
}

.section-description {
    color: #d1d5db;
    font-size: 1rem;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.125rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: rgba(26, 15, 58, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

.bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
}

.bg-cyan {
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
}

.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.feature-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Gameplay Preview Section */
.gameplay-preview {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #0a0420 0%, #1a0f3a 100%);
}

.gameplay-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .gameplay-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gameplay-video {
    position: relative;
}

.phone-frame {
    aspect-ratio: 9 / 16;
    max-width: 384px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
    border-radius: 1.5rem;
    border: 4px solid rgba(147, 51, 234, 0.3);
    overflow: hidden;
    position: relative;
}

.phone-content {
    position: absolute;
    inset: 1rem;
    background: rgba(10, 4, 32, 0.6);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gameplay-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.phone-frame:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #06b6d4 0%, #9333ea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.5);
}

.phone-frame:hover .play-button {
    transform: scale(1.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background: black;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

.floating-block {
    position: absolute;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

.floating-block-1 {
    top: -1rem;
    left: -1rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    transform: rotate(12deg);
}

.floating-block-2 {
    bottom: -1rem;
    right: -1rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    transform: rotate(-12deg);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.gameplay-content {
    padding: 0;
}

.gameplay-text {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid;
}

.check-cyan {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.check-purple {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.check-pink {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.feature-item-title {
    color: white;
    margin-bottom: 0.25rem;
}

.feature-item-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Game Modes Section */
.game-modes {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #1a0f3a 0%, #2d1554 100%);
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modes-grid-new {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .modes-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .modes-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mode-card-new {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px solid;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 600px;
    width: 100%;
}

@media (min-width: 640px) {
    .mode-card-new {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .mode-card-new {
        height: 600px;
        max-width: 450px;
    }
}

.mode-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mode-image {
    width: 100%;
    height: 300px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
    overflow: hidden;
    position: relative;
}

.mode-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.mode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mode-card-new:hover .mode-image img {
    transform: scale(1.05);
}

.mode-content {
    padding: 1.5rem;
    height: 300px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .mode-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .mode-content {
        padding: 1.75rem;
    }
}

.mode-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
    flex-shrink: 0;
    height: 24px;
}

.mode-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.mode-type {
    font-weight: 500;
}

.mode-title-new {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    line-height: 1.2;
    height: auto;
}

@media (min-width: 640px) {
    .mode-title-new {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .mode-title-new {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
}

.mode-description-new {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
    min-height: 84px;
    max-height: 84px;
}

.bg-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mode-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px solid;
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.3s;
}

.mode-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mode-cyan {
    border-color: rgba(6, 182, 212, 0.5);
}

.mode-red {
    border-color: rgba(239, 68, 68, 0.5);
}

.mode-purple {
    border-color: rgba(168, 85, 247, 0.5);
}

.mode-yellow {
    border-color: rgba(250, 204, 21, 0.5);
}

.mode-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #22d3ee;
}

.badge-red {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.badge-purple {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #c084fc;
}

.badge-yellow {
    background: rgba(250, 204, 21, 0.2);
    border-color: #facc15;
    color: #fde047;
}

.mode-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.color-cyan {
    color: #22d3ee;
}

.color-red {
    color: #f87171;
}

.color-purple {
    color: #c084fc;
}

.color-yellow {
    color: #fde047;
}

.mode-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

/* How to Play Section */
.how-to-play {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #1a0f3a 0%, #2d1554 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(6deg);
    transition: transform 0.3s;
}

.step:hover .step-icon {
    transform: rotate(12deg);
}

.bg-cyan-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
}

.bg-pink-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

.bg-orange-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.bg-teal-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

.bg-green-gradient {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 32px;
    height: 32px;
    background: #9333ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid #2d1554;
}

.step-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tips-box {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.tips-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-arrow {
    font-size: 1.25rem;
}

.tip p {
    color: #d1d5db;
    font-size: 0.875rem;
}

.color-orange {
    color: #f97316;
}

/* Leaderboard Section */
.leaderboard {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #2d1554 0%, #3d1a64 100%);
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    color: #22c55e;
}

.live-update {
    color: #6b7280;
}

.leaderboard-table {
    background: #1a0f3a;
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow-x: auto;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 80px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #0f0728;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    color: #c084fc;
    font-size: 0.875rem;
}

.leaderboard-body {
    padding: 0;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 80px;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    align-items: center;
    transition: background 0.3s;
}

.leaderboard-row:hover {
    background: rgba(147, 51, 234, 0.3);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.rank-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.rank-silver {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
}

.rank-bronze {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.rank-default {
    background: #6b7280;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    object-fit: cover;
}

.avatar-icon {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.player-name {
    color: white;
}

.player-score {
    color: #22d3ee;
    font-size: 1.125rem;
    text-align: right;
}

.player-level {
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.4);
    color: #c084fc;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    text-align: center;
}

.player-country {
    font-size: 1.5rem;
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Player Reviews Section */
.player-reviews {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #2d1554 0%, #1a0f3a 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(67, 56, 202, 0.3) 100%);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    transition: all 0.3s;
}

.review-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    color: white;
    font-size: 0.875rem;
}

.author-platform {
    color: #6b7280;
    font-size: 0.75rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.trust-badge {
    text-align: center;
}

.trust-stars {
    font-size: 1.875rem;
    margin-bottom: 0.25rem;
}

.stars-yellow {
    color: #fbbf24;
}

.stars-green {
    color: #22c55e;
}

.trust-icon {
    font-size: 1.875rem;
    margin-bottom: 0.25rem;
}

.trust-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, #3d1a64 0%, #1a0f3a 100%);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: bold;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.gradient-text-cyan {
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(90deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    color: #d1d5db;
    font-size: 1rem;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .cta-description {
        font-size: 1.125rem;
    }
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.urgency-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    padding: 0.25rem 1rem;
    background: linear-gradient(90deg, #ef4444 0%, #ec4899 100%);
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.cta-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #d1d5db;
}

.cta-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-yellow {
    color: #fbbf24;
    fill: #fbbf24;
}

.icon-cyan {
    color: #22d3ee;
}

.icon-purple {
    color: #a855f7;
}

/* Footer */
.footer {
    background: #0a0420;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand {
    max-width: 100%;
}

.footer-logo {
    color: #22d3ee;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(147, 51, 234, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(147, 51, 234, 0.5);
    color: white;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #22d3ee;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright,
.footer-powered {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media screen and (max-width: 767px) {
    /* Force responsive behavior */
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .logo-text {
        font-size: 1.125rem !important;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 1rem !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        word-wrap: break-word !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
        word-wrap: break-word !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    /* Platform Badges */
    .platform-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .badge {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .badge-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .badge-label {
        font-size: 0.5rem;
    }
    
    .badge-title {
        font-size: 0.625rem;
    }
    
    /* Stats */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Sections */
    .features,
    .gameplay-preview,
    .game-modes,
    .how-to-play,
    .leaderboard,
    .player-reviews,
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-description {
        font-size: 0.875rem !important;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
    
    /* Gameplay Preview */
    .gameplay-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-frame {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .section-title-left {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .gameplay-text {
        font-size: 0.875rem;
        text-align: center;
    }
    
    .feature-list {
        gap: 1rem;
    }
    
    .feature-item-title {
        font-size: 0.9rem;
    }
    
    .feature-item-text {
        font-size: 0.8rem;
    }
    
    /* Game Modes */
    .modes-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mode-card-new {
        height: auto;
        min-height: 320px;
    }
    
    .mode-image {
        height: 140px;
    }
    
    .mode-content {
        padding: 1rem;
    }
    
    .mode-title-new {
        font-size: 1.125rem !important;
    }
    
    .mode-description-new {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .mode-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    .mode-card-new .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* How to Play */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    .tips-box {
        padding: 1.25rem;
    }
    
    .tips-title {
        font-size: 1.125rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tip {
        font-size: 0.85rem;
    }
    
    /* Leaderboard */
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 90px;
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .player-level,
    .player-country {
        display: none;
    }
    
    .rank-badge {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .player-avatar-img {
        width: 2rem;
        height: 2rem;
    }
    
    .player-name {
        font-size: 0.85rem;
    }
    
    .player-score {
        font-size: 0.875rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .review-card {
        padding: 1.25rem;
    }
    
    .review-text {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.875rem;
    }
    
    .author-platform {
        font-size: 0.75rem;
    }
    
    /* Trust Badges */
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.875rem;
    }
    
    .btn-xlarge {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Floating CTA */
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .floating-cta-text {
        display: none;
    }
}

/* Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    /* Platform Badges */
    .platform-badges {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Game Modes */
    .modes-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-card-new {
        max-width: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gameplay */
    .gameplay-grid {
        grid-template-columns: 1fr;
    }
    
    /* Leaderboard */
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 70px 1fr 120px 90px;
        font-size: 0.875rem;
    }
    
    .player-country {
        display: none;
    }
}

/* Large Tablets and Small Desktops */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 1000px;
    }
    
    .modes-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mode-card-new {
        max-width: none;
    }
}

/* Extra Large Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .container-small {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Video Modal */
.video-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    pointer-events: none;
}

.video-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    align-items: center;       
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative !important;
    width: 80%;
    max-width: 900px;
    animation: slideIn 0.3s ease;
    z-index: 100000 !important;
    margin: auto;
    display: none;
}

.video-modal.active .video-modal-content {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        margin-top: -50px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

.video-modal-close {
    position: absolute !important;
    top: -50px !important;
    right: 0 !important;
    background: #ff3366 !important;
    border: 3px solid white !important;
    color: white !important;
    font-size: 3rem;
    font-weight: bold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 100001 !important;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.8);
}

.video-modal-close:hover {
    background: #ff0044;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 51, 102, 0.8);
}

.modal-video-player {
    width: 100%;
    max-height: 70vh;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    display: block;
}

.modal-video-player::-webkit-media-controls {
    display: none !important;
}

.modal-video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

@media (max-width: 767px) {
    .video-modal-content {
        width: 90%;
    }
    
    .video-modal-close {
        top: -50px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .modal-video-player {
        max-height: 50vh;
    }
}
