@import url('https://fonts.bunny.net/css?family=outfit:400,500,600,700');

:root {
    --landing-bg: #120f24;
    --landing-bg-soft: #1a1635;
    --landing-bg-wave: #221d42;
    --landing-ink: #f4f0ff;
    --landing-muted: #b8aed6;
    --landing-accent: #e97a8e;
    --landing-accent-strong: #ff6b9d;
    --landing-path: #ff9eaf;
    --landing-glass: rgba(26, 22, 53, 0.72);
    --landing-border: rgba(255, 255, 255, 0.12);
    --landing-header-h: 72px;
    --landing-max: 1180px;
    --landing-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --landing-step-pad: clamp(3.5rem, 8vw, 6rem);
    --landing-wave-h: clamp(42px, 5vw, 68px);
    --landing-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,34 C320,8 640,60 960,34 S1440,60 1440,34 L1440,80 L0,80 Z' fill='%23000'/%3E%3C/svg%3E");
    --landing-wave-mask-flip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C320,72 640,20 960,46 S1440,20 1440,46 L1440,0 L0,0 Z' fill='%23000'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing-page {
    margin: 0;
    min-height: 100%;
    color: var(--landing-ink);
    background: var(--landing-bg);
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.landing-page a { color: inherit; }

.landing-page img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.landing-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--landing-header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background: rgba(18, 15, 36, 0.55);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.35s var(--landing-ease), background 0.35s ease, border-color 0.35s ease;
}

.landing-header.is-scrolled {
    background: rgba(18, 15, 36, 0.88);
    border-bottom-color: var(--landing-border);
}

.landing-header.is-hidden {
    transform: translateY(-110%);
}

.landing-header__inner {
    width: min(100%, var(--landing-max));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-logo img {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(200px, 46vw);
}

.landing-nav {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    justify-content: center;
}

.landing-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--landing-muted);
    transition: color 0.2s ease;
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
    color: var(--landing-ink);
}

.landing-header__cta-wrap {
    display: flex;
    justify-content: flex-end;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.65rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-strong) 100%);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(233, 122, 142, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(233, 122, 142, 0.45); }
.landing-btn:active { transform: translateY(0); }

.landing-btn--lg {
    min-height: 54px;
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.landing-btn__heart {
    width: 18px;
    height: 18px;
}

.landing-hero {
    position: relative;
    z-index: 2;
    min-height: min(92vh, 860px);
    padding:
        calc(var(--landing-header-h) + 2rem)
        1.25rem
        calc(4rem + var(--landing-wave-h) * 0.45);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}

.landing-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 4;
    width: 100vw;
    height: var(--landing-wave-h);
    transform: translateX(-50%) translateY(50%);
    background: var(--landing-bg-soft);
    -webkit-mask-image: var(--landing-wave-mask);
    mask-image: var(--landing-wave-mask);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18, 15, 36, 0.2) 0%, rgba(18, 15, 36, 0.35) 45%, rgba(18, 15, 36, 0.72) 78%, rgba(26, 22, 53, 0.95) 100%),
        url('../assets/img/landing-hero.png') center center / cover no-repeat;
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--landing-max));
    max-width: min(520px, 42vw);
    margin: 0;
    text-align: left;
}

.landing-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.08;
    font-weight: 700;
    text-wrap: balance;
}

