/* Landing page — scoped styles (does not affect dashboard/partner panel) */

.landing-page {
    --landing-glow: rgba(245, 166, 35, 0.35);
    --landing-surface: rgba(26, 26, 26, 0.72);
    overflow-x: hidden;
}

/* ── Animated background ── */
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite;
}

.landing-bg__orb--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #F5A623 0%, transparent 70%);
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

.landing-bg__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #e09515 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation-delay: -6s;
    animation-duration: 22s;
}

.landing-bg__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.6) 0%, transparent 70%);
    top: 45%;
    left: 40%;
    animation-delay: -12s;
    animation-duration: 16s;
}

.landing-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Header ── */
.landing-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    padding: 18px 0;
    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease,
                backdrop-filter 0.35s ease;
}

.landing-page .site-header.is-scrolled {
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    padding: 12px 0;
}

.landing-page .header-inner {
    position: relative;
    z-index: 1;
}

.landing-page .nav-links .btn-primary {
    box-shadow: 0 0 0 0 var(--landing-glow);
    transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

.landing-page .nav-links .btn-primary:hover {
    box-shadow: 0 0 24px 4px var(--landing-glow);
    transform: translateY(-1px);
}

/* ── Hero ── */
.landing-page main {
    position: relative;
    z-index: 1;
}

.landing-hero {
    padding: 140px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.landing-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.landing-hero__content {
    text-align: left;
}

.landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--landing-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.landing-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

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

.landing-hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.landing-hero h1 .highlight {
    background: linear-gradient(135deg, #F5A623 0%, #FFD080 50%, #F5A623 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.landing-hero .hero-sub {
    margin: 0 0 36px;
    max-width: 480px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.landing-hero .hero-actions {
    justify-content: flex-start;
}

.landing-hero .btn-lg {
    position: relative;
    overflow: hidden;
}

.landing-hero .btn-primary.btn-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 70%, 100% { transform: translateX(-100%); }
    85% { transform: translateX(100%); }
}

/* Phone mockup + QR scan flow */
.landing-hero__visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-device-scene {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: phoneFloat 6s ease-in-out infinite;
}

.hero-qr-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(-4deg);
}

.hero-qr-card__code {
    width: 72px;
    height: 72px;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(15, 15, 15, 0.08);
}

.hero-qr-card__grid {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, #0F0F0F 0, #0F0F0F 3px, transparent 3px, transparent 6px),
        repeating-linear-gradient(90deg, #0F0F0F 0, #0F0F0F 3px, transparent 3px, transparent 6px);
    border-radius: 4px;
}

.hero-qr-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0F0F0F;
}

.hero-device-scene__flow {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.85;
}

.hero-device-scene__flow-line {
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    border-radius: 1px;
    animation: flowPulse 2s ease-in-out infinite;
}

.hero-device-scene__flow-arrow {
    width: 22px;
    height: 22px;
    animation: flowArrow 2s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.85); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes flowArrow {
    0%, 100% { transform: translateX(-2px); opacity: 0.5; }
    50% { transform: translateX(2px); opacity: 1; }
}

.phone-mockup {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(4deg); }
    50% { transform: translateY(-16px) rotateY(-8deg) rotateX(4deg); }
}

.phone-mockup__frame {
    background: linear-gradient(145deg, #2A2A2A, #1A1A1A);
    border: 2px solid #3A3A3A;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 60px var(--landing-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-mockup__screen {
    background: var(--bg);
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
}

.phone-mockup__header {
    background: linear-gradient(135deg, #F5A623, #e09515);
    padding: 28px 16px 20px;
    text-align: center;
}

.phone-mockup__header h4 {
    font-size: 0.85rem;
    color: #0F0F0F;
    font-weight: 700;
}

.phone-mockup__header p {
    font-size: 0.65rem;
    color: rgba(15, 15, 15, 0.7);
    margin-top: 2px;
}

.phone-mockup__menu {
    padding: 12px;
}

.phone-mockup__category {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 10px 0 6px;
}

.phone-mockup__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    animation: menuItemFade 0.6s ease backwards;
}

.phone-mockup__item:nth-child(2) { animation-delay: 0.1s; }
.phone-mockup__item:nth-child(3) { animation-delay: 0.2s; }
.phone-mockup__item:nth-child(4) { animation-delay: 0.3s; }
.phone-mockup__item:nth-child(5) { animation-delay: 0.4s; }
.phone-mockup__item:nth-child(6) { animation-delay: 0.5s; }

@keyframes menuItemFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.phone-mockup__item-name {
    font-size: 0.65rem;
    font-weight: 600;
}

.phone-mockup__item-price {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 700;
}

/* ── Stats strip ── */
.landing-stats {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--landing-surface);
    backdrop-filter: blur(12px);
}

.landing-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.landing-stat__value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.landing-stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Section headers ── */
.landing-section {
    padding: 100px 0;
}

.landing-section__header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.landing-section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.landing-section__header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.landing-section__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ── How it works ── */
.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.landing-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
    z-index: 0;
}

