:root {
    --primary-dark: #0a0a0f;
    --secondary-dark: #1a1a2e;
    --accent-dark: #16213e;
    --accent-green: #00ff88;
    --accent-green-dark: #00cc6a;
    --accent-green-light: #00ffaa;
    --text-primary: #fff;
    --text-secondary: #b0b0b0;
    --text-muted: #6c6c6c;
    --border-color: #2a2a4a;
    --gradient-start: #1a1a2e;
    --gradient-end: #0a0a0f;
    --primary: #0a0a0f;
    --secondary: #1a1a2e;
    --accent: #00ff88;
    --white: #fff;
    --text-dark: #0a0a0f;
    --success: #00ff88;
    --error: #EF4444;
    --gradient-dark: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --gradient-teal: linear-gradient(135deg, var(--accent-dark) 0%, var(--primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.3)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6
}

[data-lang="ms"] .en {
    display: none
}

[data-lang="en"] .ms {
    display: none
}

#earth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .5s ease
}

#earth-loading.hidden {
    opacity: 0;
    pointer-events: none
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 5px;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 136, 0.3)
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    transition: all .3s ease;
    background: transparent;
    color: var(--white)
}

.lang-btn.active {
    background: var(--gradient-gold);
    color: var(--primary)
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 999;
    transition: all .3s ease;
    background: transparent
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 5%
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .3s ease
}

.logo:hover {
    transform: scale(1.05)
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin-right: 100px
}

.nav-links a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color .3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s ease
}

.nav-links a:hover::after {
    width: 100%
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all .3s ease
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    overflow: hidden;
    background-image: url('/images/textures/stars.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

#earth-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    cursor: default;
    pointer-events: none
}

#earth-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #FFF 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8
}

section {
    padding: 120px 5%;
    position: relative
}

.section-container {
    max-width: 1280px;
    margin: 0 auto
}

.section-header {
    text-align: center;
    margin-bottom: 80px
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto
}

.problems {
    background: var(--gradient-dark)
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    transition: all .3s ease;
    overflow: hidden
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05)
}

.problem-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block
}

.problem-card-content {
    padding: 30px
}

.problem-icon {
    font-size: 50px;
    margin-bottom: 20px
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--error);
    margin-bottom: 15px
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px
}

.features {
    background: var(--white);
    color: var(--text-dark)
}

.features .section-header h2 {
    color: var(--primary)
}

.features .section-header p {
    color: rgba(10, 22, 40, 0.7)
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px
}

.feature-card {
    background: rgba(10, 22, 40, 0.03);
    border: 1px solid rgba(10, 22, 40, 0.08);
    border-radius: 24px;
    padding: 0;
    text-align: center;
    transition: all .4s ease;
    position: relative;
    overflow: hidden
}

.feature-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block
}

.feature-card-content {
    padding: 30px
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform .4s ease
}

.feature-card:hover::before {
    transform: scaleX(1)
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15)
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px
}

.feature-card p {
    color: rgba(10, 22, 40, 0.7);
    font-size: 15px;
    line-height: 1.7
}

.how-it-works {
    background: var(--gradient-teal)
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}

.step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    text-align: center;
    max-width: 300px;
    transition: all .3s ease;
    overflow: hidden
}

.step-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block
}

.step-content {
    padding: 30px
}

.step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15)
}

.step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    opacity: .5
}

.step-icon {
    font-size: 50px;
    margin: 15px 0
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 15px
}

.step p {
    font-size: 14px;
    opacity: .85;
    line-height: 1.6
}

.step-arrow {
    font-size: 40px;
    color: var(--accent);
    animation: arrowPulse 2s infinite
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: .5;
        transform: translateX(0)
    }

    50% {
        opacity: 1;
        transform: translateX(10px)
    }
}

.screenshots {
    background: var(--primary);
    position: relative;
    overflow: hidden
}

.screenshots-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory
}

