:root {
    --primary: #0a84ff;
    --primary-glow: rgba(10, 132, 255, 0.4);
    --accent-secondary: #bf5af2;
    --bg-dark: #0a0b0e;
    --glass: rgba(20, 22, 28, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-dim: #9ca3af;
    --accent-gradient: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(10, 132, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(191, 90, 242, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
}

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

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

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.btn-lang {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.6);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a84ff;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge img {
    height: 52px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.store-badge:hover img {
    opacity: 1;
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

/* Mockup Frame */
.hero-image {
    max-width: 1000px;
    margin: 0 auto;
}

.mac-mockup {
    background: #1c1e26;
    border: 12px solid #282a36;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(10, 132, 255, 0.15);
    overflow: hidden;
    position: relative;
}

.mac-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 132, 255, 0.03) 100%);
    pointer-events: none;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass:hover {
    background: rgba(28, 30, 38, 0.75);
    border-color: rgba(10, 132, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(10, 132, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* Screenshots */
.screenshots {
    padding: 8rem 0;
    background: rgba(10, 132, 255, 0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin: -3rem 0 4rem;
    font-size: 1.1rem;
}

.screenshot-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.screenshot-item {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 280px;
    padding: 0.75rem;
    position: relative;
    border-radius: 16px;
}

.screenshot-item img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.screenshot-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(10, 11, 14, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.screenshot-item:hover::after {
    opacity: 1;
    bottom: -1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Video Demo */
.video-section {
    padding: 8rem 0;
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(191, 90, 242, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1.25rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Download */
.download {
    padding: 8rem 0;
}

.download-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: radial-gradient(circle at top, rgba(10, 132, 255, 0.08) 0%, rgba(20, 22, 28, 0.65) 100%);
}

.download-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download-card p {
    margin-bottom: 3rem;
    color: var(--text-dim);
}

/* Footer */
.footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 11, 14, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    align-items: center;
}

.footer-logo {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshot-item {
        flex: 0 1 calc(50% - 1rem);
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-item {
        flex: 0 1 100%;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .download-card {
        padding: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Video File Fallback (under file:// protocol) */
.video-file-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 11, 14, 0.92) 0%, rgba(20, 22, 28, 0.98) 100%);
    text-decoration: none;
    color: var(--text-main);
    gap: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 1.25rem;
    cursor: pointer;
}

.video-file-fallback:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1) 0%, rgba(191, 90, 242, 0.1) 100%), rgba(10, 11, 14, 0.85);
    box-shadow: inset 0 0 20px rgba(10, 132, 255, 0.15);
}

.fallback-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-left: 6px; /* Offset for play triangle align */
}

.video-file-fallback:hover .fallback-play-btn {
    transform: scale(1.1);
    background: #0a84ff;
    box-shadow: 0 8px 30px rgba(10, 132, 255, 0.6);
}

.fallback-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