.landing-hero__text {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    color: var(--landing-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.55;
}

.landing-journey {
    position: relative;
    z-index: 1;
    margin-top: calc(var(--landing-wave-h) * -0.45);
    padding: 0 0 4rem;
}

.landing-journey__path-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: min(100%, 480px);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.landing-journey__path {
    width: 100%;
    height: 100%;
}

.landing-journey__path-glow {
    fill: none;
    stroke: #ff9eaf;
    stroke-width: 14;
    stroke-linecap: round;
    opacity: 0.4;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s var(--landing-ease);
}

.landing-journey__path-line {
    fill: none;
    stroke: url(#pathGlow);
    stroke-width: 5;
    stroke-linecap: round;
    filter:
        drop-shadow(0 0 10px rgba(255, 158, 175, 0.9))
        drop-shadow(0 0 24px rgba(255, 107, 157, 0.55));
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s var(--landing-ease);
}

.landing-journey__path-nodes {
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
}

.landing-journey__path.is-drawn .landing-journey__path-glow,
.landing-journey__path.is-drawn .landing-journey__path-line {
    stroke-dashoffset: 0;
}

.landing-journey__path.is-drawn .landing-journey__path-nodes {
    opacity: 1;
}

.landing-journey-intro {
    position: relative;
    isolation: isolate;
    z-index: 3;
    width: min(100%, var(--landing-max));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.landing-journey-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--landing-bg-soft);
}

.landing-journey-intro__title {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    line-height: 1.15;
    text-wrap: balance;
}

.landing-journey-intro__text {
    margin: 0 auto;
    max-width: 42rem;
    color: var(--landing-muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.6;
}

.landing-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0;
}

.landing-step {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: min(100%, var(--landing-max));
    margin: 0 auto;
    padding:
        calc(var(--landing-step-pad) + var(--landing-wave-h) * 0.45)
        1.25rem
        calc(var(--landing-step-pad) + var(--landing-wave-h) * 0.45);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--landing-ease), transform 0.7s var(--landing-ease);
}

.landing-step:first-child {
    padding-top: var(--landing-step-pad);
}

.landing-step::before {
    content: '';
    position: absolute;
    inset: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
}

.landing-step:nth-child(odd)::before {
    background: var(--landing-bg-soft);
}

.landing-step:nth-child(even)::before {
    background: var(--landing-bg-wave);
}

.landing-step::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 4;
    width: 100vw;
    height: var(--landing-wave-h);
    transform: translateX(-50%) translateY(50%);
    -webkit-mask-image: var(--landing-wave-mask);
    mask-image: var(--landing-wave-mask);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
}

.landing-step:nth-child(odd)::after {
    background: var(--landing-bg-wave);
}

.landing-step:nth-child(even)::after {
    background: var(--landing-bg-soft);
    -webkit-mask-image: var(--landing-wave-mask-flip);
    mask-image: var(--landing-wave-mask-flip);
    transform: translateX(-50%) translateY(50%) scaleX(-1);
}

.landing-step:last-child::after {
    background: var(--landing-bg);
    -webkit-mask-image: var(--landing-wave-mask);
    mask-image: var(--landing-wave-mask);
    transform: translateX(-50%) translateY(50%);
}

.landing-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-step--reverse .landing-step__phone { order: 2; }
.landing-step--reverse .landing-step__copy { order: 1; text-align: right; }

.landing-step__phone,
.landing-step__copy {
    position: relative;
}

.landing-step__badge {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    font-size: 2.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--landing-path);
}

.landing-step__badge-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--landing-path);
    box-shadow: 0 0 14px rgba(255, 158, 175, 0.9);
}

.landing-step__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.landing-step__text {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.6;
    max-width: 28rem;
}

.landing-step--reverse .landing-step__text { margin-left: auto; }

.landing-step:first-child .landing-step__badge {
    font-size: clamp(4.5rem, 9vw, 7.5rem);
}

.landing-step:first-child .landing-step__badge-dot {
    width: 42px;
    height: 42px;
}

.landing-step:first-child .landing-step__title {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
}

.landing-step:first-child .landing-step__text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    max-width: 36rem;
}

.landing-step:first-child .landing-step__phone {
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: var(--landing-bg-soft);
}

.landing-step--split {
    grid-template-columns: 1fr minmax(220px, 360px) 1fr;
    gap: clamp(1rem, 3vw, 2rem);
}

.landing-step--split .landing-step__copy--center {
    text-align: center;
}

.landing-step--split .landing-step__text {
    margin-inline: auto;
    max-width: 26rem;
}

.landing-step--split .landing-step__phone--left,
.landing-step--split .landing-step__phone--right {
    order: unset;
}

.landing-step__shot {
    display: block;
    width: min(100%, 300px);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.landing-step__shot--hero,
.landing-step:first-child .landing-step__shot {
    width: min(100%, 420px);
    clip-path: inset(5% 0 5% 0);
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.52));
}

