/* ========== LeoSans Font ========== */
@font-face {
    font-family: 'LeoSans';
    src: url("/static/shared/fonts/LeoSans/LeoSans-Semibold.a2cb44bc8aff.otf") format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'LeoSans';
    src: url("/static/shared/fonts/LeoSans/LeoSans-Light.eb15c1f0a8ae.otf") format('opentype');
    font-weight: 300;
    font-display: swap;
}

/* ========== Landing Body ========== */
.landing-body {
    background: #0d0a10;
    overflow-x: hidden;
}

/* ========== Hero ========== */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.landing-hero-bg-img,
.landing-hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.15);
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 10, 16, 0.85) 0%,
        rgba(13, 10, 16, 0.6) 40%,
        rgba(13, 10, 16, 0.4) 60%,
        rgba(13, 10, 16, 0.7) 100%
    );
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.landing-hero-left {
    flex: 1;
    max-width: 480px;
}

.landing-hero-wordmark {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.landing-hero-tagline {
    font-family: 'Google Sans Flex', var(--font-body);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.mobile-break {
    display: none;
}

.landing-hero-tagline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
}

.landing-hero-tagline.animate .word {
    animation: wordFadeIn 0.5s ease forwards;
}

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

[data-scroll-word-fade] .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
}

[data-scroll-word-fade].animate .word {
    animation: wordFadeIn 0.5s ease forwards;
}

/* Scroll-triggered section fade-in */
[data-scroll-fade] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-fade].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-triggered paragraph slide-up */
[data-scroll-fade-up] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

