:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container.mobile-padding {
        padding: 0 1rem;
    }
}

.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

nav.scrolled .logo {
    color: var(--dark);
}

nav.scrolled .logo img {
    filter: none;
}

nav.scrolled .nav-links a {
    color: var(--dark);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

.btn-download {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav.scrolled .mobile-toggle span {
    background: var(--dark);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav.scrolled .lang-switch {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

nav.scrolled .lang-btn {
    color: var(--dark);
}

nav.scrolled .lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1.15rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1e293b;
    border: 12px solid #334155;
    border-radius: 40px;
    padding: 2px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.15);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.15);
    bottom: -50px;
    left: -50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--gray);
}

/* Story Highlight */
.story-mode {
    background: var(--dark);
    color: white;
    border-radius: 48px;
    margin: 2rem;
    overflow: hidden;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem;
}

.story-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.story-text p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.story-features {
    display: grid;
    gap: 1.5rem;
}

.story-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.story-feature-item i {
    color: var(--secondary);
    margin-top: 0.25rem;
}

.story-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.story-video {
    width: 100%;
    display: block;
}

/* Screenshots Gallery */
.screenshots {
    background: #f1f5f9;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
}

.screenshot-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.screenshot-item img {
    width: 100%;
    display: block;
}

/* Live Tracking */
.live-tracking {
    position: relative;
}

.live-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.live-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.live-code-box {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    text-align: center;
}

.live-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: var(--primary);
}

.live-code-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.live-note {
    color: var(--gray);
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background: #020617;
    color: white;
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin: 1.5rem 0;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark) !important;
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav-links .lang-switch {
        background: rgba(0, 0, 0, 0.05);
        margin-left: 0;
        margin-top: 1rem;
    }

    .nav-links .lang-btn {
        color: var(--dark);
    }

    .nav-links .lang-btn.active {
        background: var(--primary);
        color: white;
    }

    .hero-content,
    .story-content,
    .live-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-text h1 {
        font-size: 2.25rem;
        margin-top: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .story-content {
        padding: 2.5rem 1rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

    .story-mode {
        margin: 1rem 0;
        border-radius: 24px;
    }
}