:root {
    --background: #020617;
    --foreground: #f8fafc;
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --card: rgba(15, 23, 42, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Lexend', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(2, 6, 23, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--foreground);
}

.btn-primary {
    background: var(--primary);
    color: #020617 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #a5f3fc 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 3.5rem;
    font-weight: 400;
}

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

.btn-large {
    background: var(--primary);
    color: #020617;
    text-decoration: none;
    padding: 1.1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--primary-glow);
    background: var(--primary-hover);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--foreground);
    text-decoration: none;
    padding: 1.1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-image {
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.mac-mockup {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    margin: 0 auto;
    width: fit-content;
    transform: rotateX(5deg);
    transition: transform 0.6s ease;
}

.mac-mockup:hover {
    transform: rotateX(0deg) translateY(-10px);
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 1.25rem;
    border: 1px solid rgba(0,0,0,0.5);
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-card p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Screenshots */
.screenshots {
    padding: 8rem 0;
}

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

.screenshot-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .screenshot-carousel {
        grid-template-columns: 1fr;
    }
}

.screenshot-item {
    position: relative;
    padding: 0.75rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.screenshot-item img {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

.screenshot-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.screenshot-item:hover::after {
    transform: translateY(0);
    opacity: 1;
}

/* Download */
.download {
    padding: 10rem 0;
    position: relative;
}

.download-card {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-card h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.download-card p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    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.3));
}

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

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.5);
}

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

.footer-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

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

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

/* Hero entrance animations */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards 0.2s; }
.fade-in-up { opacity: 0; animation: fadeInUp 1s ease forwards 0.4s; }

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero { padding: 8rem 0 4rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .nav-links { display: none; }
    .download-card { padding: 3rem 1.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}
