/* --- CSS/landing.css --- */
/* Landing / marketing page for CMSP. Reuses the brand tokens from style.css
   (colors, radii, shadows) so it feels like the same product as the dashboards. */

.land-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.land-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.land-brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.land-brand .brand-logo { width:auto;min-width:42px;height:42px;padding:0 10px;flex-shrink:0;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:0.72rem;letter-spacing:-0.2px;line-height:1;white-space:nowrap; }
.land-brand-text h1{ font-size:1.1rem;font-weight:800;color:var(--text-dark);margin:0;letter-spacing:-0.4px; }
.land-brand-text p{ font-size:0.68rem;color:var(--text-light);margin:0;font-weight:600;text-transform:uppercase;letter-spacing:0.6px; }

.land-links { display:flex; align-items:center; gap:6px; }
.land-links a.nav-link { text-decoration:none; color:var(--text-light); font-weight:600; font-size:0.9rem; padding:9px 14px; border-radius:var(--radius-md); transition:all .2s; }
.land-links a.nav-link:hover { background:var(--accent-light); color:var(--primary-color); }
.land-links a.btn { margin-left:6px; }

.land-menu-toggle { display:none; background:#f1f5f9; border:none; width:40px;height:40px;border-radius:var(--radius-md); font-size:1.1rem; color:var(--text-dark); cursor:pointer; }

/* Hero */
.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display:inline-flex; align-items:center; gap:8px;
    background: var(--accent-light); color: var(--primary-color);
    font-size:0.78rem; font-weight:700; padding:6px 14px; border-radius:50px;
    margin-bottom:20px; letter-spacing:0.3px;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero h1 em { font-style:normal; color:var(--primary-color); }

.hero p.lead {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 30px;
}

.hero-ctas { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }

.hero-stats { display:flex; gap:2rem; flex-wrap:wrap; }
.hero-stats .stat b { display:block; font-size:1.6rem; font-weight:800; color:var(--text-dark); letter-spacing:-0.5px; }
.hero-stats .stat span { font-size:0.78rem; color:var(--text-light); font-weight:600; }

/* Signature element: a tilted digital membership card */
.card-stage { position:relative; height:380px; display:flex; align-items:center; justify-content:center; }

.id-card {
    width: 320px;
    border-radius: 20px;
    padding: 26px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 65%, #818cf8 100%);
    color: #fff;
    box-shadow: 0 30px 60px -15px rgba(79,70,229,0.45);
    transform: rotate(-6deg);
    position: relative;
}

.id-card::after {
    content:"";
    position:absolute; inset:0; border-radius:20px;
    background: radial-gradient(circle at 85% 10%, rgba(255,255,255,0.25), transparent 55%);
}

.id-card .id-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:28px; position:relative; }
.id-card .id-logo { font-weight:800; font-size:1.05rem; letter-spacing:-0.3px; }
.id-card .id-chip { width:34px;height:24px;border-radius:5px;background:rgba(255,255,255,0.35); }
.id-card .id-name { font-size:1.15rem; font-weight:700; margin-bottom:2px; position:relative; }
.id-card .id-role { font-size:0.78rem; opacity:0.85; margin-bottom:22px; position:relative; }
.id-card .id-foot { display:flex; justify-content:space-between; align-items:flex-end; font-size:0.68rem; opacity:0.85; position:relative; letter-spacing:0.4px; text-transform:uppercase; }
.id-card .id-status { background:rgba(255,255,255,0.22); padding:4px 10px; border-radius:50px; font-weight:700; }

.card-behind {
    position:absolute;
    width:320px; height:180px;
    border-radius:20px;
    background: #fff;
    border:1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: rotate(8deg) translateY(40px);
    z-index:-1;
}

/* Section shell */
.land-section { max-width:1180px; margin:0 auto; padding:4rem 1.5rem; }
.land-section-head { max-width:640px; margin-bottom:2.5rem; }
.land-eyebrow { font-size:0.78rem; font-weight:700; color:var(--primary-color); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:10px; display:block; }
.land-section-head h2 { font-size:1.9rem; font-weight:800; letter-spacing:-0.6px; color:var(--text-dark); margin-bottom:12px; }
.land-section-head p { color:var(--text-light); line-height:1.7; }

