/* ── Landing page — estilos específicos ─────────────────────── */

/* Topbar: sin sidebar, ocupa el ancho completo */
.landing-page #eb-topbar {
    left: var(--float) !important;
}

/* Espacio bajo el topbar fijo */
.landing-page .landing-shell {
    padding-top: calc(var(--topbar-h) + var(--float) + 8px);
}

/* Brand mark sin caja — solo el logo */
.landing-page .eb-brand-mark {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
}

.landing-page .eb-brand-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Transición suave al cambiar de tema (solo propiedades de color) */
.landing-page .landing-showcase,
.landing-page .feature-card,
.landing-page .landing-highlights > div,
.landing-page header,
.landing-page footer,
.landing-page #eb-topbar,
.landing-page .landing-intro p,
.landing-page .brand-kicker {
    transition: background-color 0.3s ease, border-color 0.3s ease,
                color 0.2s ease, box-shadow 0.3s ease !important;
}

.landing-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.landing-theme-btn:hover {
    border-color: rgba(239, 140, 0, 0.4);
    background: rgba(239, 140, 0, 0.1);
    color: #EF8C00;
}

[data-theme="light"] .landing-theme-btn {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    color: #666;
}

[data-theme="light"] .landing-theme-btn:hover {
    border-color: rgba(239, 140, 0, 0.5);
    background: rgba(239, 140, 0, 0.08);
    color: #EF8C00;
}

.landing-page {
    font-family: 'Manrope', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(1100px 600px at -5% -15%, rgba(239, 140, 0, 0.07), transparent 60%),
        radial-gradient(900px 500px at 110% -10%, rgba(239, 140, 0, 0.04), transparent 60%),
        linear-gradient(145deg, #0a0a0d 0%, #0d0d10 52%, #111115 100%);
    min-height: 100vh;
}

/* Blur orbs de fondo */
.landing-shell::before,
.landing-shell::after {
    content: '';
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(70px);
}

.landing-shell::before {
    width: 300px;
    height: 300px;
    left: -80px;
    top: 120px;
    background: rgba(239, 140, 0, 0.06);
}

.landing-shell::after {
    width: 320px;
    height: 320px;
    right: -120px;
    top: 220px;
    background: rgba(239, 140, 0, 0.04);
}

/* Header */
.landing-page .landing-header {
    padding-top: 0.5rem;
}

.landing-page .brand-cluster {
    gap: 0.9rem;
}

.landing-page .brand-mark {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
}

.landing-page .brand-kicker {
    margin: 0;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
}

.landing-page .brand-copy h1 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.landing-page .landing-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(239, 140, 0, 0.32);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    background: rgba(239, 140, 0, 0.08);
    color: #EF8C00;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-size: 0.875rem;
}

.landing-page .landing-auth-link:hover {
    border-color: rgba(239, 140, 0, 0.6);
    background: rgba(239, 140, 0, 0.16);
}

.landing-page .landing-intro p {
    max-width: 850px;
    line-height: 1.5;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Main */
.landing-page main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

/* Hero showcase */
.landing-page .landing-showcase {
    position: relative;
    overflow: hidden;
}

.landing-page .landing-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(380px 220px at 10% 0%, rgba(239, 140, 0, 0.08), transparent 70%),
        radial-gradient(340px 200px at 100% 30%, rgba(239, 140, 0, 0.05), transparent 70%);
    pointer-events: none;
}

.landing-page .landing-showcase h2 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    line-height: 1.15;
}

.landing-page .landing-highlights > div {
    border: 1px solid rgba(239, 140, 0, 0.15);
    background: linear-gradient(140deg, rgba(17, 17, 22, 0.72), rgba(10, 10, 13, 0.54));
    transition: border-color 0.22s ease;
}

.landing-page .landing-highlights > div:hover {
    border-color: rgba(239, 140, 0, 0.35);
}

/* Feature pills */
.landing-page .feature-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.landing-page .feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 140, 0, 0.3);
    box-shadow: 0 10px 22px rgba(2, 10, 18, 0.3);
}

/* Footer */
.landing-page footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

/* Animaciones de entrada */
.landing-page .landing-showcase,
.landing-page .feature-card {
    animation: landingRise 0.52s ease both;
}

.landing-page .feature-card:nth-child(2) { animation-delay: 0.05s; }
.landing-page .feature-card:nth-child(3) { animation-delay: 0.1s; }

@keyframes landingRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .landing-page .brand-copy h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .landing-page main {
        padding-top: 0.85rem;
    }

    .landing-page .landing-showcase {
        padding: 1.2rem !important;
    }
}

@media (max-width: 520px) {
    .landing-page .brand-cluster {
        gap: 0.65rem;
    }

    .landing-page .brand-mark {
        width: 2.2rem !important;
        height: 2.2rem !important;
    }

    .landing-page .brand-copy h1 {
        font-size: 1.08rem;
    }

    .landing-page .brand-kicker {
        font-size: 0.62rem;
    }

    .landing-page .landing-showcase h2 {
        font-size: 1.65rem;
    }
}

/* Modal de login */
#login-modal {
    font-family: 'Manrope', 'Space Grotesk', -apple-system, sans-serif;
}

#login-modal-box {
    animation: modalIn 0.22s ease both;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

#login-submit:hover:not(:disabled) {
    background: #d97b00 !important;
}

#login-email:focus,
#login-password:focus {
    border-color: rgba(239, 140, 0, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(239, 140, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .landing-page *,
    .landing-page *::before,
    .landing-page *::after {
        animation: none !important;
        transition-duration: 0ms !important;
    }
}

/* Light theme */
[data-theme="light"] .landing-page {
    background: #F2F2F3;
}

[data-theme="light"] .landing-page .landing-showcase {
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .landing-page .feature-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .landing-page .landing-highlights > div.hl-orange {
    background: rgba(239, 140, 0, 0.09) !important;
    border-color: rgba(239, 140, 0, 0.22) !important;
}

[data-theme="light"] .landing-page .landing-highlights > div.hl-green {
    background: rgba(74, 222, 128, 0.09) !important;
    border-color: rgba(74, 222, 128, 0.22) !important;
}

[data-theme="light"] .landing-page .landing-highlights > div.hl-blue {
    background: rgba(56, 189, 248, 0.09) !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
}

[data-theme="light"] .landing-page .landing-highlights > div.hl-purple {
    background: rgba(167, 139, 250, 0.1) !important;
    border-color: rgba(167, 139, 250, 0.25) !important;
}