.landing-phone {
    position: relative;
    width: min(100%, 280px);
    margin-inline: auto;
    aspect-ratio: 9 / 19.5;
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.landing-phone__screen {
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2148 0%, #151028 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.landing-phone__notch {
    width: 38%;
    height: 18px;
    margin: 0 auto 0.35rem;
    border-radius: 0 0 12px 12px;
    background: rgba(0, 0, 0, 0.35);
}

.landing-phone__card {
    border-radius: 16px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-phone__label {
    font-size: 0.72rem;
    color: var(--landing-muted);
    margin-bottom: 0.35rem;
}

.landing-phone__field {
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.45rem;
}

.landing-phone__btn {
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--landing-accent), var(--landing-accent-strong));
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 600;
}

.landing-phone__code {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    padding: 0.75rem 0;
}

.landing-phone__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8fab, #ffb3c6);
    margin: 0 auto 0.5rem;
}

.landing-phone__pin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.landing-phone__pin span {
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-phone__countdown {
    text-align: center;
    margin-top: auto;
    padding: 1rem 0 0.5rem;
}

.landing-phone__countdown-num {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--landing-path);
    text-shadow: 0 0 24px rgba(255, 158, 175, 0.45);
}

.landing-phone__countdown-label {
    margin-top: 0.35rem;
    color: var(--landing-muted);
    font-size: 0.85rem;
}

.landing-decor {
    position: absolute;
    opacity: 0.55;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 158, 175, 0.35));
}

.landing-decor--leaf { width: 42px; top: 8%; left: 12%; }
.landing-decor--chat { width: 36px; top: 22%; right: 10%; }
.landing-decor--lock { width: 34px; top: 52%; left: 8%; }
.landing-decor--calendar { width: 38px; top: 68%; right: 12%; }

.landing-footer-cta {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--landing-wave-h) * -0.45);
    padding: calc(5rem + var(--landing-wave-h) * 0.35) 1.25rem 4rem;
    text-align: center;
    overflow: hidden;
}

.landing-footer-cta__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--landing-bg) 0%, rgba(18, 15, 36, 0.4) 25%, rgba(18, 15, 36, 0.85) 100%),
        url('../assets/img/landing-mockup-reference.png') center bottom / cover no-repeat;
    background-position: center 85%;
}

.landing-footer-cta__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    margin: 0 auto;
}

.landing-footer-cta__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.landing-footer-cta__text {
    margin: 0 auto 1.75rem;
    color: var(--landing-muted);
    line-height: 1.6;
    max-width: 32rem;
}

.landing-footer-meta {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
    color: rgba(184, 174, 214, 0.7);
    font-size: 0.85rem;
}

.landing-cursor-hearts {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.landing-cursor-heart {
    position: absolute;
    color: var(--landing-path);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    text-shadow:
        0 0 8px rgba(255, 158, 175, 0.95),
        0 0 16px rgba(255, 107, 157, 0.45);
    animation: landing-cursor-heart 0.85s var(--landing-ease) forwards;
}

@keyframes landing-cursor-heart {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.5) rotate(-8deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 32px)) scale(1.15) rotate(10deg);
    }
}

@media (max-width: 900px) {
    .landing-header__inner {
        grid-template-columns: 1fr auto;
    }

    .landing-nav { display: none; }

    .landing-hero {
        align-items: flex-end;
    }

    .landing-hero__content {
        max-width: 100%;
        margin: 0;
    }

    .landing-step,
    .landing-step--reverse,
    .landing-step--split {
        grid-template-columns: 1fr;
    }

    .landing-step--split .landing-step__copy--center {
        order: -1;
    }

    .landing-step--split .landing-step__phone--left,
    .landing-step--split .landing-step__phone--right {
        justify-self: center;
    }

    .landing-step--reverse .landing-step__phone,
    .landing-step--reverse .landing-step__copy {
        order: initial;
        text-align: left;
    }

    .landing-step--reverse .landing-step__text { margin-left: 0; }

    .landing-step__shot--hero,
    .landing-step:first-child .landing-step__shot {
        width: min(100%, 340px);
    }

    .landing-step:first-child .landing-step__title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .landing-step__badge {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .landing-step:first-child .landing-step__badge {
        font-size: clamp(3.3rem, 12vw, 4.5rem);
    }

    .landing-step:first-child .landing-step__text {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .landing-step,
    .landing-journey__path-glow,
    .landing-journey__path-line,
    .landing-journey__path-nodes,
    .landing-header { transition: none; }
    .landing-cursor-hearts,
    .landing-cursor-heart { animation: none; display: none; }
}