/* Feature grid */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.feature-card { background:#fff; border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:1.75rem; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.feature-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.feature-icon { width:46px;height:46px;border-radius:12px;background:var(--accent-light);color:var(--primary-color);display:flex;align-items:center;justify-content:center;font-size:1.15rem;margin-bottom:16px; }
.feature-card h3 { font-size:1.02rem; font-weight:700; margin-bottom:8px; color:var(--text-dark); }
.feature-card p { font-size:0.88rem; color:var(--text-light); line-height:1.6; }

/* Why section */
.why-wrap { display:grid; grid-template-columns:0.9fr 1.1fr; gap:3rem; align-items:center; background:#fff; border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:2.5rem; box-shadow:var(--shadow); }
.why-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:1.4rem; }
.why-list li { display:flex; gap:14px; align-items:flex-start; }
.why-list li i { color:var(--success-color); background:#e6fffa; width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center; font-size:0.8rem; flex-shrink:0; margin-top:2px; }
.why-list li strong { display:block; color:var(--text-dark); font-size:0.95rem; margin-bottom:3px; }
.why-list li span { color:var(--text-light); font-size:0.85rem; line-height:1.55; }

.professions-panel { background:linear-gradient(145deg,#f8fafc,#eef2ff); border-radius:var(--radius-lg); padding:1.75rem; border:1px solid var(--border-color); }
.professions-panel h4 { font-size:0.85rem; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-light); margin-bottom:14px; font-weight:700;}
.profession-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.profession-list li { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--border-color); padding:10px 14px; border-radius:12px; font-size:0.92rem; font-weight:600; color:var(--text-dark); }
.profession-num { flex-shrink:0; width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,var(--primary-color),var(--secondary-color)); color:#fff; font-size:0.75rem; font-weight:800; display:flex; align-items:center; justify-content:center; }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius:var(--radius-lg); padding:3.2rem 2.5rem; text-align:center; color:#fff; position:relative; overflow:hidden; }
.cta-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.15), transparent 45%); }
.cta-banner h2 { font-size:1.8rem; font-weight:800; letter-spacing:-0.5px; margin-bottom:12px; position:relative; }
.cta-banner p { opacity:0.9; margin-bottom:26px; position:relative; }
.cta-banner .hero-ctas { justify-content:center; position:relative; }
.btn-white { background:#fff; color:var(--primary-color); box-shadow:0 4px 14px rgba(0,0,0,0.15); }
.btn-white:hover { opacity:0.92; }
.btn-ghost-white { background:transparent; border:1.5px solid rgba(255,255,255,0.6); color:#fff; }
.btn-ghost-white:hover { background:rgba(255,255,255,0.12); }

/* Footer */
.land-footer { background:#0f172a; color:#cbd5e1; padding:3.5rem 1.5rem 0; margin-top:2rem; }
.footer-inner { max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.5rem; padding-bottom:2.5rem; }
.footer-brand { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand span { font-weight:800; color:#fff; font-size:1.05rem; }
.footer-col h5 { color:#fff; font-size:0.82rem; text-transform:uppercase; letter-spacing:0.6px; margin-bottom:14px; }
.footer-col a { display:block; color:#94a3b8; text-decoration:none; font-size:0.87rem; margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:#fff; }
.footer-desc { color:#94a3b8; font-size:0.87rem; line-height:1.7; max-width:320px; }

.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding:1.4rem 0; max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:0.8rem; color:#64748b; }

.dev-credit { text-align:right; }
.dev-credit a { color:#a5b4fc; text-decoration:none; font-weight:600; }
.dev-credit a:hover { text-decoration:underline; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns:1fr; padding-top:2.5rem; gap:2.5rem; text-align:left; }
    .card-stage { height:260px; }
    .id-card, .card-behind { width:260px; }
    .card-behind { height:150px; }
    .why-wrap { grid-template-columns:1fr; padding:1.75rem; }
    .feature-grid { grid-template-columns:1fr 1fr; }
    .footer-inner { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
    .land-links { display:none; position:absolute; top:72px; left:0; right:0; background:#fff; flex-direction:column; align-items:stretch; padding:12px; border-bottom:1px solid var(--border-color); box-shadow:var(--shadow-md); }
    .land-links.open { display:flex; }
    .land-links a.nav-link { padding:12px 14px; }
    .land-links a.btn { margin-left:0; margin-top:6px; }
    .land-menu-toggle { display:flex; align-items:center; justify-content:center; }

    .hero h1 { font-size:2rem; }
    .hero p.lead { font-size:0.95rem; }
    .hero-stats { gap:1.4rem; }
    .hero-stats .stat b { font-size:1.3rem; }

    .feature-grid { grid-template-columns:1fr; }
    .land-section { padding:2.75rem 1.25rem; }
    .land-section-head h2 { font-size:1.5rem; }

    .cta-banner { padding:2.5rem 1.5rem; }
    .cta-banner h2 { font-size:1.4rem; }

    .footer-inner { grid-template-columns:1fr; padding-bottom:1.5rem; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .dev-credit { text-align:center; }
}