[data-scroll-fade-up].visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA heading — simple fade in */
.landing-cta-heading {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.landing-cta-heading.visible {
    opacity: 1;
}

/* FAQ staggered fade-in */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-hero-right {
    flex: 0 0 400px;
}

.landing-auth-card {
    background: rgba(13, 10, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.landing-auth-card #login-form-section,
.landing-auth-card #signup-form-section,
.landing-auth-card #forgot-form-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.landing-auth-support {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.landing-auth-support:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Accent Bar ========== */
.landing-accent-bar {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== Mission ========== */
.landing-mission {
    background: #0d0a10;
    padding: 5rem 2rem 1rem;
    text-align: center;
}

.landing-mission-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #8B69AC;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.landing-mission-heading {
    font-family: 'LeoSans', var(--font-body);
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Phone Sections ========== */
.landing-phone-section {
    background: #0d0a10;
    padding: 0;
    margin-top: -8rem;
    text-align: center;
    overflow: hidden;
}

.landing-phone-section:first-of-type {
    margin-top: 0;
}

.landing-phone-img {
    width: 105%;
    height: auto;
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.landing-phone-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Animated Phone Box A ========== */
.landing-phone-animated {
    overflow: visible !important;
    padding: 6rem 2rem 8rem !important;
    margin-top: 4rem !important;
}

.phone-anim-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 680px;
}

/* Phone — left side, on top of card */
.phone-anim-phone {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 260px;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    z-index: 4;
}

.phone-anim-container.visible .phone-anim-phone {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.phone-anim-phone-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Card — starts under the phone, extends right */
.phone-anim-card {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    right: 60px;
    background: rgba(20, 18, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2.5rem 2rem 200px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.phone-anim-container.visible .phone-anim-card {
    opacity: 1;
}

.phone-anim-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 0.3rem;
    text-align: left;
}

/* SVG dashed line — behind card, behind avatars */
.phone-anim-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.phone-anim-container.visible .phone-anim-svg {
    opacity: 1;
}

/* Avatars — on top of everything, no ring */
.phone-anim-avatar {
    position: absolute;
    z-index: 5;
    opacity: 0;
    transform: scale(0) translate(-50%, -50%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.phone-anim-avatar-img {
    border-radius: 50%;
    display: block;
}

/* Avatar A — centered on start of dashed line */
.phone-anim-avatar-a {
    left: 42%;
    top: 22%;
    transition-delay: 0.4s;
}

.phone-anim-avatar-a .phone-anim-avatar-img {
    width: 100px;
    height: 100px;
}

/* Avatar B — centered on end of dashed line */
.phone-anim-avatar-b {
    left: 86%;
    top: 75%;
    transition-delay: 0.7s;
}

.phone-anim-avatar-b .phone-anim-avatar-img {
    width: 180px;
    height: 180px;
}

.phone-anim-container.visible .phone-anim-avatar {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
}

/* ========== Phone Box B — Flipped (phone right, card left) ========== */

/* Phone on the right */
.phone-anim-phone-right {
    left: auto !important;
    right: 0;
}

/* Card extends from under phone to the left */
.phone-anim-card-right {
    left: 60px !important;
    right: 120px !important;
    padding: 2rem 200px 2rem 2.5rem !important;
}

.phone-anim-card-right p {
    text-align: right;
}

/* SVG over card instead of under */
.phone-anim-svg-over {
    z-index: 3 !important;
}

/* Avatar A — top-left, big */
.phone-anim-avatar-a-flip {
    left: 8%;
    top: 20%;
    transition-delay: 0.4s;
}

.phone-anim-avatar-a-flip .phone-anim-avatar-img {
    width: 220px;
    height: 220px;
}

/* Avatar B — bottom, before the phone, centered on line end */
.phone-anim-avatar-b-flip {
    left: 64%;
    top: 78%;
    transition-delay: 0.7s;
}

.phone-anim-avatar-b-flip .phone-anim-avatar-img {
    width: 100px;
    height: 100px;
}

/* Mobile SVG lines — hidden on desktop */
.phone-anim-svg-mobile {
    display: none;
}

/* ========== Phone Box C — phone left, wrap-around curve ========== */

/* Avatar C top — small, centered on line start */
.phone-anim-avatar-c-top {
    left: 44%;
    top: 14%;
    transition-delay: 0.4s;
}

.phone-anim-avatar-c-top .phone-anim-avatar-img {
    width: 100px;
    height: 100px;
}

/* Avatar C bottom — big, inside the wrap-around loop */
.phone-anim-avatar-c-bottom {
    left: 77%;
    top: 77%;
    transition-delay: 0.7s;
}

.phone-anim-avatar-c-bottom .phone-anim-avatar-img {
    width: 200px;
    height: 200px;
}

@media (max-width: 768px) {
    .landing-phone-animated {
        padding: 3rem 1rem 2rem !important;
        margin-top: 2rem !important;
    }

    .phone-anim-container {
        min-height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        position: relative;
        padding-bottom: 0;
    }

    /* Phone stacks on top */
    .phone-anim-phone,
    .phone-anim-phone.phone-anim-phone-right {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto;
        transform: scale(0);
        width: 220px;
        z-index: 4;
    }

    .phone-anim-container.visible .phone-anim-phone {
        transform: scale(1);
    }

    /* Card below phone with spacing */
    .phone-anim-card,
    .phone-anim-card.phone-anim-card-right {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto;
        transform: none;
        padding: 1.5rem !important;
        max-width: 100%;
        margin-top: 2rem;
        z-index: 2;
    }

    .phone-anim-card p,
    .phone-anim-card-right p {
        text-align: center;
    }

    /* Hide desktop SVG */
    .phone-anim-svg,
    .phone-anim-svg-over {
        display: none !important;
    }

    /* Hide SVG lines on mobile */
    .phone-anim-svg-mobile {
        display: none !important;
    }

    /* Avatars visible, positioned to overlap card edges */
    .phone-anim-avatar {
        display: block !important;
        position: relative;
        z-index: 5;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: scale(0) translate(0, 0) !important;
    }

    .phone-anim-container.visible .phone-anim-avatar {
        transform: scale(1) translate(0, 0) !important;
    }

    /* === Phone Box A: small top-left, big bottom-right === */
    .phone-anim-avatar-a {
        align-self: flex-start;
        margin-left: 0.5rem;
        margin-bottom: -2rem;
        order: 2;
    }
    .phone-anim-avatar-a .phone-anim-avatar-img { width: 70px !important; height: 70px !important; }

    .phone-anim-avatar-b {
        align-self: flex-end;
        margin-right: 1rem;
        margin-top: -2rem;
        order: 4;
    }
    .phone-anim-avatar-b .phone-anim-avatar-img { width: 110px !important; height: 110px !important; }

    /* === Phone Box B: big bottom-left, small top-right === */
    .phone-anim-avatar-b-flip {
        align-self: flex-end;
        margin-right: 1rem;
        margin-bottom: -2rem;
        order: 2;
    }
    .phone-anim-avatar-b-flip .phone-anim-avatar-img { width: 70px !important; height: 70px !important; }

    .phone-anim-avatar-a-flip {
        align-self: flex-start;
        margin-left: 0.5rem;
        margin-top: -2rem;
        order: 4;
    }
    .phone-anim-avatar-a-flip .phone-anim-avatar-img { width: 110px !important; height: 110px !important; }

    /* === Phone Box C: big top-right, small bottom-left === */
    .phone-anim-avatar-c-bottom {
        align-self: flex-end;
        margin-right: 1rem;
        margin-bottom: -2rem;
        order: 2;
    }
    .phone-anim-avatar-c-bottom .phone-anim-avatar-img { width: 120px !important; height: 120px !important; }

    .phone-anim-avatar-c-top {
        align-self: flex-start;
        margin-left: 0.5rem;
        margin-top: -1.5rem;
        order: 4;
    }
    .phone-anim-avatar-c-top .phone-anim-avatar-img { width: 70px !important; height: 70px !important; }

    /* Order */
    .phone-anim-phone { order: 1; }
    .phone-anim-card { order: 3; z-index: 2; }
}

/* ========== Cycling Quotes ========== */
.landing-quotes {
    background: #0d0a10;
    padding: 0 2rem;
    margin-top: 0;
    margin-bottom: -6rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-quotes-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 120px;
}

.landing-quote {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.landing-quote.active {
    opacity: 1;
    transform: translateX(0);
}

.landing-quote.enter-right {
    opacity: 0;
    transform: translateX(40px);
    transition: none;
}

.landing-quote.enter-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: none;
}

.landing-quote.exit-left {
    opacity: 0;
    transform: translateX(-40px);
}

.landing-quote.exit-right {
    opacity: 0;
    transform: translateX(40px);
}

.landing-quote p {
    font-family: 'Google Sans Flex', var(--font-body);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.landing-quote cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    color: #8B69AC;
    letter-spacing: 0.05em;
}

.landing-quote-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.landing-quotes-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.quote-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.quote-dot.active {
    background: #8B69AC;
}

/* ========== Email CTA ========== */
.landing-email-cta {
    background: #0d0a10;
    padding: 4rem 2rem;
    text-align: center;
}

.landing-cta-heading {
    font-family: 'LeoSans', var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.landing-cta-form {
    max-width: 500px;
    margin: 0 auto;
}

.landing-cta-input-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-cta-input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: #1a1020;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.landing-cta-input::placeholder {
    color: var(--text-muted);
}

.landing-cta-btn {
    padding: 0.85rem 1.5rem;
    background: #2a1f33;
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.landing-cta-btn:hover {
    background: #382a45;
}

.landing-cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.landing-cta-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.landing-cta-error {
    color: #e74c3c;
}

.landing-cta-success {
    color: #2ecc71;
}

/* ========== Feature Section ========== */
.landing-feature {
    background: #0d0a10;
    padding: 5rem 2rem;
}

.landing-feature-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.landing-feature-heading {
    font-family: 'LeoSans', var(--font-body);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.landing-feature-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========== FAQ Banner ========== */
.landing-faq-banner {
    position: relative;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-faq-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.landing-faq-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 10, 16, 0.5);
}

.landing-faq-heading {
    position: relative;
    z-index: 1;
    font-family: 'LeoSans', var(--font-body);
    font-weight: 600;
    font-size: 4rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

/* ========== FAQ Questions ========== */
.landing-faq {
    background: #0d0a10;
    padding: 4rem 2rem;
}

.landing-faq-content {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== Footer ========== */
.landing-footer {
    background: #0d0a10;
    padding: 3rem 2rem;
    text-align: center;
}

.landing-footer-wordmark {
    width: 200px;
    margin-bottom: 1rem;
}

.landing-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.landing-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.landing-footer-links a:hover {
    color: var(--text-primary);
}

.landing-footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
    .landing-hero-content {
        flex-direction: column;
        padding: 3rem 1rem;
        gap: 2rem;
    }

    .landing-hero-left {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .landing-hero-tagline {
        font-size: 1.5rem;
    }

    .mobile-break {
        display: block;
    }

    .landing-hero-right {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .landing-auth-card {
        padding: 1.5rem;
    }

    .landing-mission {
        padding: 3rem 1rem;
    }

    .landing-mission-heading {
        font-size: 1.5rem;
    }

    .landing-phone-section {
        padding: 1.5rem 1rem;
    }

    .landing-quotes {
        margin-top: 0;
        margin-bottom: 0;
        padding: 2rem 1rem;
    }

    .landing-quotes-inner {
        min-height: 220px;
    }

    .landing-phone-section {
        margin-top: 0;
        padding: 1.5rem 1rem;
        overflow: visible;
    }

    .landing-phone-img {
        width: 100%;
    }

    .landing-email-cta {
        padding: 3rem 1rem;
    }

    .landing-cta-heading {
        font-size: 1.2rem;
    }

    .landing-cta-input-group {
        flex-direction: column;
        gap: 0.75rem;
        border: none;
        overflow: visible;
    }

    .landing-cta-input {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
    }

    .landing-cta-btn {
        border-radius: var(--radius-sm);
    }

    .landing-feature {
        padding: 3rem 1rem;
    }

    .landing-feature-heading {
        font-size: 1.5rem;
    }

    .landing-faq {
        padding: 3rem 1rem;
    }

    .landing-faq-heading {
        font-size: 2.5rem;
    }

    .landing-footer {
        padding: 2rem 1rem;
    }

    .landing-footer-wordmark {
        width: 160px;
    }
}
