/* ------------------------------------------------------------------
   Landing page skin.

   Single source of truth for the EN (/), FR (/fr/) and DE (/de/)
   marketing pages: this block used to be duplicated inline (18 KB)
   inside each page.

   Load order matters: landing.css -> landing-10.css -> landing-page.css
   -> tailwind.css (utilities last, so Tailwind keeps the last word).
   ------------------------------------------------------------------ */

.feature-card-placeholder {
    display: none;
}

.cta-button {
    background: #8b5cf6;
}

.cta-button:hover {
    background: #7c3aed;
}

#performance h2 .ap-phrase {
    display: inline-block;
}

#performance h2 .ap-phrase + .ap-phrase {
    margin-left: 0.35rem;
}

#performance h2 .slide-left,
#performance h2 .slide-right,
#performance h2 .fade-up {
    opacity: 0 !important;
    transform: translateX(0);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#performance h2 .slide-left {
    transform: translateX(-25vw) !important;
    transition-delay: 0ms;
}

#performance h2 .slide-right {
    transform: translateX(25vw) !important;
    transition-delay: 120ms;
}

#performance h2 .fade-up {
    transform: translateY(24px) !important;
    transition-duration: 1050ms;
    transition-delay: 220ms;
}

#performance h2.reveal.in .slide-left,
#performance h2.reveal.in .slide-right,
#performance h2.reveal.in .fade-up {
    opacity: 1 !important;
    transform: none !important;
}

.reveal-strong.reveal-on-scroll {
    transform: translateY(50px);
    transition-duration: 1.1s;
}

.timeline-line {
    bottom: 12rem;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.text-indigo-400 {
    color: #a78bfa !important;
}

.bg-indigo-500 {
    background-color: #8b5cf6 !important;
}

.bg-indigo-400 {
    background-color: #a78bfa !important;
}

.border-indigo-500 {
    border-color: rgba(139, 92, 246, 0.8) !important;
}

.focus\:border-indigo-500:focus {
    border-color: rgba(139, 92, 246, 0.95) !important;
}

.focus\:ring-indigo-500:focus {
    --tw-ring-color: rgba(139, 92, 246, 0.65) !important;
}

.glow-effect {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%) !important;
}

.marker-hero {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border-radius: 0.35em;
    box-decoration-break: clone;
    padding: 0.08em 0.22em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.section-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.section-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    animation: float 14s ease-in-out infinite;
}

.section-hero-orb-1 {
    top: -20%;
    left: -10%;
    width: 80vw;
    height: 80vw;
    background: rgba(139, 92, 246, 0.2);
}

.section-hero-orb-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: rgba(14, 165, 233, 0.18);
}

.section-panel {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
}

.section-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.28), transparent 52%), radial-gradient(circle at bottom left, rgba(76, 29, 149, 0.3), transparent 48%);
    z-index: 0;
    pointer-events: none;
}

.section-fade::before {
    background: linear-gradient(to bottom, rgba(16, 16, 16, 0) 0%, rgba(16, 16, 16, 0.35) 35%, rgba(16, 16, 16, 0.7) 70%, rgba(16, 16, 16, 0.95) 100%);
}

.section-top-blend {
    position: relative;
}