.landing-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
}

.landing-step__number {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.landing-step:hover .landing-step__number {
    border-color: var(--accent);
    box-shadow: 0 0 32px var(--landing-glow);
    transform: scale(1.08);
}

.landing-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.landing-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Features ── */
.landing-page .features {
    padding: 0;
}

.landing-page .features-grid {
    gap: 28px;
}

.landing-page .feature-card {
    position: relative;
    padding: 36px 28px;
    backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    overflow: hidden;
}

.landing-page .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-page .feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(245, 166, 35, 0.08);
}

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

.landing-page .feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 166, 35, 0.12);
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.landing-page .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-4deg);
}

.landing-page .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* ── CTA band ── */
.landing-cta {
    padding: 80px 0;
}

.landing-cta__inner {
    position: relative;
    text-align: center;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, var(--bg-card) 50%, rgba(245, 166, 35, 0.06) 100%);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 24px;
    overflow: hidden;
}

.landing-cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 166, 35, 0.06), transparent 30%);
    animation: ctaRotate 12s linear infinite;
}

.landing-cta__content {
    position: relative;
    z-index: 1;
}

@keyframes ctaRotate {
    to { transform: rotate(360deg); }
}

.landing-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.landing-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 32px;
}

.landing-cta .hero-actions {
    justify-content: center;
}

/* ── Footer ── */
.landing-page .site-footer {
    position: relative;
    z-index: 1;
    padding: 32px 0;
}

.landing-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-footer__links {
    display: flex;
    gap: 24px;
}

.landing-footer__links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hero-enter {
    opacity: 0;
    transform: translateY(24px);
    animation: heroEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter-delay-1 { animation-delay: 0.1s; }
.hero-enter-delay-2 { animation-delay: 0.2s; }
.hero-enter-delay-3 { animation-delay: 0.35s; }
.hero-enter-delay-4 { animation-delay: 0.5s; }

@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .landing-bg__orb,
    .phone-mockup,
    .phone-mockup__qr,
    .landing-hero h1 .highlight,
    .landing-hero .btn-primary.btn-lg::after,
    .landing-cta__inner::before,
    .landing-hero__badge-dot,
    .phone-mockup__item {
        animation: none;
    }

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

    .hero-enter {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .landing-hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .landing-hero__content {
        text-align: center;
    }

    .landing-hero .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero .hero-actions {
        justify-content: center;
    }

    .landing-hero__visual {
        order: -1;
    }

    .hero-device-scene {
        flex-direction: column;
        gap: 16px;
    }

    .hero-qr-card {
        transform: none;
    }

    .hero-device-scene__flow {
        flex-direction: column;
        gap: 6px;
    }

    .hero-device-scene__flow-line {
        width: 2px;
        height: 24px;
        background: linear-gradient(180deg, transparent, var(--accent));
    }

    .hero-device-scene__flow-arrow {
        animation: flowArrowMobile 2s ease-in-out infinite;
    }

    @keyframes flowArrowMobile {
        0%, 100% { transform: rotate(90deg) translateX(-2px); opacity: 0.5; }
        50% { transform: rotate(90deg) translateX(2px); opacity: 1; }
    }

    .phone-mockup {
        width: 240px;
    }

    .landing-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .landing-steps::before {
        display: none;
    }

    .landing-stats__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-cta__inner {
        padding: 48px 24px;
    }
}

@media (max-width: 600px) {
    .landing-page .nav-links .lang-switcher {
        display: none;
    }

    .landing-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .landing-section {
        padding: 64px 0;
    }

    .landing-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
