:root {
    --bg-dark: #07050d;
    --bg-light: #120e1c;
    --primary: #007AFF;
    --secondary: #5dc9ff;
    --accent: #ffffff;
    --text-main: #f0f0ff;
    --text-muted: #aab5d0;
    --glass-bg: rgba(14, 11, 22, 0.7);
    --glass-border: rgba(255, 255, 255, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Background Effects */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: -2;
}
.stars {
    background: #000 url('https://www.transparenttextures.com/patterns/stardust.png') repeat top center;
    z-index: -3;
}
.twinkling {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.3;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Asteroids (Shooting Stars) */
.asteroid {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(107, 184, 255, 0.8),
                0 0 20px 4px rgba(155, 81, 224, 0.5);
    z-index: 5;
    pointer-events: none;
    animation: shooting-star linear forwards;
}

.asteroid::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

@keyframes shooting-star {
    0% {
        transform: translate(0, 0) rotate(135deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-2000px, 2000px) rotate(135deg) scale(0.5);
        opacity: 0;
    }
}

/* Header */
header {
    background: rgba(10, 6, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.social-icon {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-icon.discord:hover {
    background: #5865F2; /* Discord Blurple */
}

.social-icon.kofi:hover {
    background: #FF5E5B; /* Ko-Fi Signature Red */
}

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

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.multi-lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.lang-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.lang-link.active {
    color: #fff;
    background: var(--primary);
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-social-icon:hover {
    transform: scale(1.05);
    color: #fff;
}

.header-social-icon.discord:hover {
    background: #5865F2; /* Discord Blurple */
    border-color: #5865F2;
}

.header-social-icon.kofi:hover {
    background: #FF5E5B; /* Ko-Fi Signature Red */
    border-color: #FF5E5B;
}

/* Buttons */
.btn, .btn-small {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.btn:hover, .btn-small:hover {
    transform: translateY(-2px);
    background: #005bb5;
    color: #fff;
}

.btn-appstore {
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-appstore:hover {
    background: #005bb5;
}

.btn-github {
    background: #24292e !important;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
}
.btn-github:hover {
    background: #2b3137 !important;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 100px);
    padding: 3rem 0;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(107, 184, 255, 0.1);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.moon-orb {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.moon-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155,81,224,0.3) 0%, rgba(107,184,255,0.1) 40%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}



/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.feature-card {
    background: #0f0b17;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

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

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    overflow: hidden;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.tab-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.simple-carousel.hidden {
    display: none;
}

.simple-carousel {
    --slides-per-view: 3;
    max-width: 980px;
    margin: 0 auto;
}

.carousel-viewport {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 1rem;
}

.carousel-slides {
    min-height: 420px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

.carousel-slide {
    display: flex;
    flex: 0 0 calc((100% - (var(--slides-per-view) - 1) * 1rem) / var(--slides-per-view));
    margin: 0;
    justify-content: center;
    align-items: center;
}

.carousel-slide picture {
    display: flex;
    justify-content: center;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(10, 6, 26, 0.7);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.carousel-nav.prev { left: 0.8rem; }
.carousel-nav.next { right: 0.8rem; }

.carousel-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--primary);
}

.screenshot {
    border-radius: 30px; /* Adapts to iOS typical screen curves */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    -webkit-user-drag: none;
    pointer-events: none;
    width: auto;
    max-width: 100%;
    height: auto;
}

.screenshot:hover {
    transform: scale(1.03); 
}

.iphone-shot {
    max-height: 420px;
}

.ipad-shot {
    max-height: 360px;
}

/* Download Section */
.download-section {
    padding: 2rem 0 6rem;
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-card {
    text-align: center;
    min-width: 250px;
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.github-coming-soon {
    color: #aab5d0 !important;
    margin: 1rem 0;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(10, 6, 26, 0.8);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero h1 { font-size: 3.2rem; }
    
    .hero-text { margin-bottom: 3rem; }
    
    .moon-orb { max-width: 300px; }
    .moon-glow { width: 300px; height: 300px; }
}

@media (max-width: 600px) {
    nav {
        gap: 1rem;
    }
    nav .btn-small {
        display: none;
    }

    .carousel-slides {
        min-height: 320px;
    }

    .iphone-shot,
    .ipad-shot {
        max-height: 62vh;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}
