/* Sola Launcher — Theme : Sola blue + glass + premium typography */

/* ── Inter Variable ─────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
}

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

:root {
    /* ── Palette ─── */
    --bg-deep: #02112a;
    --bg-elevated: #031a3d;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-strong: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-strong: rgba(255, 255, 255, 0.16);
    --text: #fff;
    --text-muted: rgba(255, 255, 255, 0.66);
    --text-faint: rgba(255, 255, 255, 0.42);
    --accent: #007AFF;
    --accent-cyan: #0A8ACF;
    --accent-glow: rgba(0, 122, 255, 0.32);

    /* ── Typography scale (fluid) ─── */
    --fs-xs: clamp(11px, 0.7vw, 13px);
    --fs-sm: clamp(13px, 0.95vw, 15px);
    --fs-base: clamp(15px, 1.1vw, 17px);
    --fs-lg: clamp(17px, 1.3vw, 20px);
    --fs-xl: clamp(20px, 1.7vw, 24px);
    --fs-2xl: clamp(28px, 3.5vw, 38px);
    --fs-3xl: clamp(34px, 4.5vw, 48px);
    --fs-4xl: clamp(40px, 6vw, 64px);
    --fs-5xl: clamp(48px, 8vw, 88px);

    /* ── Spacing rythm ─── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;
    --space-40: 160px;

    /* ── Layout ─── */
    --max-width: 1180px;
    --container-padding: clamp(20px, 4vw, 32px);

    /* ── Motion ─── */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    /* Smooth scroll est géré par Lenis en JS. CSS smooth-scroll en fallback. */
    scroll-behavior: smooth;
}

/* Désactiver le scroll-behavior CSS quand Lenis est actif */
html.lenis { scroll-behavior: auto !important; }
html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "Segoe UI", Roboto, system-ui, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.62;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 122, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 30%, rgba(10, 138, 207, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 200ms var(--ease-out-quart);
}

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

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

.container.narrow { max-width: 760px; }

/* ── Gradient text accent ─── */
.grad-accent {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Reveal on scroll ─── */
[data-reveal],
[data-stagger] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1000ms var(--ease-out-expo),
                transform 1000ms var(--ease-out-expo);
    will-change: opacity, transform;
}

[data-reveal].is-visible,
[data-stagger].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="scale"] { transform: translateY(20px) scale(0.95); }
[data-reveal="scale"].is-visible { transform: translateY(0) scale(1); }

[data-reveal="blur"] {
    filter: blur(10px);
    transition: opacity 1100ms var(--ease-out-expo),
                transform 1100ms var(--ease-out-expo),
                filter 1100ms var(--ease-out-expo);
}
[data-reveal="blur"].is-visible { filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-stagger] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ── Cookie consent banner (RGPD) ───────────────────── */
.cookie-banner {
    position: fixed;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    width: calc(100% - 2 * var(--space-4));
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-5);
    background: rgba(3, 26, 61, 0.92);
    border: 1px solid var(--border-glass-strong);
    border-radius: 18px;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    animation: cookieUp 600ms var(--ease-out-expo);
}

@keyframes cookieUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.cookie-btn {
    appearance: none;
    border: none;
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 200ms var(--ease-out-quart);
    white-space: nowrap;
}

.cookie-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-glass-strong);
}
.cookie-decline:hover { color: var(--text); }

.cookie-accept {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.4);
}
.cookie-accept:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-actions { justify-content: center; }
}

/* ── Scroll progress bar (top of page) ──────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
    z-index: 200;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 80ms linear;
    will-change: width;
}

/* ── Sticky reveal : three pages, one swipe ────────── */
.sticky-reveal {
    padding: var(--space-12) 0;
    position: relative;
}

.sticky-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sticky-stage {
    position: sticky;
    top: 10vh;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-device {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 9 / 19.5;
    filter: drop-shadow(0 60px 120px rgba(0, 0, 0, 0.65))
            drop-shadow(0 0 100px var(--accent-glow));
    position: relative;
}

.sticky-device::after {
    content: "";
    position: absolute;
    inset: -15%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.2) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
    animation: ambient 8s var(--ease-out-quart) infinite;
}

.sticky-device .device-screen img {
    transition: opacity 600ms var(--ease-out-quart),
                transform 600ms var(--ease-out-quart);
}

