/* Base CSS Variables for Light / Dark Mode & Theming */
:root {
    /* Default palette (light mode) */
    --bg-main: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.05);

    --text-main: #1A1A24;
    --text-muted: #4A4A5A;

    --primary-color: #0078FF;
    /* Deep Blue for light mode */
    --secondary-color: #7A00FF;

    --accent-glow: 0 5px 15px rgba(0, 120, 255, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-follow OS theme when no explicit data-theme is set */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0B0C10;
        --bg-secondary: #1A1A24;
        --bg-glass: rgba(26, 26, 36, 0.7);
        --border-glass: rgba(255, 255, 255, 0.05);

        --text-main: #FFFFFF;
        --text-muted: #C5C6C7;

        --primary-color: #45F3FF;
        /* Neon Cyan */
        --secondary-color: #B429F9;
        /* Neon Purple */

        --accent-glow: 0 0 20px rgba(69, 243, 255, 0.5);
    }
}

[data-theme="light"] {
    --bg-main: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.05);

    --text-main: #1A1A24;
    --text-muted: #4A4A5A;

    --primary-color: #0078FF;
    /* Deep Blue for light mode */
    --secondary-color: #7A00FF;

    --accent-glow: 0 5px 15px rgba(0, 120, 255, 0.3);
}

[data-theme="dark"] {
    --bg-main: #0B0C10;
    --bg-secondary: #1A1A24;
    --bg-glass: rgba(26, 26, 36, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);

    --text-main: #FFFFFF;
    --text-muted: #C5C6C7;

    --primary-color: #45F3FF;
    /* Neon Cyan */
    --secondary-color: #B429F9;
    /* Neon Purple */

    --accent-glow: 0 0 20px rgba(69, 243, 255, 0.5);
}

/* Base Styles & Custom Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.nav-cta,
.nav-link.nav-cta:hover,
.nav-link.nav-cta.active {
    color: #ffffff;
}

.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(120deg, #ff5e13 0%, #ffb703 46%, #00b4ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35), 0 0 0 0 rgba(0, 180, 255, 0.45);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    animation: navCtaPulse 2.3s ease-in-out infinite;
}

.nav-cta::after {
    display: none;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: -130%;
    left: -32%;
    width: 36%;
    height: 340%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: rotate(22deg);
    animation: navCtaShine 3s linear infinite;
}

.nav-cta span,
.nav-cta i {
    position: relative;
    z-index: 1;
}

.nav-cta i {
    transition: transform 0.25s ease;
    animation: navCtaSpark 1.15s ease-in-out infinite;
}

.nav-cta:hover {
    transform: translateY(-4px) scale(1.02);
    filter: saturate(1.12);
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.42), 0 0 0 7px rgba(255, 183, 3, 0.13);
}

.nav-cta:hover i {
    animation-duration: 0.45s;
    transform: translateX(5px) rotate(-14deg);
}

.nav-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

@keyframes navCtaPulse {
    0% {
        box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35), 0 0 0 0 rgba(0, 180, 255, 0.4);
    }

    70% {
        box-shadow: 0 12px 30px rgba(255, 102, 0, 0.43), 0 0 0 8px rgba(0, 180, 255, 0);
    }

    100% {
        box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35), 0 0 0 0 rgba(0, 180, 255, 0);
    }
}

@keyframes navCtaSpark {
    0%,
    100% {
        opacity: 0.88;
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.75));
    }
}

@keyframes navCtaShine {
    0% {
        left: -40%;
    }

    100% {
        left: 135%;
    }
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(69, 243, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    opacity: 0.3;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}

.hero-content {
    max-width: 600px;
    padding-left: 5%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(180, 41, 249, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(180, 41, 249, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.main-game-card {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}

.main-game-card:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-head i {
    font-size: 2rem;
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--accent-glow);
    border-color: var(--primary-color);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(69, 243, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-smooth);
}

.feature-card:hover .icon-wrap {
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Steps Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    gap: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-glass);
    z-index: 0;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg-main);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(69, 243, 255, 0.3);
    transition: all var(--transition-smooth);
}

.step-item:hover .step-num {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-secondary);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    position: relative;
    transition: transform var(--transition-smooth);
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(69, 243, 255, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.price-card.popular .plan-name {
    color: var(--primary-color);
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
}

.plan-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-features li i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* Responsive Design (Mobile First & Extremes) */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        padding-left: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .timeline::before {
        display: none;
    }

    .step-item {
        margin-bottom: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 20px auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        padding: 32px 24px;
        transition: left var(--transition-smooth);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-cta {
        width: min(94vw, 340px);
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
        padding: 14px 18px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* Samsung Fold (280px width) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .feature-card,
    .price-card {
        padding: 20px 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}
