/* EzReplay Pro — Landing Page */
/* Made by Jenny Reinecke @uplift-beyond.de 2025 */

/* ─── Base ──────────────────────────────────────────── */

html:has(body.landing) {
    overflow-x: hidden;
}

body.landing {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans), sans-serif;
    overflow-x: hidden;
    height: fit-content;
    min-height: 100vh;
    width: 100%;
    --btn-bg: linear-gradient(135deg, rgba(112, 63, 161, 0.92), rgba(82, 102, 255, 0.95));
}

/* ─── Nav ───────────────────────────────────────────── */

.landingNav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: var(--padding) 50px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    z-index: 100;
    transition: background var(--ease-medium), border-color var(--ease-medium);
    border-bottom: 1px solid transparent;
}

.landingNav.scrolled {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.06);
}

.navLogo {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.navLogo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.navBetaPill {
    background-color: var(--color-accent);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.navLinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--gap) * 2.5);
    list-style: none;
    margin: 0; padding: 0;
}

.navLinks a {
    all: unset;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--ease-fast);
    font-size: 0.9rem;
    position: relative;
}

.navLinks a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--btn-bg);
    transition: width var(--ease-medium);
    border-radius: 50px;
}

.navLinks a:hover { opacity: 1; }
.navLinks a:hover::after { width: 100%; }

.navActions {
    display: flex;
    gap: var(--gap);
    align-items: center;
}

.navBtn {
    padding: 10px 26px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 0.9rem;
}

.navBtnPrimary {
    background: var(--btn-bg) !important;
    border: none !important;
}

/* ─── Hero ──────────────────────────────────────────── */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 80px 50px 60px;
    box-sizing: border-box;
    background-color: #000;
}

.heroBgVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.85) grayscale(.3);
    transform: scale(1.06);
    z-index: 0;
}

.heroInner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* left col */
.heroLeft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.heroEyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.betaDot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.heroHeading {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
    text-align: center;
}

.heroLine {
    display: block;
    overflow: hidden;
    /* tiny bit of extra height so descenders aren't clipped */
    padding-bottom: 4px;
}

.heroLineInner {
    display: block;
    font-size: clamp(5.5rem, 13vw, 9.5rem);
    letter-spacing: -0.04em;
    font-weight: 900;
    line-height: 0.92;
}

.heroDesc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 480px;
    text-align: center;
}

.heroCtas {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    align-items: center;
}

