/* ============================================================
   CAMPUS LIFELINE — LANDING.css
   Full landing page with hero + sections
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #C62828; --primary-d: #8E0000; --primary-l: #FFCDD2; --primary-ll: #FFEBEE;
    --green: #2E7D32; --green-l: #E8F5E9;
    --blue: #1565C0; --blue-l: #E3F2FD;
    --bg: #F8FAFC; --surface: #FFFFFF;
    --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --muted-2: #94A3B8;
    --rule: #E2E8F0; --rule-2: #CBD5E1;
    --shadow-sm: 0 4px 12px rgba(15,23,42,0.06);
    --shadow-md: 0 12px 32px rgba(15,23,42,0.1);
    --shadow-lg: 0 24px 60px rgba(15,23,42,0.14);
    --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 99px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ══ ANIMATIONS ══ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198,40,40,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px 4px rgba(198,40,40,0.2); }
}

/* ══ FLOATING NAV ══ */
.l-floating-nav {
    position: absolute; top: 20px; left: 40px; right: 40px; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
}
.l-nav-btn {
    font-family: var(--font); font-size: 12px; font-weight: 700;
    padding: 8px 20px; border-radius: var(--r-pill);
    text-decoration: none; transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.l-nav-btn.outline {
    color: white; border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}
.l-nav-btn.outline:hover { border-color: white; background: rgba(255,255,255,0.1); animation: none; }
.l-nav-btn.solid {
    color: white; background: var(--primary); border: 2px solid var(--primary);
    animation: pulse 2s ease-in-out infinite;
}
.l-nav-btn.solid:hover { background: #7070708a; border-color: #5e5e5e; animation: none; }
.l-nav-btn.ghost {
    font-family: var(--font); font-size: 12px; font-weight: 700;
    padding: 8px 20px; border-radius: var(--r-pill);
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.l-nav-btn.ghost:hover {
    border-color: white; color: white; background: rgba(255,255,255,0.08);
}

/* ══ EYEBROW LABEL ══ */
.l-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: #C62828;
    background: rgba(198, 40, 40, 0.08);
    border: 1.5px solid rgba(198, 40, 40, 0.2);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 16px;
}
.l-hero .l-eyebrow {
    color: white;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

/* ══ HERO ══ */
.l-hero {
    position: relative;
    background: url('../images/campus-bg.jpg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.l-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.7) 40%,
        rgba(15, 23, 42, 0.4) 100%
    );
    z-index: 1;
}
.l-hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; width: 100%;
}
.l-hero-left { max-width: 520px; }
.l-headline {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -1.5px; color: white;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease-out both;
}
.l-desc {
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.7); font-weight: 500;
    margin-bottom: 32px; max-width: 440px;
    animation: fadeIn 0.4s ease-out 0.15s both;
}
.l-cta-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    animation: fadeIn 0.4s ease-out 0.2s both;
}
.l-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-size: 14px; font-weight: 800;
    padding: 12px 24px; border-radius: var(--r);
    text-decoration: none; transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer; border: none;
}
.l-cta.primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 14px rgba(198,40,40,0.25);
}
.l-cta.primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(198,40,40,0.3); }

