:root {
    --bg: #FFFFFF;
    --bg-alt: #FFFFFF;
    --text: #111111;
    --muted: #525252;
    --muted2: #737373;
    --hover: #F5F5F5;
    --accent: #000000;

    --r-ui: 16px;
    --r-lg: 24px;

    --container: 1120px;
    --text-width: 680px;

    /* Spacing */
    --s-12: 12px;
    --s-16: 16px;
    --s-24: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

[id] {
    scroll-margin-top: 72px;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 Helvetica, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 24px;
}

/* Skip link */
.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: 20px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: #fff;
    color: #000;
    z-index: 2000;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--text);
}

/* SECTIONS */
.section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--bg);
}

.section.compact {
    padding: clamp(44px, 5.5vw, 72px) 0;
}

.section:nth-of-type(odd) {
    background: var(--bg-alt);
}

.section:nth-child(2n) {
    background: var(--bg-alt);
}

/* Force Hero to be white (1st section) */
.section.hero {
    background: var(--bg);
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(24px, 4vw, 40px);
    /* Less spacing below hero */
}

/* TYPOGRAPHY */
.kicker {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted2);
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 24px;
    max-width: 800px;
}

h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

h3 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}

.lead {
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.5;
    color: var(--muted);
    font-weight: 400;
    margin: 0 0 32px;
    max-width: var(--text-width);
}

/* Unified Text Width for descriptions */
.section p:not(.lead):not(.micro) {
    max-width: var(--text-width);
}

.muted {
    color: var(--muted);
}

.micro {
    font-size: 13px;
    color: var(--muted2);
    margin-top: 12px;
}

.highlight {
    color: var(--text);
}

/* HERO */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .store-buttons {
        justify-content: center;
    }

    .lead {
        margin-inline: auto;
    }
}

/* TYPO BLOCK */
.typo-block {
    text-align: center;
    padding: clamp(64px, 6vw, 88px) 0;
}

.typo-big {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.typo-small {
    font-size: 16px;
    color: var(--muted2);
    font-weight: 400;
}

/* STORE BADGES */
.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    align-items: center;
}

.store-btn {
    display: block;
    opacity: 1;
    /* Full opacity */
    transition: opacity 0.2s;
}

.store-btn:hover {
    opacity: 1;
}

.store-btn img {
    height: 44px;
    /* Optimal height for touch targets */
    width: auto;
}

/* GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
}

@media (max-width: 900px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.item p.muted {
    max-width: 100%;
    /* In grids allow text to fill */
}

/* LISTS (Safety) */
.list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.list li {
    padding: 10px 0;
    color: var(--muted);
    font-size: 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.list li::before {
    content: "•";
    color: #CCC;
}

/* SLIDER */
/* SLIDER */
.slider {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    padding: 0 40px;
    /* Room for shadows on the sides */
    position: relative;
}

.slides {
    display: grid;
    grid-template-areas: "stack";
    background: transparent;
    overflow: visible;
    /* Fix shadow clipping */
}

.slide {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}

.slide img {
    display: block;
    width: auto;
    max-width: min(340px, 100%);
    /* Narrower, more realistic phone width */
    height: auto;
    max-height: 720px;
    object-fit: contain;
    border-radius: 20px;
    /* Slight rounding for premium feel, as per previous "rectangle but premium" vibe */
    box-shadow: none;
    /* Deep premium shadow */
    margin-inline: auto;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 32px 0 20px;
    /* Increased padding to clear shadow and add breathing room */
}


.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #E0E0E0;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot.is-active {
    background: var(--text);
    transform: scale(1.3);
}

/* VIDEO */
.video-container {
    margin-top: 24px;
    text-align: center;
}

.video-frame {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
    background: #000;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-caption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted2);
}

/* FOOTER */
.footer {
    padding: 80px 0 40px;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

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

    .foot-desc {
        margin-inline: auto;
    }

    .foot-brand {
        display: inline-block;
    }
}

.foot-brand {
    margin-bottom: 24px;
    display: block;
}

.foot-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 280px;
}

.copyright {
    color: var(--muted2);
    font-size: 12px;
}

.foot-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.foot-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foot-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.15s;
}

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

.center {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

/* --- LANGUAGE SWITCHER --- */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #EEEEEE;
}

.lang-btn::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: 1;
}

.lang-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    min-width: 140px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 2000;

    /* Animation state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.lang-dropdown.is-open .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    transition: all 0.2s;
}

.lang-item:hover {
    background: #F9F9F9;
    color: var(--text);
}

.lang-item.is-active {
    background: #F5F5F5;
    color: var(--text);
    font-weight: 700;
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 32px;
        z-index: 1050;
        padding: max(40px, calc(env(safe-area-inset-top) + 24px)) 40px max(40px, calc(env(safe-area-inset-bottom) + 24px));
        margin: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        /* Hide state */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
    }

    .menu.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .menu a {
        font-size: 24px;
        font-weight: 600;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .menu.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger links fade-in */
    .menu.is-open a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu.is-open a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .menu.is-open a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .menu.is-open a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .menu.is-open a:nth-child(5) {
        transition-delay: 0.3s;
    }

    .menu.is-open #lang-switcher {
        transition-delay: 0.35s;
        opacity: 1;
        transform: translateY(0);
    }

    #lang-switcher {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .lang-dropdown {
        margin-left: 0;
        margin-top: 8px;
        margin-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .lang-list {
        top: auto;
        bottom: calc(100% + 10px);
        right: 50%;
        left: auto;
        min-width: min(140px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        max-height: min(50vh, 320px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(50%) translateY(8px);
    }

    .lang-dropdown.is-open .lang-list {
        transform: translateX(50%) translateY(0);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    h1 {
        font-size: 34px;
    }

    .section {
        padding: 48px 0;
    }

    .container {
        padding: 0 20px;
    }

    .typo-big {
        font-size: 28px;
    }

    .store-btn img {
        height: 40px;
    }
}