.heroCta {
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* right col — app mockup */
.heroRight {
    display: flex;
    align-items: center;
    justify-content: center;
}

.appMockup {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-primary);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.mockBar {
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockBarTitle {
    margin-left: 8px;
    opacity: 0.3;
}

.mockDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockDot--red   { background: #ef4444; }
.mockDot--amber { background: #f59e0b; }
.mockDot--green { background: #10b981; }

.mockAppHeader {
    padding: 6px 14px;
    background-color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockBetaMsg {
    padding: 4px 10px !important;
    border: 1px dotted rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    gap: 6px;
}

.mockBody {
    display: grid;
    grid-template-columns: 36px 1fr 38%;
    height: 200px;
}

.mockSidebar {
    background-color: var(--color-primary);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mockSidebarItem {
    height: 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
}

.mockSidebarItem--active {
    background: rgba(112, 63, 161, 0.45);
}

.mockSidebarDivider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 3px 0;
}

.mockVideo {
    background: #000;
    position: relative;
    overflow: hidden;
}

.mockVideoEl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mockVideoControls {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
}

.mockSpeedBtn {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.6;
}

.mockSpeedBtn--active {
    opacity: 1;
    background: rgba(112, 63, 161, 0.7);
    border-color: transparent;
}

.mockNotes {
    background-color: var(--color-primary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockNotesToolbar {
    display: flex;
    gap: 4px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockToolbarDot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.mockNoteLines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mockNoteLine {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
}

.mockNoteLine--heading {
    height: 9px;
    width: 65%;
    background: rgba(255, 255, 255, 0.18);
}

.mockNoteLine--w80 { width: 80%; }
.mockNoteLine--w60 { width: 60%; }
.mockNoteLine--w90 { width: 90%; }
.mockNoteLine--w70 { width: 70%; }
.mockNoteLine--w50 { width: 50%; }

.mockTimestamp {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(112, 63, 161, 0.25);
    border: 1px solid rgba(112, 63, 161, 0.4);
    color: rgba(255, 255, 255, 0.55);
    width: fit-content;
    margin: 2px 0;
}

/* scroll hint */
.heroScrollHint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity var(--ease-fast);
    user-select: none;
}

.heroScrollHint:hover { opacity: 0.7; }

/* ─── Marquee ───────────────────────────────────────── */

.marqueeTrack {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    background: var(--color-primary);
    padding: 10px 0;
    width: 100%;
}

.marqueeInner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    font-size: 0.8rem;
    opacity: 0.45;
    white-space: nowrap;
    will-change: transform;
}

.marqueeInner span { flex-shrink: 0; }

.marqueeAccent {
    color: var(--color-accent);
    font-size: 0.55rem;
    opacity: 0.7;
}

/* ─── Sections (shared) ─────────────────────────────── */

.landingSection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 50px;
    box-sizing: border-box;
}

.landingSection + .landingSection {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sectionRow {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 60px;
    align-items: start;
}

.sectionLabelCol {
    padding-top: 4px;
}

.sectionLabel {
    color: rgba(255, 255, 255, 0.4);
    display: block;
    position: sticky;
    top: 80px;
}

/* ─── Features list ─────────────────────────────────── */

.featuresList {
    display: flex;
    flex-direction: column;
}

.featureItem {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color var(--ease-fast);
}

.featureItem:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.featureNum {
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding-top: 3px;
    opacity: 0.8;
}

.featureName {
    margin: 0 0 6px;
    font-size: 1rem;
}

.featureDesc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
}

.featureDesc code,
.inlineCode {
    font-family: var(--font-mono), monospace;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.75);
}

/* ─── How it works (steps) ──────────────────────────── */

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

.stepItem {
    display: grid;
    grid-template-columns: 2px 1fr;
    gap: 24px;
    padding: 0 0 40px;
}

.stepItem:last-child { padding-bottom: 0; }

.stepLine {
    width: 2px;
    background: var(--color-accent);
    margin-top: 4px;
    border-radius: 2px;
    position: relative;
}

.stepNum {
    color: rgba(255, 255, 255, 0.35);
    display: block;
    margin-bottom: 8px;
}

.stepTitle {
    margin: 0 0 10px;
    line-height: 1.2;
}

.stepDesc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
}

.stepDesc code {
    font-family: var(--font-mono), monospace;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.75);
}

/* ─── Use cases ─────────────────────────────────────── */

.useCaseGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.useCaseItem {
    background: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--ease-medium);
}

.useCaseItem:hover {
    border-color: rgba(112, 63, 161, 0.4);
}

.useCaseTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.useCaseEmoji { font-size: 1.4rem; line-height: 1; }

.useCaseItem h3 {
    margin: 0;
    font-size: 1rem;
}

.useCaseItem p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
}

.useCaseTags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.useCaseTags span {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ─── FAQ ───────────────────────────────────────────── */

.faqList {
    display: flex;
    flex-direction: column;
}

.faqItem {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color var(--ease-fast);
}

.faqItem:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faqItem.open {
    border-color: rgba(112, 63, 161, 0.3);
}

.faqQ {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-sans), sans-serif;
    gap: var(--gap);
    transition: opacity var(--ease-fast);
}

.faqQ:hover { opacity: 0.75; }

.faqChevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--ease-medium);
    opacity: 0.45;
}

.faqItem.open .faqChevron {
    transform: rotate(180deg);
    opacity: 1;
}

.faqA {
    display: none;
    padding-bottom: 18px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.faqItem.open .faqA { display: block; }

/* ─── CTA bottom ────────────────────────────────────── */

.ctaBottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 100px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.ctaBottomInner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 500px;
}

.ctaBottomTitle {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.ctaBottomDesc {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.ctaBottomBtn {
    margin-top: 10px;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    font-size: 1rem;
}

/* ─── Contact Strip ─────────────────────────────────── */

.contactStrip {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
}

.contactStripLabel {
    opacity: 0.3;
}

.contactEmail {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--color-accent);
    opacity: 0.9;
    transition: opacity var(--ease-fast), text-shadow var(--ease-fast);
    letter-spacing: 0.01em;
}

.contactEmail svg {
    flex-shrink: 0;
    transition: transform var(--ease-fast);
}

.contactEmail:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(112, 63, 161, 0.55);
}

.contactEmail:hover svg {
    transform: translateY(-1px);
}

/* ─── Footer ────────────────────────────────────────── */

.landingFooter {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.footerLogo {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity var(--ease-fast);
}

.footerLogo:hover { opacity: 0.8; }

.footerLogo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footerLinks {
    display: flex;
    gap: 24px;
}

.footerLinks a {
    all: unset;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.35;
    transition: opacity var(--ease-fast);
}

.footerLinks a:hover { opacity: 0.8; }

.footerDivider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    align-self: center;
}

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 960px) {
    .landingNav { padding: var(--padding) 24px; }
    .navLinks { display: none; }

    .hero { padding: 80px 24px 60px; }

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

    .heroRight { display: none; }

    .landingSection { padding: 60px 24px; }

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

    .sectionLabel {
        position: static;
        display: inline-block;
    }

    .useCaseGrid { grid-template-columns: 1fr; }

    .ctaBottom { padding: 70px 24px; }

    .contactStrip {
        padding: 18px 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .landingFooter {
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .navActions { display: none; }

    .footerLinks {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .footerLinks .footerNavLink { display: none; }
}

.openAppBtn {
    background-color: var(--color-accent) !important;
    filter: brightness(1.2);

    &:hover {
        filter: brightness(1.3);
    }
}