/*
 * landing.css — STATE A: Landing Surface
 * Created: Batch 07 — Landing & Sidebar Layout Redesign
 *
 * Full-viewport clean landing: logo, search, chips, subtext.
 * Visible only in .lf-state-landing body class.
 * Nothing else is visible in STATE A.
 *
 * Depends on: css/base.css
 * Zero hardcoded colors — CSS vars only.
 */

/* ============================================================
   LANDING SURFACE CONTAINER
   ============================================================ */
#lf-landing {
    display: none; /* hidden unless lf-state-landing */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    min-height: 0;
    padding: var(--space-inner-lg);
    position: relative;
    overflow: hidden;
    gap: 0;
}

/* Atmospheric depth gradient overlays */
#lf-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%,   var(--cyan-alpha-10) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 20% 80%,  var(--gold-alpha-10) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 80% 100%, var(--cyan-alpha-10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

#lf-landing > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   LOGO BLOCK
   ============================================================ */
.lf-landing__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.lf-landing__mark {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: var(--weight-black);
    font-size: var(--text-xl);
    color: var(--text-inverse);
    box-shadow: var(--glow-gold-md);
    letter-spacing: -0.04em;
    animation: float 6s ease-in-out infinite;
}

.lf-landing__wordmark {
    font-family: var(--font-display);
    font-weight: var(--weight-black);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-widest);
    background: linear-gradient(90deg, var(--gold-400), var(--gold-200), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1;
}

/* ============================================================
   HEADLINE
   ============================================================ */
.lf-landing__headline {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 12px;
}

.lf-landing__headline span {
    color: var(--cyan-500);
    text-shadow: var(--glow-cyan-sm);
}

.lf-landing__subheadline {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--text-muted);
    text-align: center;
    letter-spacing: var(--tracking-wide);
    margin: 0 0 40px;
}

/* ============================================================
   SEARCH BOX (dominant element)
   ============================================================ */
.lf-landing__search-wrap {
    width: 100%;
    max-width: 640px;
    margin-bottom: 20px;
}

.lf-landing__search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--cyan-alpha-30);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 28px;
    gap: 12px;
    box-shadow: var(--glass-shadow), var(--glow-cyan-sm);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    animation: cyanPulse 3.5s ease-in-out infinite;
}

.lf-landing__search-box:focus-within {
    border-color: var(--cyan-500);
    box-shadow: var(--glass-shadow), var(--glow-cyan-md);
    background: rgba(255, 255, 255, 0.07);
    animation: none;
}

.lf-landing__search-icon {
    color: var(--text-dim);
    font-size: var(--text-md);
    flex-shrink: 0;
}

.lf-landing__search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    padding: 16px 0;
    min-width: 0;
    caret-color: var(--cyan-500);
}

.lf-landing__search-input::placeholder {
    color: var(--text-dim);
    font-weight: var(--weight-light);
}

.lf-landing__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: var(--btn-transition);
    white-space: nowrap;
    flex-shrink: 0;
    animation: btnNeonPulse 3s ease-in-out infinite;
}

.lf-landing__search-btn:hover {
    background: var(--btn-primary-bg-hover);
    box-shadow: var(--glow-gold-md);
    transform: translateY(-1px);
    animation: none;
}

.lf-landing__search-btn:active {
    transform: translateY(0);
}

/* ============================================================
   SUGGESTION CHIPS
   ============================================================ */
.lf-landing__suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.lf-landing__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.lf-landing__chip:hover {
    background: var(--glass-bg-hover);
    border-color: var(--cyan-alpha-30);
    color: var(--cyan-500);
    box-shadow: var(--glow-cyan-sm);
}

.lf-landing__chip i {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

/* ============================================================
   SUBTEXT
   ============================================================ */
.lf-landing__subtext {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-dim);
    letter-spacing: var(--tracking-widest);
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

/* ============================================================
   BODY STATE: LANDING — show landing, hide everything else
   ============================================================ */
body.lf-state-landing #lf-landing       { display: flex; }
body.lf-state-landing #lf-topbar        { display: none; }
body.lf-state-landing #lf-intel-bar     { display: none; }
body.lf-state-landing #lf-snapshot      { display: none; }
body.lf-state-landing #lf-strategy      { display: none; }
body.lf-state-landing #lf-workspace     { display: none; }
body.lf-state-landing #lf-sidebar       { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .lf-landing__headline {
        font-size: var(--text-3xl);
    }

    .lf-landing__search-input {
        font-size: var(--text-base);
        padding: 14px 0;
    }

    .lf-landing__search-btn {
        padding: 12px 20px;
    }

    .lf-landing__logo {
        margin-bottom: 36px;
    }

    #lf-landing {
        padding: var(--space-inner-md);
    }
}

@media (max-width: 480px) {
    .lf-landing__headline {
        font-size: var(--text-2xl);
    }

    .lf-landing__search-btn span {
        display: none;
    }

    .lf-landing__suggestions {
        gap: 6px;
    }
}