/* ══ HERO CIRCLES ══ */
.l-hero-right {
    position: relative; min-height: 500px;
    display: flex; align-items: center; justify-content: center;
}
.circle-connector {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.l-circle {
    width: 140px; height: 140px;
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    z-index: 1;
}
.l-circle-label {
    font-family: var(--font); font-size: 11px; font-weight: 800;
    color: #475569; letter-spacing: 0.5px;
}
.l-circle.circle-1 {
    top: 5%; right: 10%;
    animation: popIn 0.4s ease-out 0.15s both;
}
.l-circle.circle-2 {
    top: 40%; right: 35%;
    animation: popIn 0.4s ease-out 0.3s both;
}
.l-circle.circle-3 {
    bottom: 10%; right: 12%;
    animation: popIn 0.4s ease-out 0.45s both;
}

/* ══ SECTIONS ══ */
.l-section {
    padding: 80px 40px;
}
.l-section-alt {
    background: var(--surface);
}
.l-section-inner {
    max-width: 1100px; margin: 0 auto;
}
.l-section-header {
    text-align: center; margin-bottom: 48px;
}
.l-section-title {
    font-size: 30px; font-weight: 900; letter-spacing: -1px;
    color: var(--ink); margin-bottom: 12px;
}
.l-section-desc {
    font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 500px; margin: 0 auto;
}

/* ══ STEPS GRID ══ */
.l-steps-grid {
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.l-step-card {
    background: var(--surface); border: 2px solid var(--rule);
    border-radius: var(--r-lg); padding: 32px 24px;
    text-align: center; width: 260px;
    transition: all 0.25s; position: relative;
}
.l-step-card:hover { border-color: var(--primary-l); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.l-step-num {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.l-step-icon { font-size: 28px; margin-bottom: 12px; }
.l-step-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.l-step-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.l-step-arrow { font-size: 20px; color: var(--muted-2); }

/* ══ STATS ══ */
.l-stats-row {
    display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.l-stat { text-align: center; }
.l-stat-num {
    display: block; font-size: 36px; font-weight: 900;
    color: var(--primary); letter-spacing: -1px;
}
.l-stat-label {
    font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px;
}

/* ══ ROLES GRID ══ */
.l-roles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.l-role-card {
    background: var(--surface); border: 2px solid var(--rule);
    border-radius: var(--r-lg); padding: 32px 24px;
    text-align: center; cursor: pointer;
    transition: all 0.25s;
}
.l-role-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.l-role-card.featured { border-color: var(--primary); }
.l-role-icon-wrap {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px;
}
.l-role-icon-wrap.red { background: var(--primary-ll); color: var(--primary); }
.l-role-icon-wrap.blue { background: var(--blue-l); color: var(--blue); }
.l-role-icon-wrap.dark { background: #F1F5F9; color: #334155; }
.l-role-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.l-role-card ul { list-style: none; text-align: left; padding: 0; margin-bottom: 16px; }
.l-role-card ul li {
    font-size: 13px; color: var(--muted); line-height: 1.6; padding: 4px 0 4px 20px;
    position: relative;
}
.l-role-card ul li::before {
    content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.l-role-cta {
    font-size: 13px; font-weight: 800; color: var(--primary);
    transition: color 0.2s;
}
.l-role-card:hover .l-role-cta { color: var(--primary-d); }

/* ══ MODAL ══ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
    background: var(--surface); border-radius: var(--r-xl);
    padding: 36px 32px; width: 400px; max-width: 95vw;
    text-align: center; box-shadow: var(--shadow-lg);
    border: 2px solid var(--rule);
    transform: translateY(20px); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { margin-bottom: 20px; }
.modal-icon-2fa { font-size: 36px; margin-bottom: 8px; }
.modal-title { font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.modal-subtitle { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.modal-error { background: var(--primary-ll); border: 1.5px solid var(--primary-l); color: var(--primary); padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.modal-cancel { background: none; border: none; color: var(--muted-2); font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px 16px; margin-top: 10px; border-radius: var(--r); }
.modal-cancel:hover { background: var(--bg); color: var(--muted); }

/* Role Cards in Modal */
.role-card {
    cursor: pointer;
    border: 2px solid var(--rule);
    border-radius: var(--r);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    background: var(--surface);
    width: 130px;
}
.role-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.form-group { margin-bottom: 16px; }
.code-input-2fa {
    font-family: 'DM Mono', monospace; font-size: 22px; text-align: center;
    letter-spacing: 8px; background: var(--bg); border: 2px solid var(--rule);
    border-radius: var(--r); padding: 14px; width: 100%; color: var(--ink); outline: none;
    transition: all 0.2s;
}
.code-input-2fa:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(198,40,40,0.08); }
.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: var(--primary); color: white; border: none;
    border-radius: var(--r); padding: 13px 20px;
    font-family: var(--font); font-size: 13px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 14px rgba(198,40,40,0.2);
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.submit-btn:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn-text { letter-spacing: 0.3px; }
.btn-arrow { font-size: 15px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
    .l-hero-inner { gap: 40px; }
    .l-headline { font-size: 36px; }
    .l-roles-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 900px) {
    .l-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .l-hero-left { max-width: 100%; margin: 0 auto; }
    .l-desc { margin-left: auto; margin-right: auto; }
    .l-cta-row { justify-content: center; }
    .l-hero-right { display: none; }
    .l-steps-grid { flex-direction: column; }
    .l-step-arrow { transform: rotate(90deg); }
    .l-stats-row { gap: 32px; }
}
@media (max-width: 600px) {
    .l-floating-nav { left: 12px; right: 12px; top: 12px; }
    .l-floating-nav .l-brand span { display: none; }
    .l-floating-nav .l-nav-btn.ghost { display: none; }
    .l-nav-btn { padding: 7px 14px; font-size: 10px; }
    .l-hero-inner { padding: 0 16px; }
    .l-hero { min-height: auto; padding: 90px 0 60px; }
    .l-headline { font-size: 26px; letter-spacing: -1px; }
    .l-desc { font-size: 13px; }
    .l-cta { padding: 12px 20px; font-size: 13px; }
    .l-section { padding: 60px 16px; }
    .l-section-title { font-size: 22px; }
    .l-roles-grid { grid-template-columns: 1fr; }
    .l-steps-grid { flex-direction: column; }
    .l-step-arrow { transform: rotate(90deg); }
}
@media (hover: none) and (pointer: coarse) {
    .l-cta, .l-nav-btn, .submit-btn { min-height: 44px; }
}
