/* Custom Fonts - Changed to Montserrat (Heading) and Inter (Body) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Inter:wght@300;400;700&display=swap');

/* --- Variables & Reset --- */
:root {
    --color-dark: #12121e;
    --color-accent: #00ffc8; /* Neo-green/Cyan */
    --color-secondary: #4a4a6e;
    --color-light: #f4f4f9;
    --color-text-main: #c0c0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent); 
    text-decoration: none;
    transition: color var(--transition-speed); 
}

a:hover {
    color: var(--color-light);
}

/* --- Global Components --- */
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 30px;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-light);
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
}

/* Call to Action Button */
.cta-button {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-cta {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.primary-cta:hover {
    background-color: #00e6b8;
    box-shadow: 0 6px 20px rgba(0, 255, 200, 0.4);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.secondary-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* --- Loader (Gaming/Advanced Style) --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.loader-content {
    text-align: center;
    padding: 40px;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
    animation: pulse 1.5s infinite alternate;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.8);
    margin-bottom: 20px;
}

.loader-bar-container {
    width: 300px;
    height: 15px;
    background: var(--color-secondary);
    border: 1px solid var(--color-accent);
    margin: 20px auto;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0088ff, var(--color-accent));
    animation: loading 3s ease-in-out forwards;
}

.loader-status {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-size: 1rem;
    margin-top: 15px;
    opacity: 0.8;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    from {
        border-color: var(--color-secondary);
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
    }
    to {
        border-color: var(--color-accent);
        box-shadow: 0 0 30px rgba(0, 255, 200, 0.6);
    }
}

/* --- Header and Navigation --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #0a0a1a 100%);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

.nav-links a {
    color: var(--color-text-main);
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Login/Sign Up Button - New Style (Pill/Chip) */
.login-cta {
    padding: 8px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    border: 2px solid var(--color-accent);
    background-color: transparent;
    color: var(--color-accent);
    border-radius: 50px;
    text-transform: none;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.2);
}

.login-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
}

/* Language Selector */
.lang-switch {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid var(--color-secondary);
    background-color: var(--color-dark);
    color: var(--color-text-main);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color var(--transition-speed), color var(--transition-speed);
}

.lang-switch:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Modern Hamburger Menu with button animation */
.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    background: rgba(0, 255, 200, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    overflow: hidden;
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.5);
    background: rgba(0, 255, 200, 0.2);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.3), transparent);
    transition: left 0.7s ease;
}

.menu-toggle:hover::before {
    left: 100%;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 60%;
    background: var(--color-accent);
    border-radius: 3px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle span:nth-child(1) {
    top: 15px;
    transform-origin: center;
}

.menu-toggle span:nth-child(2) {
    top: 24px;
    transform-origin: center;
}

.menu-toggle span:nth-child(3) {
    top: 33px;
    transform-origin: center;
}

/* Active state - button transforms and icons animate */
.menu-toggle.active {
    transform: rotate(180deg) scale(1.1);
    background: rgba(0, 255, 200, 0.3);
    border-color: var(--color-light);
    box-shadow: 
        0 0 30px rgba(0, 255, 200, 0.7),
        inset 0 0 20px rgba(0, 255, 200, 0.2);
}

.menu-toggle.active:hover {
    transform: rotate(180deg) scale(1.15);
}

.menu-toggle.active span:nth-child(1) {
    top: 24px;
    transform: translateX(-50%) rotate(45deg);
    background-color: var(--color-light);
    width: 70%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
    transform: translateX(-50%) scale(0);
}

.menu-toggle.active span:nth-child(3) {
    top: 24px;
    transform: translateX(-50%) rotate(-45deg);
    background-color: var(--color-light);
    width: 70%;
}

/* Add pulsating animation when menu is closed */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
    }
}

.menu-toggle:not(.active) {
    animation: buttonGlow 2s infinite ease-in-out;
}

/* Mobile Devices */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
    }
    
    .menu-toggle span {
        width: 50%;
    }
    
    .menu-toggle span:nth-child(1) {
        top: 14px;
    }
    
    .menu-toggle span:nth-child(2) {
        top: 22px;
    }
    
    .menu-toggle span:nth-child(3) {
        top: 30px;
    }
    
    .menu-toggle.active span:nth-child(1),
    .menu-toggle.active span:nth-child(3) {
        top: 22px;
    }
}

/* Mobile Menu Styles */
.nav-links.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-secondary);
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-links.mobile-menu li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.5s ease forwards;
}

.nav-links.mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-links.mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-links.mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-links.mobile-menu li:nth-child(4) { animation-delay: 0.4s; }
.nav-links.mobile-menu li:nth-child(5) { animation-delay: 0.5s; }
.nav-links.mobile-menu li:nth-child(6) { animation-delay: 0.6s; }

.nav-cta-mobile {
    display: none;
    margin: 15px auto;
    width: 80%;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
    padding: 12px 30px;
    animation: pulseButton 2s infinite;
}

.lang-switch-mobile {
    display: none;
    margin: 15px auto;
    width: 150px;
    text-align: center;
}

/* Hero Content */
.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px 0;
    text-align: left;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-light);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-text-main);
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

.hero-image-placeholder {
    width: 40%;
    height: 350px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.2);
}

.placeholder-text {
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.6;
}

/* --- Features Section --- */
.features-section {
    background-color: #0d0d18;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--color-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
    text-align: left;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.2);
}

.feature-card h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

/* --- Trust Section --- */
.trust-section {
    background-color: var(--color-secondary);
    padding: 40px 0;
}

.trust-section p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-light);
}

/* --- Pricing Section --- */
.pricing-section {
    background-color: var(--color-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.price-card {
    background-color: #0d0d18;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color-secondary);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    position: relative;
}

.price-card:hover {
    transform: scale(1.05);
}

.price-card.recommended {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
}

.price-card .tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.price-card h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-light);
    margin-bottom: 15px;
}

.price-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.price-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 0;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-secondary);
    color: var(--color-text-main);
}

.price-card ul li:last-child {
    border-bottom: none;
}

/* --- Footer --- */
footer {
    background-color: #0a0a1a;
    padding: 50px 0;
    border-top: 1px solid var(--color-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.footer-col {
    max-width: 25%;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* ================================== */
/* --- Responsive Design --- */
/* ================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 50px;
    }

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

    .hero-image-placeholder {
        width: 80%;
        height: 300px;
    }

    .hero-ctas {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-col {
        max-width: 45%;
    }
    
    .nav-group {
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-group {
        display: none !important;
    }
    
    .nav-links:not(.mobile-menu) {
        display: none;
    }
    
    .nav-links.mobile-menu {
        display: none;
    }
    
    .nav-links.mobile-menu.active {
        display: flex;
    }

    .nav-cta-mobile {
        display: block !important;
    }
    
    .lang-switch-mobile {
        display: block !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }
}

/* Even Smaller Phones */
@media (max-width: 480px) {
    .loader-title {
        font-size: 2.5rem;
    }
    .loader-bar-container {
        width: 250px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-right: 15px;
    }
    
    .nav-links.mobile-menu {
        top: 60px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 200, 0);
    }
}