.sticky-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sticky-steps .step {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12) 0;
    opacity: 0.3;
    transition: opacity 600ms var(--ease-out-quart),
                transform 600ms var(--ease-out-quart);
    transform: translateY(8px);
}

.sticky-steps .step.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Per-step image : hidden on desktop (single sticky device is used) */
.step-media { display: none; }

.sticky-steps .step .tag {
    margin-bottom: var(--space-5);
}

.sticky-steps .step h3 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: var(--space-5);
    max-width: 440px;
}

.sticky-steps .step p {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1.55;
    max-width: 440px;
}

@media (max-width: 900px) {
    /* Mobile : no sticky. Each step stacks its own image + text,
       so nothing overlaps when scrolling. */
    .sticky-track {
        display: block;
    }
    .sticky-stage { display: none; }

    .sticky-steps .step {
        min-height: auto;
        opacity: 1;
        transform: none;
        padding: var(--space-12) 0;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
    }
    .sticky-steps .step:last-child { border-bottom: none; }

    .step-media {
        display: block;
        max-width: 240px;
        margin: 0 auto var(--space-8);
        aspect-ratio: 9 / 19.5;
        filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6))
                drop-shadow(0 0 60px var(--accent-glow));
    }

    .sticky-steps .step h3 { max-width: none; margin-inline: auto; font-size: clamp(24px, 7vw, 32px); }
    .sticky-steps .step p { max-width: none; margin-inline: auto; font-size: var(--fs-base); }
    .sticky-steps .step .tag { margin-inline: auto; }
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
    padding: var(--space-5) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 17, 42, 0.65);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--border-glass);
}

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

.brand {
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.brand-small {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.nav {
    display: flex;
    gap: var(--space-8);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.nav a { color: var(--text-muted); font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ── Language toggle ── */
.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-toggle button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 200ms var(--ease-out-quart), background 200ms var(--ease-out-quart);
}

.lang-toggle button:hover { color: var(--text); }

.lang-toggle button.is-active {
    background: var(--accent);
    color: #fff;
}

/* ── Section progress indicator (right side) ─────────── */
.scroll-nav {
    position: fixed;
    right: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: auto;
}

.scroll-nav a {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: all 300ms var(--ease-out-quart);
    position: relative;
}

.scroll-nav a::after {
    content: attr(data-label);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 240ms var(--ease-out-quart);
    background: rgba(2, 17, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
}

.scroll-nav a:hover {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--accent-glow);
}

.scroll-nav a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.scroll-nav a.is-active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.3);
}

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

/* ── Hero (split layout: text + big device) ─── */
.hero {
    padding: var(--space-20) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    text-align: left;
    max-width: 560px;
}

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

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        min-height: auto;
        text-align: center;
    }
    .hero-text { margin: 0 auto; text-align: center; }
    .hero-text .hero-actions { align-items: center; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 18px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2.2s var(--ease-out-quart) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    font-size: var(--fs-5xl);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin-bottom: var(--space-8);
}

.hero h1 span { display: inline-block; }

.hero .tagline {
    font-size: var(--fs-xl);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: var(--space-10);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.012em;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.hero-meta {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

/* ── Device frame ─── */
.hero-device {
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 9 / 19.5;
    position: relative;
    filter: drop-shadow(0 60px 120px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 100px var(--accent-glow));
    transform-style: preserve-3d;
}

.hero-device::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.22) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
    animation: ambient 8s var(--ease-out-quart) infinite;
}

@keyframes ambient {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.device-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 44px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.device-screen img,
.device-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-frame::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #000;
    z-index: 2;
}

