:root {
    --bg: #090B10;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent: #00FF66;
    --accent-glow: rgba(0, 255, 102, 0.3);
    --text-light: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dark: #000000;
    --font-main: 'Outfit', sans-serif;
}

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

html {
    min-width: 360px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Background glow effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top, rgba(0, 255, 102, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px; /* Increased from 24px for better safety */
}

/* Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.header.scrolled {
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 24px;
    width: 100%;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

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

@media (min-width: 1025px) {
    .nav-links {
        /* Reset any potential overrides */
        margin: 0;
    }
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 80px 0 120px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge img {
    height: 48px;
    width: auto;
    transition: transform 0.3s;
}

.store-badge:hover img {
    transform: scale(1.05);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-glass);
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
}

/* Trust */
.trust {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* How it works */
.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
}

.section-title span {
    color: var(--accent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 102, 0.3);
}

.step-number {
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Features */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.features-block {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 48px;
}

.features-block h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.emotional-message {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.organizer-features h3 {
    color: var(--accent);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list li {
    display: flex;
    gap: 20px;
}

.icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.organizer-features .icon {
    color: var(--accent);
    background: rgba(0, 255, 102, 0.1);
}

.text h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.text p {
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(0deg, #05070a 0%, #0d121c 100%);
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 800;
}

.cta-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-content .download-buttons {
    justify-content: center;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Pages */
.legal-page-section {
    padding: 40px 0 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 48px;
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 32px;
    color: var(--accent);
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .download-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding-block: 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 40px 24px;
        border-bottom: 1px solid var(--border-glass);
        z-index: 100;
        text-align: center;
        gap: 32px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

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

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin: 0 auto;
        padding: 0;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .nav-actions .lang-switcher {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 40px 0 80px;
    }

    .trust {
        padding: 40px 20px;
    }

    .trust-item h3 {
        font-size: 36px;
    }

    .features-block {
        padding: 32px 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }
}