.section-top-blend::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(16, 16, 16, 0) 0%, rgba(11, 11, 11, 0.6) 45%, rgba(11, 11, 11, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

.section-top-blend .section-content {
    position: relative;
    z-index: 1;
}

.speed-text {
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
    transform: skewX(-6deg);
    animation: speed-jitter 0.28s linear infinite;
}

.speed-text::after,
.speed-text::before {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(147, 197, 253, 0.8) 45%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
    filter: blur(0.6px);
    pointer-events: none;
}

.speed-text::before {
    top: 0.05em;
    animation: speed-flash 1.1s ease-in-out infinite;
}

.speed-text::after {
    bottom: 0.05em;
    animation: speed-flash 0.9s ease-in-out infinite;
    animation-delay: 0.2s;
}

.speed-text .speed-line {
    position: absolute;
    left: -18%;
    right: -4%;
    top: 0.55em;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(147, 197, 253, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.55;
    filter: blur(0.8px);
    animation: speed-flash 1.3s ease-in-out infinite;
    animation-delay: 0.45s;
    pointer-events: none;
}

@keyframes speed-jitter {
    0% {
        transform: skewX(-6deg) translateX(0);
    }

    25% {
        transform: skewX(-6deg) translateX(0.5px);
    }

    50% {
        transform: skewX(-6deg) translateX(-0.5px);
    }

    75% {
        transform: skewX(-6deg) translateX(0.8px);
    }

    100% {
        transform: skewX(-6deg) translateX(0);
    }
}

@keyframes speed-flash {
    0% {
        opacity: 0.1;
        transform: translateX(30%);
    }

    35% {
        opacity: 0.8;
        transform: translateX(0%);
    }

    100% {
        opacity: 0.1;
        transform: translateX(-30%);
    }
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    /* No backdrop-filter: the only thing behind the pills is the 70-120px
       blurred orbs, so a 6px backdrop blur was invisible but recomputed on the
       GPU every frame while the orbs float. */
}

.section-content {
    position: relative;
    z-index: 1;
}

/* Staged blur reveal ("Mais les optimiser prend du temps. / Trop de temps.").
   Kept as designed (3.6s / 7.2s, blur -> sharp) but played ONCE: the previous
   implementation replayed it on every scroll entry.
   `will-change` is dropped by JS on transitionend so the promoted layer is not
   kept for the page lifetime. */
.blur-reveal,
.blur-reveal-long {
    opacity: 0;
    filter: blur(18px);
    transform: none;
    transition: opacity 3.6s cubic-bezier(0.16, 1, 0.3, 1), filter 3.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter;
}

.blur-reveal-long {
    transition: opacity 7.2s cubic-bezier(0.16, 1, 0.3, 1), filter 7.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-reveal.is-visible,
.blur-reveal-long.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.hero-bg .hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0), #101010);
    pointer-events: none;
}

.underline-hand {
    position: relative;
    display: inline-block;
    padding-bottom: 0.28em;
}

.underline-hand::after {
    content: "";
    position: absolute;
    left: -0.22em;
    right: -0.22em;
    bottom: 0.02em;
    height: 0.34em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'%3E%3Cpath d='M6 16 Q 100 12 194 16' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
    pointer-events: none;
}

.site-header__inner {
    gap: 1rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    transition: padding 200ms ease;
}

.site-header__row {
    flex: 1;
}

.site-header__links {
    margin-left: auto;
}

.site-header__center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.site-header__center-link {
    color: rgb(209 213 219);
    transition: color 160ms ease;
}

.site-header__center-link:hover {
    color: #ffffff;
}

#how-it-works-urls {
    scroll-margin-top: 120px;
}

.how-it-works-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgb(209 213 219);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.how-it-works-toggle:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.how-it-works-toggle:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.9);
    outline-offset: 2px;
}

.how-it-works-toggle__icon {
    transition: transform 200ms ease;
}

.how-it-works-toggle.is-open .how-it-works-toggle__icon {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .site-header__center-nav {
        display: flex;
    }
}

.hero-title {
    margin-top: 4rem;
}