/* ── Stats strip ─── */
.stats {
    padding: 0 0 var(--space-20);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
    padding: var(--space-10) var(--space-6);
    background: linear-gradient(180deg, var(--bg-glass-strong) 0%, var(--bg-glass) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.stats .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(0,122,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stat { position: relative; }

.stat-value {
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent) 140%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-feature-settings: 'tnum';
}

.stat-value .unit {
    font-size: 0.45em;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    margin-left: 2px;
}

.stat-label {
    margin-top: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── Section générique ─── */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-tight { padding-top: var(--space-12); }

.kicker {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: var(--space-5);
    padding: 4px 14px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.25);
    border-radius: 999px;
}

.section .container > .kicker {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin: 0 auto var(--space-5);
    max-width: 800px;
    text-align: center;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-20);
    line-height: 1.55;
    font-weight: 400;
}

/* ── Feature row ─── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
    margin-bottom: var(--space-32);
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-media {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 9 / 19.5;
    filter: drop-shadow(0 60px 120px rgba(0, 0, 0, 0.65))
            drop-shadow(0 0 80px rgba(0, 122, 255, 0.22));
    transition: transform 800ms var(--ease-out-expo);
}

.feature-row:hover .feature-media {
    transform: translateY(-6px);
}

.feature-text { max-width: 500px; }

.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.feature-text h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: var(--space-5);
}

.feature-text p {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullets li {
    color: var(--text-muted);
    font-size: var(--fs-base);
    line-height: 1.55;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    position: relative;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 12px var(--accent-glow);
}

.bullets li::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* ── Feature grid ─── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 400ms var(--ease-out-quart),
                border-color 400ms var(--ease-out-quart),
                box-shadow 400ms var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.5), rgba(10, 138, 207, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 400ms var(--ease-out-quart);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before { opacity: 1; }

.feature-card .icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.018em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

/* ───────────────────────────────────────────────────────
   "DESIGNED" sections : visuals that speak more than text
   ─────────────────────────────────────────────────────── */

/* ── Pull quotes ─── */
.pullquote-section {
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
}

.pullquote {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    position: relative;
    padding: var(--space-8) var(--space-6);
}

.pullquote .quote-mark {
    font-size: 1.8em;
    line-height: 0;
    vertical-align: -0.3em;
    color: var(--accent);
    opacity: 0.4;
    margin-right: 4px;
    font-family: Georgia, serif;
}

.pullquote .quote-attr {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
    color: var(--text-faint);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Tilt demo (interactive glass card) ─── */
.tilt-demo {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    perspective: 1400px;
    position: relative;
}

.tilt-card {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 240ms var(--ease-out-quart);
    cursor: default;
    padding: var(--space-8);
}

.tilt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 30% 0%, rgba(0, 122, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 280ms var(--ease-out-quart);
    pointer-events: none;
}

.tilt-card:hover .tilt-glow { opacity: 1; }

.tilt-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.tilt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.tilt-time {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tilt-time .blink {
    opacity: 0.5;
    animation: blink 1.4s steps(2) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.tilt-meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.tilt-weather {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex: 1;
}

.tilt-temp {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--accent);
}

.tilt-unit { font-size: 0.55em; opacity: 0.65; }

.tilt-cond {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tilt-icon {
    font-size: 36px;
}

.tilt-weather-main {
    font-size: var(--fs-base);
    font-weight: 600;
}

.tilt-loc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.tilt-event {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 14px;
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 500;
}

.tilt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.tilt-hint {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--fs-xs);
    color: var(--text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (hover: none) {
    .tilt-hint { display: none; }
}



/* Material You demo : wallpaper + palette swatches */
.material-demo {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.material-device {
    aspect-ratio: 9 / 19.5;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.65))
            drop-shadow(0 0 80px var(--accent-glow));
}

.material-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
}

.material-palette {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform 300ms var(--ease-out-quart);
    cursor: default;
}

.swatch:hover { transform: translateY(-3px) scale(1.15); }

.swatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 55%);
}

.material-side-text {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1.55;
    max-width: 420px;
}

@media (max-width: 760px) {
    .material-demo {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: var(--space-8);
    }
    .material-side { align-items: center; text-align: center; }
    .material-palette { justify-content: center; }
}

/* ── Performance hero (single number, no comparison) ─── */
.perf-hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12) var(--space-8);
    background: linear-gradient(180deg, var(--bg-glass-strong) 0%, var(--bg-glass) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.perf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(0,122,255,0.16) 0%, transparent 60%);
    pointer-events: none;
}

.perf-big {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.perf-num {
    font-size: clamp(72px, 14vw, 140px);
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent) 130%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.perf-num-unit {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    color: var(--text-muted);
}

.perf-caption {
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.perf-tags {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    position: relative;
}

.perf-tag {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Promise grid (no comparison) ─── */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    max-width: 860px;
    margin: 0 auto;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    font-size: var(--fs-base);
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 300ms var(--ease-out-quart), border-color 300ms var(--ease-out-quart);
}

.promise-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.35);
}

.promise-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 700px) {
    .promise-grid { grid-template-columns: 1fr; }
}

