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

:root {
    --bg: #000;
    --bg-alt: #0a0a0a;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #2997ff;
    --accent-purple: #bf5af2;
    --nav-height: 48px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Nav ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--nav-height);
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-product {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-product:hover,
.nav-product.active {
    color: var(--text);
}

.lang-switcher {
    position: relative;
    margin-left: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-current {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-current:hover,
.lang-switcher.open .lang-current {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    flex-direction: column;
}

.lang-switcher.open .lang-dropdown {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.lang-option.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Hero ── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 22px;
}

.hero-title {
    font-size: clamp(56px, 12vw, 112px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 20px;
    letter-spacing: -0.01em;
}

/* ── Product sections ── */

.product {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.product-alt {
    background: var(--bg-alt);
}

.product-content {
    max-width: 980px;
    width: 100%;
}

.product-label {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.product-alt .product-label {
    color: var(--accent-purple);
}

.product-title {
    font-size: clamp(44px, 9vw, 88px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
}

.product-tagline {
    font-size: clamp(21px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text-secondary);
    margin-bottom: 72px;
}

/* ── Stats ── */

.stats {
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-bottom: 56px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-alt .stat-number {
    background: linear-gradient(135deg, var(--accent-purple), #ff375f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── App grid ── */

.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 56px;
}

.app-badge {
    font-size: 13px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 980px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

/* ── Description ── */

.product-desc {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 56px;
}

/* ── CTAs ── */

.product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn {
    font-size: 17px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.72;
}

.btn-primary {
    color: var(--accent-blue);
}

.product-alt .btn-primary {
    color: var(--accent-purple);
}

.install-cmd {
    font-size: 13px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'SF Mono', ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    user-select: all;
    cursor: text;
}

/* ── Footer ── */

.footer {
    text-align: center;
    padding: 48px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Animations ── */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-content .fade-in:nth-child(2) { transition-delay: 0.1s; }
.product-content .fade-in:nth-child(3) { transition-delay: 0.2s; }
.product-content .fade-in:nth-child(4) { transition-delay: 0.3s; }
.product-content .fade-in:nth-child(5) { transition-delay: 0.4s; }

.hero-content .fade-in:nth-child(2) { transition-delay: 0.15s; }

/* ── Responsive ── */

@media (max-width: 734px) {
    .nav-product {
        display: none;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .stats {
        gap: 40px;
    }

    .product {
        padding: 100px 22px;
    }

    .product-tagline {
        margin-bottom: 48px;
    }
}
