/* ================================
   LABEX - PUBLIC WEB LANDING
   Deep navy hero + warm amber accents
   ================================ */

body.public-portal {
    --web-text: #0f172a;
    --web-text-secondary: #475569;
    --web-text-muted: #94a3b8;

    --web-border: #e2e8f0;
    --web-border-soft: #f1f5f9;
    --web-bg: #fafafa;
    --web-bg-card: #ffffff;

    --web-navy-900: #0c4a6e;
    --web-navy-800: #1e3a8a;
    --web-indigo-900: #312e81;
    --web-hero-gradient: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 50%, #312e81 100%);

    --web-amber: #fbbf24;
    --web-amber-dark: #f59e0b;
    --web-amber-darker: #d97706;
    --web-amber-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --web-amber-gradient-hover: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    --web-blue: #2563eb;
    --web-blue-soft: #eff6ff;
    --web-violet: #7c3aed;
    --web-violet-soft: #f5f3ff;
    --web-rose: #e11d48;
    --web-rose-soft: #fff1f2;

    --web-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --web-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --web-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.10);
    --web-shadow-glow: 0 12px 40px -12px rgba(251, 191, 36, 0.50);

    --web-radius: 0.5rem;
    --web-radius-lg: 0.75rem;
    --web-radius-xl: 1rem;
    --web-radius-2xl: 1.5rem;

    --web-transition: 200ms ease-in-out;

    background: var(--web-bg);
    color: var(--web-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* ================================
   NAVBAR
   ================================ */
body.public-portal .navbar {
    background: var(--web-bg-card) !important;
    border-bottom: 1px solid var(--web-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--web-shadow-sm);
    padding: 0.75rem 0;
}

.web-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    background: transparent !important;
    padding: 0 !important;
    font-weight: 700;
    font-size: 1.25rem !important;
    color: var(--web-text) !important;
    text-decoration: none;
}

.web-brand:hover {
    color: var(--web-navy-800) !important;
}

.web-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--web-radius);
    background: var(--web-hero-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px -4px rgba(30, 58, 138, 0.45);
}

.web-nav-link {
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--web-radius);
    color: var(--web-text-secondary) !important;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all var(--web-transition);
    text-decoration: none;
}

.web-nav-link:hover {
    background: var(--web-bg);
    color: var(--web-text) !important;
}

.web-btn-amber {
    background: var(--web-amber-gradient) !important;
    color: #1f2937 !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--web-radius) !important;
    font-weight: 600 !important;
    transition: all var(--web-transition);
    box-shadow: var(--web-shadow-sm);
}

.web-btn-amber:hover {
    background: var(--web-amber-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--web-shadow-md);
    color: #1f2937 !important;
}

.web-btn-ghost {
    background: transparent !important;
    color: var(--web-text) !important;
    border: 1px solid var(--web-border) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--web-radius) !important;
    font-weight: 500 !important;
    transition: all var(--web-transition);
}

.web-btn-ghost:hover {
    border-color: var(--web-navy-800) !important;
    background: var(--web-blue-soft) !important;
    color: var(--web-navy-800) !important;
}

.web-logout-btn {
    background: transparent !important;
    color: var(--web-rose) !important;
    border: 1px solid var(--web-rose-soft) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--web-radius) !important;
    font-weight: 500 !important;
    transition: all var(--web-transition);
    cursor: pointer;
}

.web-logout-btn:hover {
    background: var(--web-rose-soft) !important;
    border-color: var(--web-rose) !important;
}

.web-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--web-border);
    box-shadow: var(--web-shadow-sm);
}

/* ================================
   HERO
   ================================ */
.web-hero {
    background: var(--web-hero-gradient);
    color: #fff;
    border-radius: var(--web-radius-2xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.web-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 180%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.web-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 70%;
    height: 180%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.20) 0%, transparent 60%);
    pointer-events: none;
}

.web-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.12);
    color: var(--web-amber);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    position: relative;
    z-index: 1;
}