.screenshot-card {
    flex: 0 0 280px;
    scroll-snap-align: center
}

.screenshot-placeholder {
    background: linear-gradient(145deg, #1a2a4a, #0d1a30);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 30px;
    padding: 0;
    text-align: center;
    transition: all .3s ease;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative
}

.screenshot-placeholder:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3)
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .7;
    transition: opacity .3s ease
}

.screenshot-placeholder:hover .screenshot-img {
    opacity: .9
}

.screenshot-overlay {
    position: relative;
    z-index: 2;
    padding: 30px
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 20px
}

.faq {
    background: var(--white);
    color: var(--text-dark)
}

.faq .section-header h2 {
    color: var(--primary)
}

.faq-container {
    max-width: 800px;
    margin: 0 auto
}

.faq-item {
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    margin-bottom: 10px
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    transition: color .3s ease
}

.faq-question:hover {
    color: var(--secondary)
}

.faq-icon {
    font-size: 24px;
    transition: transform .3s ease;
    color: var(--accent)
}

.faq-item.active .faq-icon {
    transform: rotate(45deg)
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 25px
}

.faq-answer p {
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.8
}

.final-cta {
    background: var(--gradient-dark);
    text-align: center
}

.footer {
    background: #050d18;
    padding: 80px 5% 40px;
    text-align: center
}

@media(max-width:1024px) {

    .hero .hero-content h1,
    .hero .hero-content p,
    .nav-links li,
    .lang-toggle {
        opacity: 1 !important;
        animation: none !important
    }

    .lang-toggle {
        display: none !important;
    }

    .mobile-lang-switch {
        display: flex !important;
    }

    .nav-links {
        display: none
    }

    .mobile-menu {
        display: flex
    }

    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 100px 30px;
        gap: 30px;
        z-index: 1000;
        animation: slideInFromRight 0.3s ease-out;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: none !important;
    }

    .logo-text {
        display: inline !important;
        font-size: 16px;
    }

    .header {
        align-items: center;
    }

    .lang-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .mobile-menu {
        position: absolute !important;
        top: 20px !important;
        right: 15px !important;
        z-index: 1002 !important;
        display: flex !important;
    }

    .navbar {
        padding: 10px 20px !important;
    }

    .mobile-lang-switch {
        display: flex !important;
        list-style: none;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }

    .mobile-lang-switch .lang-btn {
        background: transparent;
        border: none;
        color: var(--accent-green);
        font-size: 16px;
        cursor: pointer;
        padding: 5px 10px;
    }

    .mobile-lang-switch .lang-separator {
        color: rgba(255, 255, 255, 0.3);
        margin: 0 5px;
    }

    .mobile-lang-switch .ms,
    .mobile-lang-switch .en {
        display: inline !important;
        opacity: 1 !important;
    }

    #earth-container {
        width: 100%;
        opacity: .4
    }
}

@media (max-width:768px) {
    .hero {
        padding: 120px 20px 50px
    }

    .hero-content {
        text-align: center
    }

    section {
        padding: 60px 4%
    }

    .features-grid,
    .problems-grid {
        grid-template-columns: 1fr
    }
}

.mobile-lang-switch {
    display: none;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes flyInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.hero .hero-content h1 {
    opacity: 0;
    animation: slideInFromLeft 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards
}

.hero .hero-content p {
    opacity: 0;
    animation: slideInFromLeft 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards
}

.nav-links li {
    opacity: 0
}

.nav-links li:nth-child(1) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s forwards
}

.nav-links li:nth-child(2) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.35s forwards
}

.nav-links li:nth-child(3) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards
}

.nav-links li:nth-child(4) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.65s forwards
}

.nav-links li:nth-child(5) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.8s forwards
}

.nav-links li:nth-child(6) {
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.95s forwards
}

.lang-toggle {
    opacity: 0;
    animation: flyInFromRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.1s forwards
}