:root {
    --ink: #13231d;
    --muted: #64736c;
    --paper: #f5f7f4;
    --surface: #ffffff;
    --line: #dce3de;
    --green: #0e684d;
    --green-dark: #084c38;
    --gold: #c59645;
    --shadow: 0 18px 50px rgba(21, 49, 38, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.topbar {
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 72px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top-actions a, .link-button { color: var(--green); font-weight: 700; }
.link-button { border: 0; background: none; cursor: pointer; padding: 0; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; margin: 4px 0 10px; line-height: 1; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; margin: 4px 0; }
p { color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}
.primary-button:hover { background: var(--green-dark); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.metric span { color: var(--muted); font-size: 14px; }
.metric strong { font-size: 34px; letter-spacing: -0.04em; }
.metric.money { grid-column: span 2; background: var(--green); color: white; }
.metric.money span { color: rgba(255,255,255,.72); }
.module-section { margin-top: 72px; }
.section-heading { margin-bottom: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-grid article { padding: 24px; border-top: 3px solid var(--gold); background: white; border-radius: 8px 8px 18px 18px; }
.module-grid b { font-size: 18px; }
.login-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.login-intro h1 { max-width: 760px; }
.login-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.login-card h2 { margin-bottom: 24px; }
.login-card label { display: block; font-size: 13px; font-weight: 750; margin: 18px 0 7px; }
.login-card input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; font: inherit; }
.login-card .primary-button { width: 100%; margin-top: 22px; }
.form-error, .message { padding: 12px 14px; border-radius: 10px; background: #fff2ef; color: #9c2f1d; }

@media (max-width: 900px) {
    .metric-grid, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
    .top-actions span, .top-actions a { display: none; }
    .hero { align-items: start; flex-direction: column; }
    .metric-grid, .module-grid { grid-template-columns: 1fr; }
    .metric.money { grid-column: span 1; }
    .page-shell { width: min(100% - 28px, 1180px); padding-top: 34px; }
}