.site-header.is-scrolled .site-header__inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.hero-cta {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 639px) {
    #hero {
        padding-top: 7.5rem;
    }

    .site-header__inner {
        flex-direction: column;
        gap: 0.6rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        align-items: center;
        justify-content: flex-start;
    }

    .site-header__row {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    .site-header__links {
        margin-left: 0;
        gap: 0.5rem;
    }

    .site-header__links a {
        font-size: 0.9rem;
    }

    .site-header__center-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.6rem !important;
        line-height: 1.05 !important;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .hero-lead {
        font-size: 1.1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 2rem;
    }

    .hero-lead .underline-hand {
        padding-bottom: 0;
    }

    .hero-lead .underline-hand::after {
        bottom: -0.1em;
    }

    .speed-text {
        display: inline;
    }

    .timeline-intro .underline-hand {
        padding-bottom: 0;
        font-weight: 700;
    }

    .timeline-intro .underline-hand::after {
        display: none;
        content: none;
    }

    .hero-cta {
        gap: 0.75rem;
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    .hero-demo {
        margin-top: 0.625rem;
    }

    .section-panel {
        position: relative;
        overflow: hidden;
    }

    .section-panel .section-content {
        position: relative;
        z-index: 1;
    }

    .section-panel .section-hero-bg {
        opacity: 1;
    }

    .section-hero-orb {
        filter: blur(70px);
        opacity: 0.75;
    }

    .section-hero-orb-1 {
        width: 120vw;
        height: 120vw;
        top: -12%;
        left: -25%;
    }

    .section-hero-orb-2 {
        width: 110vw;
        height: 110vw;
        bottom: -12%;
        right: -20%;
    }

    .feature-card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .pill-list {
        gap: 0.4rem;
        margin-top: 0.4rem;
    }

    .pill {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .timeline-number {
        font-size: 2.5rem;
    }

    .timeline-icon .w-16 {
        width: 3rem;
        height: 3rem;
    }

    .timeline-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .timeline-intro {
        margin-top: 0;
        margin-bottom: 0.5rem !important;
        font-size: 1rem;
        line-height: 1.4;
    }

    .timeline-steps {
        padding-top: 0 !important;
        padding-left: 0;
        position: relative;
    }

    .timeline-steps > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.5rem;
    }

    .timeline-steps::before {
        content: "";
        position: absolute;
        top: 0.2rem;
        bottom: 0.2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 0;
    }

    .timeline-line {
        display: none !important;
    }

    .timeline-step {
        position: relative;
        z-index: 1;
        text-align: left;
    }

    .timeline-logo-row {
        width: 100%;
        justify-content: center !important;
        text-align: center;
    }

    .timeline-step > div:first-child {
        width: auto;
        max-width: 90%;
        margin: 0.5rem auto;
        padding: 0.4rem 0.9rem 0.6rem;
        background: #101010;
        box-shadow: 0 0 0 0.6rem #101010;
        border-radius: 0.75rem;
        order: 1;
    }

    .timeline-step > div:last-child {
        display: none;
    }

    .timeline-icon {
        display: none !important;
        padding-top: 0;
        padding-bottom: 0;
        position: static;
        left: auto;
        top: auto;
        z-index: 2;
        align-self: center;
        width: 100%;
        margin: 0 auto 0.25rem;
        order: 1;
    }

    .timeline-outro {
        margin-top: 3rem;
    }

    .savings-controls {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .savings-controls input[type="range"] {
        min-width: 0;
        flex: 1 1 auto;
    }

    .savings-controls button {
        width: 2.75rem;
        height: 2.5rem;
        padding: 0;
        font-size: 1rem;
        flex: 0 0 2.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   Decorative (infinite) animations are desktop-only.

   Measured on a 4x-throttled mobile profile: these loops keep the main
   thread busy ~27% of the time while the page is idle (no interaction),
   and they never stop. They are pure decoration, so they are disabled
   below 1024px. The "speed" effect is kept: it only animates transform and
   opacity (compositor) and is paused off-screen.
   ------------------------------------------------------------------ */
@media (max-width: 1023px) {
    .hero-orb,
    .section-hero-orb,
    .gradient-text-hero,
    .glitch::before,
    .glitch::after,
    #demo .animate-pulse {
        animation: none !important;
    }

    /* Keep the static gradient instead of a painted, never-ending
       background-position animation. */
    .gradient-text-hero {
        background-position: 0 0 !important;
    }

}

/* Logo glitch removed: its `clip` animation never stopped and repainted the
   blurred fixed header on every frame, for the whole visit. */
.glitch::before,
.glitch::after {
    content: none;
    animation: none;
}

/* Decorative loops are paused while their section is off-screen
   (`is-offscreen` is toggled by landing.js). Invisible by definition, but they
   kept the main thread / GPU busy for the whole visit on desktop and
   landscape tablets. */
.is-offscreen .hero-orb,
.is-offscreen .section-hero-orb,
.is-offscreen .gradient-text-hero,
.is-offscreen .speed-text,
.is-offscreen .speed-text::before,
.is-offscreen .speed-text::after,
.is-offscreen .speed-text .speed-line,
.is-offscreen .animate-pulse {
    animation-play-state: paused !important;
}

/* Last-resort escape hatch for users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .section-hero-orb,
    .gradient-text-hero,
    .glitch::before,
    .glitch::after,
    .speed-text,
    .speed-text::before,
    .speed-text::after,
    .speed-text .speed-line,
    #demo .animate-pulse {
        animation: none !important;
    }

    .blur-reveal,
    .blur-reveal-long,
    .reveal-on-scroll,
    .scale-on-scroll,
    .reveal {
        transition: none !important;
    }
}
