:root {
    --legawa-primary: #1F5C99;
    --legawa-primary-dark: #16456f;
    --legawa-primary-light: #2f7bc4;
    --legawa-accent: #3FA7D6;
    --legawa-pharma: #14a085;
    --legawa-ink: #1b2733;
    --legawa-muted: #5a6b7b;
    --legawa-soft: #f4f7fb;
    --legawa-line: #e7eef6;
    --legawa-gradient: linear-gradient(135deg, #1F5C99 0%, #3FA7D6 100%);
    --legawa-shadow: 0 12px 40px rgba(31, 92, 153, 0.12);
    --legawa-shadow-lg: 0 30px 70px rgba(31, 92, 153, 0.18);

    --ok-bg: #e8f8f2;  --ok-line: #5fd3b4; --ok-ink: #0e7a63;
    --no-bg: #fdeced;  --no-line: #f1a6ac; --no-ink: #c0354a;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--legawa-ink);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.018em;
}

.text-gradient {
    background: var(--legawa-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.py-section { padding: 96px 0; }
.bg-soft { background: var(--legawa-soft); }

.section-head { max-width: 700px; margin: 0 auto 24px; }
.section-eyebrow {
    display: inline-block;
    color: var(--legawa-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    margin-bottom: 10px;
}
.section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 12px; }
.section-desc { color: var(--legawa-muted); font-size: 1.05rem; }

.btn-primary-legawa {
    background: var(--legawa-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31, 92, 153, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary-legawa:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(31, 92, 153, 0.35);
}
.btn-outline-legawa {
    border: 2px solid var(--legawa-primary);
    color: var(--legawa-primary);
    font-weight: 600;
    border-radius: 12px;
    background: transparent;
    transition: all .2s ease;
}
.btn-outline-legawa:hover { background: var(--legawa-primary); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-radius: 12px; }

.navbar-landing {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
}
.navbar-landing.scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.96);
}
.brand-text { font-weight: 700; font-size: 1.2rem; color: var(--legawa-ink); font-family: 'Space Grotesk', sans-serif; }
.brand-accent { color: var(--legawa-primary); }
.navbar-landing .nav-link {
    font-weight: 500;
    color: var(--legawa-ink);
    padding: .5rem .9rem;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.navbar-landing .nav-link:hover,
.navbar-landing .nav-link.active { color: var(--legawa-primary); }
.navbar-toggler { border: none; font-size: 1.6rem; color: var(--legawa-primary); }
.navbar-toggler:focus { box-shadow: none; }

.hero-section {
    position: relative;
    padding: 150px 0 88px;
    background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%);
    overflow: hidden;
}
.hero-bg-decoration {
    position: absolute;
    top: -140px; right: -120px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(63, 167, 214, 0.22), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }

.badge-pill-legawa {
    display: inline-flex;
    align-items: center;
    background: rgba(20, 160, 133, 0.1);
    color: var(--legawa-pharma);
    font-weight: 600;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 50px;
}
.hero-title { font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.08; margin-bottom: 14px; }
.hero-tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    color: var(--legawa-primary);
    margin-bottom: 16px;
}
.hero-subtitle { color: var(--legawa-muted); font-size: 1.08rem; max-width: 540px; }
.hero-subtitle strong { color: var(--legawa-ink); }

.hero-trust { font-size: .95rem; color: var(--legawa-muted); display: flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--legawa-pharma); font-size: 1.15rem; }
.hero-trust strong { color: var(--legawa-ink); }

.sim-card {
    background: #fff;
    border: 1px solid var(--legawa-line);
    border-radius: 22px;
    box-shadow: var(--legawa-shadow-lg);
    overflow: hidden;
    position: relative;
}
.sim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px 12px;
}
.sim-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20, 160, 133, 0.1);
    color: var(--legawa-pharma);
    font-weight: 600; font-size: .8rem;
    padding: 5px 12px; border-radius: 50px;
}
.sim-progress { font-size: .82rem; font-weight: 600; color: var(--legawa-muted); }
.sim-progress-track { height: 4px; background: var(--legawa-line); }
.sim-progress-bar { height: 100%; width: 0; background: var(--legawa-gradient); transition: width .4s ease; }

.sim-body { padding: 24px; min-height: 360px; }
.sim-loading { text-align: center; color: var(--legawa-muted); padding: 80px 0; }

.sim-cat {
    display: inline-block;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--legawa-primary);
    background: rgba(31, 92, 153, 0.08);
    padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.sim-q { font-size: 1.06rem; font-weight: 600; line-height: 1.5; color: var(--legawa-ink); margin-bottom: 18px; }