/* ── Languages chips (compact pills) ───────────── */
.lang-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 760px;
    margin: 0 auto;
}

.lang-grid span {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: all 300ms var(--ease-out-quart);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
    line-height: 1.2;
}

.lang-grid span:hover {
    transform: translateY(-2px);
    color: var(--text);
    background: var(--bg-glass-strong);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.22);
}

.lang-grid .more {
    color: var(--accent);
    font-weight: 700;
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.35);
    padding: 8px 18px;
}

/* ── Privacy diagram ──────────────────── */
.privacy-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-wrap: wrap;
}

.pd-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.pd-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.pd-user .pd-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 12px 30px var(--accent-glow);
}

.pd-cross .pd-icon {
    filter: grayscale(0.5);
    opacity: 0.7;
}

.pd-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    max-width: 160px;
    font-weight: 500;
}

.pd-loop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    min-width: 180px;
}

.pd-loop svg {
    width: 180px;
    height: 60px;
    overflow: visible;
}

.pd-loop svg path {
    stroke-dashoffset: 0;
    animation: dash 8s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -200; }
}

.pd-loop-label {
    font-size: var(--fs-xs);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .privacy-diagram { flex-direction: column; gap: var(--space-6); padding: var(--space-8); }
    .pd-loop svg { transform: rotate(90deg); }
}


/* ── CTA ─── */
.cta {
    padding: var(--space-32) 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 122, 255, 0.14) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.06), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(10, 138, 207, 0.05), transparent 50%);
    pointer-events: none;
}

.cta h2 {
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin-bottom: var(--space-5);
}

.cta p {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    margin-bottom: var(--space-10);
    line-height: 1.55;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.cta-meta {
    margin-top: var(--space-5);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: transform 280ms var(--ease-out-quart),
                box-shadow 280ms var(--ease-out-quart);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 700ms var(--ease-out-quart);
}

.btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 40px rgba(0, 122, 255, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn:hover::after { transform: translateX(100%); }

/* ── Footer ─── */
.site-footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border-glass);
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-6);
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-tagline {
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    justify-content: center;
}

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

.copyright {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    text-align: right;
}

/* ── Legal pages ─── */
.legal {
    max-width: 760px;
    padding: var(--space-20) var(--container-padding);
    margin: 0 auto;
}

.legal h1 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2);
}

.legal .updated {
    color: var(--text-faint);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-12);
}

.legal h2 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    letter-spacing: -0.018em;
}

.legal h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

.legal p, .legal li {
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    font-size: var(--fs-base);
}

.legal ul {
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
}

.legal strong {
    color: var(--text);
    font-weight: 600;
}

.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

/* ── Mobile ─── */
@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        margin-bottom: var(--space-20);
    }
    .feature-row.reverse { direction: ltr; }
    .feature-text {
        text-align: center;
        margin: 0 auto;
    }
    .feature-text .tag { margin: 0 auto var(--space-5); }
    .bullets { text-align: left; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 700px) {
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8) var(--space-4);
        padding: var(--space-8) var(--space-5);
    }
    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .copyright { text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
    .nav { gap: var(--space-4); }
    .nav a:nth-child(2) { display: none; }

    /* Hero : compact text so the device shows almost immediately */
    .hero { padding: var(--space-8) 0 var(--space-10); }
    .hero-grid { gap: var(--space-6); }
    .hero h1 {
        font-size: clamp(34px, 11vw, 46px);
        margin-bottom: var(--space-4);
    }
    .hero .tagline {
        font-size: var(--fs-base);
        margin-bottom: var(--space-6);
    }
    .hero-actions { margin-bottom: var(--space-4); }

    /* Device = the star : keep it prominent + consistent everywhere */
    .hero-device { max-width: 300px; }
    .feature-media,
    .material-device { max-width: 280px; }
    .step-media { max-width: 210px; }

    .section { padding: var(--space-16) 0; }
    .section-tight { padding-top: var(--space-8); }
    .cta { padding: var(--space-20) 0; }

    /* Tighter section titles on small screens */
    .section-title { font-size: clamp(28px, 8vw, 36px); }
    .feature-text h2 { font-size: clamp(26px, 7.5vw, 34px); }

    /* Pull quotes smaller */
    .pullquote { font-size: clamp(24px, 7vw, 34px); padding: var(--space-5) var(--space-2); }
}
