:root {
    --primary-color: #FB5755;
    --primary-gradient: linear-gradient(135deg, #FB5755 0%, #FF1F55 100%);
    --secondary-color: #FFA840;
    --secondary-gradient: linear-gradient(135deg, #FFA522 0%, #EE8A2A 100%);
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(255, 31, 85, 0.2);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Common Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(251, 87, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 87, 85, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #222;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Header */
.header {
    background: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
}

.highlight {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.auth-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(251, 87, 85, 0.4) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    color: var(--white);
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(251, 87, 85, 0.2);
    border: 1px solid rgba(251, 87, 85, 0.5);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.floating-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    max-width: 500px;
}

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

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 87, 85, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 87, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 87, 85, 0);
    }
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: var(--white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.game-icon {
    width: 70px;
    height: 70px;
    background: rgba(251, 87, 85, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.game-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.game-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.game-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 10px;
}

/* Guide Section */
.guide-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.guide-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.guide-reverse {
    flex-direction: row-reverse;
}

.guide-content {
    flex: 1;
}

.guide-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.guide-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.steps-list {
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.mockup-phone {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 5px solid #333;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
}

.mock-form {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mock-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mock-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.mock-input {
    width: 100%;
    height: 45px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: #999;
    font-size: 12px;
}

.mock-btn {
    width: 100%;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(251, 87, 85, 0.3);
}

.rounded-img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.check-list {
    list-style: none;
    margin-bottom: 40px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.check-list i {
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #1a1a2e;
    color: white;
}

.features-section .section-title {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item .feature-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.feature-item .feature-icon i {
    font-size: 40px;
    color: var(--secondary-color);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    padding: 100px 0;
}

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

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
    border-top: 1px solid #f0f0f0;
}

/* Footer */
.footer {
    background: #0f0f1a;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 0 15px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 50px;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-stats {
        justify-content: center;
    }

    .guide-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .guide-reverse {
        flex-direction: column;
    }

    .section-title.text-left {
        text-align: center;
    }

    .section-title.text-left::after {
        margin: 15px auto 0;
    }

    .guide-desc {
        margin: 0 auto 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-info p {
        margin: 0 auto 25px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

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

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .games-section,
    .guide-section,
    .features-section,
    .faq-section {
        padding: 60px 0;
    }

    .mockup-phone {
        width: 250px;
        height: 500px;
        margin-top: 40px;
    }

    .step-item {
        align-items: flex-start;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-num {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-cta {
        max-width: 100%;
        gap: 12px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }

    .stat-item {
        min-width: 80px;
        text-align: center;
    }

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

    .game-card {
        padding: 20px;
    }

    .game-icon {
        width: 60px;
        height: 60px;
    }

    .game-icon i {
        font-size: 24px;
    }

    .game-card h3 {
        font-size: 1.1rem;
    }

    .guide-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .step-item {
        gap: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-info h4 {
        font-size: 1rem;
    }

    .step-info p {
        font-size: 0.9rem;
    }

    .mockup-phone {
        width: 220px;
        height: 450px;
    }

    .check-list li {
        font-size: 0.95rem;
    }

    .feature-item .feature-icon i {
        font-size: 32px;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .footer {
        padding: 50px 0 15px;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .floating-img {
        max-width: 280px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .game-card:hover {
        transform: none;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .game-card:active {
        transform: scale(0.98);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-img {
        animation: none;
    }

    .pulse-anim {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .hero-cta,
    .auth-buttons,
    .mobile-menu-btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-bg {
        background: none !important;
    }

    .hero-text {
        color: #000 !important;
    }

    .section-title {
        page-break-after: avoid;
    }

    .game-card,
    .faq-item {
        page-break-inside: avoid;
    }
}