* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px -35px rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px) saturate(120%);
}

.lang-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.8);
    color: rgba(51, 65, 85, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -20px rgba(37, 99, 235, 0.6);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(14, 116, 144, 0.65));
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 12px 35px -18px rgba(14, 165, 233, 0.8);
}

body.dark .language-switcher {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 55px -35px rgba(15, 118, 110, 0.55);
}

body.dark .lang-btn {
    background: rgba(30, 41, 59, 0.8);
    color: rgba(226, 232, 240, 0.9);
}

body.dark .lang-btn.active {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.9), rgba(56, 189, 248, 0.7));
    color: #020617;
}

.aurora {
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.6;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    mix-blend-mode: screen;
    animation: drift 28s ease-in-out infinite alternate;
}

.aurora--primary {
    top: -30vh;
    left: -15vw;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.28), transparent 68%),
                radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.24), transparent 72%);
}

.aurora--secondary {
    bottom: -25vh;
    right: -10vw;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.25), transparent 70%),
                radial-gradient(circle at 60% 70%, rgba(59, 130, 246, 0.18), transparent 68%);
    animation-duration: 34s;
}

body.dark .aurora {
    mix-blend-mode: lighten;
    opacity: 0.55;
}

.feature {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.73);
    padding: 1.75rem;
    box-shadow: 0 28px 65px -40px rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(22px) saturate(120%);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 50%);
    transition: opacity 250ms ease;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 35px 75px -35px rgba(56, 189, 248, 0.45);
}

.feature:hover::after {
    opacity: 1;
}

body.dark .feature {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(100, 116, 139, 0.28);
    box-shadow: 0 30px 80px -45px rgba(15, 23, 42, 0.95);
}

body.dark .feature:hover {
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 30px 85px -40px rgba(56, 189, 248, 0.55);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.feature-icon .material-icons-round {
    font-size: 1.5rem;
}

.screenshot {
    margin: 0 auto 4rem;
    padding: 0;
    display: flex;
    justify-content: center;
}

.screenshot-stack {
    position: relative;
    width: clamp(280px, 60vw, 520px);
    height: 600px;
}

.screenshot-layer {
    position: absolute;
    top: 0;
    left: 50%;
    height: 600px;
    width: auto;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 80px -45px rgba(15, 23, 42, 0.5);
    transform-origin: center;
    transition: transform 220ms ease;
}

.screenshot-layer:nth-child(1) {
    transform: translate(-145%, 5%) rotate(-20deg);
    z-index: 1;
}

.screenshot-layer:nth-child(2) {
    transform: translate(-50%, 0);
    z-index: 3;
    box-shadow: none;
}

.screenshot-layer:nth-child(3) {
    transform: translate(45%, 5%) rotate(20deg);
    z-index: 2;
}

body.dark .screenshot-layer {
    box-shadow: 0 36px 90px -50px rgba(2, 6, 23, 0.7);
}

body.dark .screenshot-layer:nth-child(2) {
    box-shadow: none;
}


.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    margin-top: 4rem;
}

body.dark .footer {
    background: rgba(2, 6, 23, 0.5);
    border-color: rgba(71, 85, 105, 0.3);
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(14, 165, 233, 0.9);
}

.footer-links .separator {
    opacity: 0.45;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .screenshot-stack {
        width: clamp(240px, 72vw, 420px);
    }

    .screenshot-layer:nth-child(1) {
        transform: translate(-118%, 0) rotate(-5deg);
    }

    .screenshot-layer:nth-child(3) {
        transform: translate(18%, 0) rotate(5deg);
    }
}

@media (max-width: 640px) {
    .language-switcher {
        gap: 0.35rem;
    }

    .lang-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.72rem;
    }

    .screenshot {
        margin-bottom: 2.75rem;
    }

    .screenshot-stack {
        width: min(280px, 92vw);
        height: 440px;
    }

    .screenshot-layer {
        height: 440px;
    }

    .screenshot-layer:nth-child(1) {
        transform: translate(-102%, 0) rotate(-8deg);
    }

    .screenshot-layer:nth-child(2) {
        transform: translate(-50%, 0);
    }

    .screenshot-layer:nth-child(3) {
        transform: translate(2%, 0) rotate(8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora {
        animation: none;
    }

    .feature,
    .lang-btn,
    .screenshot-stack,
    .reveal {
        transition: none;
    }
}


@keyframes drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(2vw, 4vh, 0) scale(1.05);
    }
}

body.dark .logo {
    filter: invert(1) hue-rotate(180deg);
}
