:root {
    --bg-0: #020304;
    --bg-1: #05070b;
    --bg-2: #0a1018;
    --text: #f5f7fb;
    --muted: rgba(255, 255, 255, 0.72);
    --line: rgba(255, 255, 255, 0.10);
    --card: rgba(255, 255, 255, 0.05);
    --accent-soft: rgba(136, 168, 255, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.home-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 18%, rgba(48, 91, 129, 0.35), transparent 30%),
        radial-gradient(circle at 80% 25%, rgba(120, 135, 255, 0.12), transparent 25%),
        linear-gradient(180deg, #040506 0%, #05070b 35%, #020304 100%);
    position: relative;
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.35)),
        radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.42) 100%);
}

body.home-page::after {
    content: "";
    position: fixed;
    inset: -15%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 30% 65%, rgba(32, 72, 99, 0.18), transparent 28%),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.03), transparent 18%);
    filter: blur(70px);
    animation: atmosphere 14s ease-in-out infinite alternate;
}

@keyframes atmosphere {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(1.5%, -1%, 0) scale(1.04);
    }
}

.login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    min-width: 108px;
    height: 46px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.30);
}

.home-shell {
    position: relative;
    z-index: 1;

    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

.panel {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: max(86px, 8vh) 1.5rem 3rem;
    position: relative;
}

.panel-inner {
    width: min(1120px, calc(100vw - 3rem));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
}

.hero-title {
    margin: 0;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-copy {
    margin: 1.4rem 0 0;
    max-width: 38rem;
    font-size: clamp(1.02rem, 1.7vw, 1.16rem);
    line-height: 1.75;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 48px;
    padding: 0 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-primary {
    background: #ffffff;
    color: #05070b;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.logo-stage {
    justify-self: end;
    width: min(460px, 100%);
    padding: 1rem;

    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.28);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.93));
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.loq-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.logo-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    color: rgba(10, 16, 23, 0.65);
}

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 14ch;
}

.section-copy {
    max-width: 48rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.glass-card {
    padding: 1.5rem;
    min-height: 260px;
    border-radius: 24px;
    border: 1px solid var(--line);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.card-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--accent-soft);
    color: #dce5ff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.glass-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.glass-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.workflow-step {
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.workflow-step strong {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.workflow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.cta-panel .panel-inner {
    text-align: center;
}

.cta-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.25rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.cta-wrap h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.cta-wrap p {
    margin: 0 auto 1.5rem;
    max-width: 42rem;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 900px) {
    .home-shell {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .panel {
        min-height: auto;
        padding: 7rem 1rem 4rem;
    }

    .panel-inner {
        width: min(100%, 680px);
    }

    .hero-grid,
    .feature-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .logo-stage {
        justify-self: start;
        max-width: 340px;
    }

    .section-title {
        max-width: none;
    }

    .scroll-cue {
        display: none;
    }

    .login-btn {
        top: 16px;
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-shell {
        scroll-behavior: auto;
    }

    body.home-page::after {
        animation: none;
    }
}