.sim-options { display: flex; flex-direction: column; gap: 10px; }
.sim-opt {
    display: flex; align-items: center; gap: 12px;
    width: 100%; text-align: left;
    background: #fff;
    border: 1.5px solid var(--legawa-line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .92rem; color: var(--legawa-ink);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.sim-opt:hover:not(.is-locked) { border-color: var(--legawa-accent); background: rgba(63, 167, 214, 0.05); }
.sim-opt:active:not(.is-locked) { transform: scale(.99); }
.sim-opt-key {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--legawa-soft);
    color: var(--legawa-primary);
    font-weight: 700; font-size: .82rem;
    transition: background .15s ease, color .15s ease;
}
.sim-opt-text { flex: 1; }
.sim-opt-mark { flex-shrink: 0; font-size: 1.1rem; width: 20px; text-align: center; }
.sim-opt.is-locked { cursor: default; }

.sim-opt.is-correct { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }
.sim-opt.is-correct .sim-opt-key { background: var(--ok-line); color: #fff; }
.sim-opt.is-correct .sim-opt-mark { color: var(--ok-ink); }
.sim-opt.is-wrong { border-color: var(--no-line); background: var(--no-bg); color: var(--no-ink); }
.sim-opt.is-wrong .sim-opt-key { background: var(--no-line); color: #fff; }
.sim-opt.is-wrong .sim-opt-mark { color: var(--no-ink); }

.sim-explain {
    margin-top: 16px;
    border-radius: 12px;
    background: var(--legawa-soft);
    border: 1px solid var(--legawa-line);
    padding: 14px 16px;
    animation: simFade .3s ease;
}
.sim-explain-head { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.sim-explain-head.right { color: var(--ok-ink); }
.sim-explain-head.wrong { color: var(--no-ink); }
.sim-explain-body { font-size: .9rem; color: var(--legawa-muted); line-height: 1.55; }
.sim-explain-body strong { color: var(--legawa-ink); }

.sim-actions { margin-top: 16px; text-align: right; }
.sim-actions .sim-next { padding: 9px 20px; }

@keyframes simFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sim-result { text-align: center; padding: 14px 6px 6px; animation: simFade .35s ease; }
.sim-score-ring {
    --p: 0;
    width: 132px; height: 132px;
    border-radius: 50%;
    margin: 6px auto 18px;
    display: grid; place-items: center;
    background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%),
                conic-gradient(var(--legawa-accent) calc(var(--p) * 1%), var(--legawa-line) 0);
}
.sim-score-inner { display: flex; flex-direction: column; line-height: 1; }
.sim-score-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--legawa-primary); }
.sim-score-lbl { font-size: .78rem; color: var(--legawa-muted); margin-top: 4px; }
.sim-result-title { font-size: 1.15rem; margin-bottom: 8px; }
.sim-result-desc { color: var(--legawa-muted); font-size: .95rem; max-width: 380px; margin: 0 auto 20px; }
.sim-result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.feature-card {
    background: #fff;
    border: 1px solid var(--legawa-line);
    border-radius: 18px;
    padding: 30px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--legawa-shadow);
    border-color: transparent;
}
.feature-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--legawa-gradient);
    color: #fff; font-size: 1.6rem;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(31, 92, 153, 0.22);
}
.feature-title { font-size: 1.15rem; margin-bottom: 8px; }
.feature-desc { color: var(--legawa-muted); font-size: .95rem; margin: 0; }

.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: var(--legawa-shadow);
    border: 1px solid rgba(31, 92, 153, 0.06);
    height: 100%;
    transition: transform .25s ease;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(31, 92, 153, 0.1);
    color: var(--legawa-primary);
    font-size: 1.5rem;
}
.stat-value { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--legawa-primary); line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.stat-label { color: var(--legawa-muted); font-weight: 500; margin-top: 6px; }

.steps-row { position: relative; }
.step-card {
    background: #fff;
    border-radius: 18px;
    padding: 34px 24px 26px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(31, 92, 153, 0.07);
    border: 1px solid var(--legawa-line);
    position: relative;
    height: 100%;
}
.step-number {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--legawa-gradient);
    color: #fff; font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(31, 92, 153, 0.3);
}
.step-icon { font-size: 2.2rem; color: var(--legawa-primary); margin: 6px 0 14px; }
.step-title { font-size: 1.1rem; margin-bottom: 8px; }
.step-desc { color: var(--legawa-muted); font-size: .92rem; margin: 0; }

.role-card {
    background: #fff;
    border: 1px solid var(--legawa-line);
    border-radius: 20px;
    padding: 30px 38px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--legawa-shadow); }
.role-list { list-style: none; padding: 0; margin: 0; }
.role-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    color: var(--legawa-ink); font-weight: 500;
    border-bottom: 1px dashed var(--legawa-line);
}
.role-list li:last-child { border-bottom: none; }
.role-list i { color: var(--legawa-pharma); font-size: 1.2rem; flex-shrink: 0; }

.cta-section { padding: 80px 0; }
.cta-box {
    background: var(--legawa-gradient);
    border-radius: 28px;
    padding: 60px 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(31, 92, 153, 0.3);
    position: relative;
    overflow: hidden;
}
.cta-icon { font-size: 3rem; opacity: .9; margin-bottom: 14px; display: block; }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-desc { opacity: .92; font-size: 1.08rem; margin-bottom: 24px; }
.cta-box .btn-outline-light { border-width: 2px; }

.footer-section { background: var(--legawa-ink); color: #c4cfdb; padding: 64px 0 28px; }
.footer-desc { color: #9aa9b8; font-size: .95rem; margin-top: 6px; }
.footer-head { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: 'Space Grotesk', sans-serif; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .92rem; }
.footer-links a { color: #9aa9b8; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255, 255, 255, 0.1); margin: 32px 0 18px; }
.footer-bottom { text-align: center; font-size: .85rem; color: #8a98a7; }

@media (max-width: 991.98px) {
    .navbar-landing { background: rgba(255, 255, 255, 0.98); }
    .navbar-collapse {
        background: #fff;
        margin-top: 12px;
        padding: 14px;
        border-radius: 14px;
        box-shadow: var(--legawa-shadow);
    }
    .hero-section { padding-top: 124px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-section .d-flex { justify-content: center; }
    .hero-trust { justify-content: center; }
    .sim-card { margin-top: 28px; text-align: left; }
}
@media (max-width: 575.98px) {
    .py-section { padding: 64px 0; }
    .sim-body { padding: 18px; min-height: 320px; }
    .sim-actions { text-align: stretch; }
    .sim-actions .sim-next { width: 100%; }
    .stat-card { padding: 22px 12px; }
    .cta-box { padding: 44px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .sim-progress-bar, .sim-explain, .sim-result { transition: none; animation: none; }
}
