:root {
    --bg: #f5faf7;
    --bg-band: #eef7f1;
    --surface: #ffffff;
    --surface-soft: #f8fbf9;
    --surface-green: #edf8f2;
    --line: #dce8e1;
    --line-strong: #c7d8cf;
    --text: #14231c;
    --muted: #607268;
    --dim: #8a9a91;
    --coin-green: #00a45f;
    --green: #00a45f;
    --red: #d94b5c;
    --gold: #d99a20;
    --cyan: #1687a7;
    --blue: #3268d8;
    --violet: #7e57c2;
    --orange: #df7b1d;
    --radius: 8px;
    --max: 1180px;
    --shadow: 0 18px 45px rgba(17, 40, 30, 0.10);
    --soft-shadow: 0 8px 24px rgba(17, 40, 30, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.ml-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.ml-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.ml-logo {
    display: block;
    width: 156px;
    max-width: 48vw;
    height: auto;
}

.ml-brand-divider {
    width: 1px;
    height: 34px;
    background: var(--line-strong);
}

.ml-brand-copy strong,
.ml-brand-copy small {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

.ml-brand-copy strong {
    font-size: 15px;
    font-weight: 900;
}

.ml-brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.ml-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.ml-nav a {
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.ml-nav a:hover,
.ml-nav a:focus-visible {
    background: var(--surface-green);
    color: var(--coin-green);
    outline: none;
}

.ml-freshness {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ml-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
}

.ml-live-dot.ok {
    background: var(--coin-green);
}

main {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.ml-hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 410px;
    gap: 34px;
    align-items: center;
    padding: 42px 0 28px;
}

.ml-eyebrow,
.ml-section-label {
    margin: 0 0 10px;
    color: var(--coin-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ml-hero h1,
.ml-section h2,
.ml-professor-card h2 {
    margin: 0;
    letter-spacing: 0;
}

.ml-hero h1 {
    max-width: 730px;
    font-size: 56px;
    line-height: 1.03;
}

.ml-lead {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.58;
}

.ml-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.ml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    box-shadow: var(--soft-shadow);
}

.ml-button.primary {
    background: var(--coin-green);
    border-color: var(--coin-green);
    color: white;
}

.ml-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.ml-trust-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ml-pulse-panel,
.ml-strip > div,
.ml-asset-card,
.ml-layer-board,
.ml-professor-card,
.ml-crew-item,
.ml-term-card,
.ml-quiz-card,
.ml-intel-grid article,
.ml-dictionary-grid article,
.ml-flow-node,
.ml-live-stack {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.ml-pulse-panel {
    padding: 24px;
}

.ml-pulse-top,
.ml-quiz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ml-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #edf7fb;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.ml-pill.cautious {
    background: #fff7e8;
    color: var(--gold);
}

.ml-pill.hot {
    background: #fff0f2;
    color: var(--red);
}

.ml-pill.constructive {
    background: var(--surface-green);
    color: var(--coin-green);
}

.ml-gauge {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 22px auto 20px;
}

.ml-gauge-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0deg, #e8efe9 0deg);
}

.ml-gauge-ring::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
}

.ml-gauge-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.ml-gauge-center strong {
    font-size: 46px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ml-gauge-center span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.ml-pulse-line {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
}

.ml-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.ml-mini-grid div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.ml-mini-grid span,
.ml-mini-grid strong {
    display: block;
}

.ml-mini-grid span {
    color: var(--dim);
    font-size: 11px;
    font-weight: 900;
}

.ml-mini-grid strong {
    margin-top: 5px;
    font-size: 13px;
}

.ml-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: -6px 0 38px;
}

.ml-strip > div {
    padding: 18px;
}

.ml-strip strong,
.ml-strip span {
    display: block;
}

.ml-strip strong {
    font-size: 15px;
}

.ml-strip span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