.web-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.web-hero h1 .web-hero-highlight {
    background: var(--web-amber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.web-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.web-cta-primary {
    background: var(--web-amber-gradient) !important;
    color: #1f2937 !important;
    border: none !important;
    padding: 0.85rem 1.75rem !important;
    border-radius: var(--web-radius-lg) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: var(--web-shadow-glow);
    transition: all var(--web-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.web-cta-primary:hover {
    background: var(--web-amber-gradient-hover) !important;
    transform: translateY(-2px);
    color: #1f2937 !important;
    box-shadow: 0 16px 50px -12px rgba(251, 191, 36, 0.65);
}

.web-cta-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 0.85rem 1.75rem !important;
    border-radius: var(--web-radius-lg) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all var(--web-transition);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.web-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ================================
   TRUST STRIP
   ================================ */
.web-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--web-bg-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-xl);
    box-shadow: var(--web-shadow-sm);
    margin-bottom: 2.5rem;
}

.web-trust-item {
    text-align: center;
}

.web-trust-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--web-navy-800);
    line-height: 1.1;
    margin: 0 0 0.25rem;
}

.web-trust-label {
    font-size: 0.8rem;
    color: var(--web-text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ================================
   SECTIONS
   ================================ */
.web-section {
    margin-bottom: 3rem;
}

.web-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.web-section-eyebrow {
    color: var(--web-amber-darker);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.web-section-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--web-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.web-section-header p {
    color: var(--web-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ================================
   FEATURE CARDS
   ================================ */
.web-feature {
    background: var(--web-bg-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-xl);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--web-transition);
    position: relative;
    overflow: hidden;
}

.web-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--web-shadow-lg);
    border-color: var(--web-border-soft);
}

.web-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--web-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.web-feature-icon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--web-amber-darker);
}

.web-feature-icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--web-blue);
}

.web-feature-icon-violet {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: var(--web-violet);
}

.web-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--web-text);
    margin: 0 0 0.5rem;
}

.web-feature p {
    color: var(--web-text-secondary);
    margin: 0 0 1rem;
    font-size: 0.925rem;
    line-height: 1.55;
}

.web-feature-link {
    color: var(--web-navy-800);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--web-transition);
}

.web-feature-link:hover {
    color: var(--web-indigo-900);
    gap: 0.6rem;
}

/* ================================
   AUTH CTA PANEL
   ================================ */
.web-cta-panel {
    background: var(--web-hero-gradient);
    color: #fff;
    border-radius: var(--web-radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.web-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.web-cta-panel h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    position: relative;
    z-index: 1;
}

.web-cta-panel p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 1;
}

/* ================================
   QUICK ACTIONS (auth users)
   ================================ */
.web-quick-actions {
    background: var(--web-bg-card);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-xl);
    padding: 2rem;
    box-shadow: var(--web-shadow-sm);
}

.web-quick-actions h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--web-text);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.web-quick-actions h3 i {
    color: var(--web-amber-darker);
}

.web-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--web-bg);
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius-lg);
    color: var(--web-text);
    text-decoration: none;
    transition: all var(--web-transition);
    height: 100%;
    text-align: center;
}

.web-action-tile:hover {
    background: var(--web-bg-card);
    border-color: var(--web-navy-800);
    transform: translateY(-2px);
    box-shadow: var(--web-shadow-md);
    color: var(--web-text);
}

.web-action-tile i {
    font-size: 1.5rem;
    color: var(--web-navy-800);
}

.web-action-tile span {
    font-weight: 600;
    font-size: 0.925rem;
}

/* ================================
   FOOTER
   ================================ */
body.public-portal footer {
    background: var(--web-bg-card);
    border-top: 1px solid var(--web-border);
    padding: 1.5rem 0;
    color: var(--web-text-secondary);
    font-size: 0.875rem;
    margin-top: 3rem;
}

body.public-portal footer a {
    color: var(--web-navy-800);
    text-decoration: none;
}

body.public-portal footer a:hover {
    color: var(--web-indigo-900);
    text-decoration: underline;
}

/* ================================
   CONTAINER
   ================================ */
.web-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

@media (max-width: 575.98px) {
    .web-hero {
        padding: 2.5rem 1.25rem;
        border-radius: var(--web-radius-xl);
    }

    .web-trust {
        padding: 1.25rem;
    }

    .web-container {
        padding: 1.5rem 1rem;
    }
}
