/**
 * Pre-login landing page (index.php when logged out).
 *
 * Deliberately a single dark look — it does NOT follow the light/dark toggle
 * (there's no logged-in session to have a preference yet). Green brand + amber
 * accent, glass "product preview" cards on the right. Structure mirrors the
 * EDR/Bel-Cafe landing this was modelled on, retokenised for SBJA.
 */

.landing-body {
    margin: 0;
    color: #fff;
    background: #0b1f14;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* === TOP NAV === */
.landing-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(11, 31, 20, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.landing-nav-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.landing-nav-login {
    padding: 9px 20px;
    border-radius: 8px;
    background: var(--brand-light, #2d9a56);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.landing-nav-login:hover {
    background: var(--brand-color, #1a6b3a);
    transform: translateY(-1px);
}

/* === HERO === */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 104px 32px 64px;
    background: linear-gradient(135deg, #0b1f14 0%, #0f2c1c 45%, #12130c 100%);
    isolation: isolate;
}

.landing-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.landing-glow.a {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(45, 154, 86, 0.4) 0%, transparent 70%);
    top: -160px;
    right: -120px;
}

.landing-glow.b {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}

.landing-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 24px;
    border-radius: 99px;
    background: rgba(45, 154, 86, 0.16);
    border: 1px solid rgba(45, 154, 86, 0.35);
    color: #7fd6a2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d9a56;
    display: inline-block;
    animation: landingPulse 1.8s infinite;
}

@keyframes landingPulse {
    0%   { box-shadow: 0 0 0 0 rgba(45, 154, 86, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(45, 154, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 154, 86, 0); }
}

.landing-title {
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.14;
    color: #fff;
}

.landing-title em {
    font-style: normal;
    color: var(--accent-color, #f59e0b);
}

.landing-sub {
    margin: 0 0 36px;
    max-width: 440px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.58);
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-light, #2d9a56) 0%, var(--brand-color, #1a6b3a) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 154, 86, 0.35);
}

/* === GLASS PREVIEW CARDS === */
.landing-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mock-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mock-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mock-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    background: var(--brand-light, #2d9a56);
}

.mock-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mock-meta {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-stat {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.mock-stat b {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
}

.mock-stat b.amber { color: var(--accent-color, #f59e0b); }
.mock-stat b.mut   { color: rgba(255, 255, 255, 0.55); }

.mock-stat span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.mock-bar {
    margin-top: 12px;
}

.mock-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.mock-bar-track {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mock-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-light, #2d9a56), #7fd6a2);
}

.mock-activity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-activity-body {
    flex: 1;
    min-width: 0;
}

.mock-activity-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.mock-activity-meta {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.mock-pill {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(45, 154, 86, 0.2);
    color: #7fd6a2;
    border: 1px solid rgba(45, 154, 86, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
    .landing-nav { padding: 0 20px; }
    .landing-hero { padding: 96px 20px 56px; }
    .landing-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .landing-visual { display: none; }
    .landing-sub { max-width: none; }
}
