/* Global Reset & Base Styles */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #9898a0;
    --accent-blue: #0A84FF;
    --accent-purple: #BF5AF2;
    --accent-indigo: #5E5CE6;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-hover-bg: rgba(255, 255, 255, 0.12);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* === Ambient Glow Backgrounds === */
.background-glow {
    position: fixed;
    top: -10%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.12), transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.background-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(94, 92, 230, 0.1), transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* === Header === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    /* Rounded square Apple style */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Mobile Nav Hidden by default on desktop, detailed logic needed for burger, simple hide for now */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* === Typography & Hero === */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 180px 20px 120px;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #FFFFFF 0%, #a4a4ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.5;
}

/* === Buttons === */
.download-btn {
    background: #007AFF;
    /* System Blue */
    color: white;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 122, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.6);
    background: #148aff;
}

.download-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.promo-text {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #32D74B;
    /* System Green */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(50, 215, 75, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

/* === Features Grid === */
.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    fill: var(--text-primary);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* === Large Showcase Section === */
.big-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 120px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.big-feature.reverse {
    flex-direction: row-reverse;
}

.big-feature-content {
    flex: 1;
}

.feature-highlight {
    color: var(--accent-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    display: block;
}

.big-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.big-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.glass-box {
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Fancy decorative glow inside box */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.glass-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.2), transparent 60%);
    filter: blur(40px);
    top: -50px;
    right: -50px;
}

/* Mock Graphics */
.mock-ui {
    width: 75%;
    height: 65%;
    background: rgba(30, 30, 35, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    transform: rotateX(5deg) rotateY(-5deg);
    /* 3D effect */
    transition: transform 0.5s ease;
}

.glass-box:hover .feature-img {
    transform: scale(1.02);
}

/* Feature Images */
.feature-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: transform 0.5s ease;
}

/* Mock Graphics (Keeping purely for reference if needed, but unused) */
.mock-ui {
    display: none;
}

.mock-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 16px;
}

.active-line {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 15px rgba(94, 92, 230, 0.4);
}

.check-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.check-icon {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: -2px;
}

/* === Footer === */
footer {
    padding: 80px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.copyright {
    color: #555;
    font-size: 0.85rem;
}

/* === Utilities & Animations === */
/* Loader for Analytics */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animate on Scroll Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* === Responsive === */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 140px;
    }

    .big-feature {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
        text-align: center;
    }

    .big-feature.reverse {
        flex-direction: column;
    }

    .check-list li {
        justify-content: flex-start;
        /* keep aligned left */
        text-align: left;
    }

    .big-feature-content ul {
        display: inline-block;
        /* Center the block of list items */
        text-align: left;
    }

    .glass-box {
        height: 350px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .logo-text {
        display: none;
    }

    /* Show only icon on very small */
}