@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #eef2f7;
    --surface: rgba(245, 248, 252, 0.86);
    --surface-strong: #f5f8fc;
    --line: rgba(30, 58, 95, 0.12);
    --text: #1a2332;
    --muted: #546478;
    --accent: #1565c0;
    --accent-strong: #0d47a1;
    --accent-soft: #dce8f5;
    --highlight: #29b6f6;
    --danger: #c62828;
    --shadow: 0 28px 60px rgba(13, 37, 69, 0.12);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(21, 101, 192, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(41, 182, 246, 0.20), transparent 26%),
        linear-gradient(180deg, #f0f4f9 0%, var(--bg) 60%, #e3e9f0 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Site shell ───────────────────────────────── */

.site-shell {
    position: relative;
    overflow-x: clip;
}

.site-shell::before,
.site-shell::after {
    content: '';
    position: fixed;
    z-index: -1;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.5;
}

.site-shell::before {
    top: -8rem;
    right: -6rem;
    background: rgba(21, 101, 192, 0.18);
}

.site-shell::after {
    left: -8rem;
    bottom: 10rem;
    background: rgba(41, 182, 246, 0.2);
}

/* ── Topbar ───────────────────────────────────── */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(240, 244, 249, 0.84);
    border-bottom: 1px solid var(--line);
}

.topbar__inner,
.section,
.footer__inner,
.footer__bar {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

/* ── Brand ────────────────────────────────────── */

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

img.brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.brand__text strong,
.hero__content h1,
.section h2,
.card__title,
.footer__brand strong {
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
}

.brand__text {
    display: grid;
    gap: 0.15rem;
}

.brand__text strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.brand__text span,
.eyebrow,
.hero__lede,
.hero-stat span,
.feature-card p,
.status-card p,
.trust-card p,
.footer__brand p,
.footer__nav a,
.footer__meta,
.stack-list li,
.health-note {
    color: var(--muted);
}

/* ── Navigation ───────────────────────────────── */

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar__auth-form {
    margin: 0;
}

.topbar__nav a {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: background-color 160ms ease, transform 160ms ease;
}

.topbar__nav a:not(.button):hover,
.topbar__nav a:not(.button):focus-visible {
    background: rgba(21, 101, 192, 0.08);
    transform: translateY(-1px);
}

/* ── Badges ───────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.92);
    border: 1px solid var(--line);
    color: var(--accent-strong);
    font-size: 0.92rem;
}

.badge--user {
    background: rgba(21, 101, 192, 0.12);
}

/* ── Sections ─────────────────────────────────── */

.section {
    padding: 2rem 0;
}

/* Inner .section divs are used only for centering — strip their padding */
.section .section {
    padding: 0;
}

.section--tight {
    padding-top: 0;
}

/* ── Hero ─────────────────────────────────────── */

.hero {
    padding-top: 3rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: stretch;
}

.hero__content,
.hero__panel,
.feature-card,
.status-card,
.trust-card {
    background: var(--surface);
    border: 1px solid rgba(87, 64, 35, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero__content {
    padding: 2.3rem;
    border-radius: var(--radius-xl);
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

.hero__logo {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
}

.hero__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero__brand-text strong {
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}

.hero__brand-text span {
    font-size: 0.92rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 0.9rem;
    margin-bottom: 1.15rem;
}

.hero__content h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero__lede {
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 1.4rem 0 0;
    max-width: 62ch;
}

.hero__actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

/* ── Buttons ──────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--accent);
    color: #fcf9f2;
    box-shadow: 0 18px 30px rgba(13, 71, 161, 0.24);
}

.button--primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 20px 36px rgba(13, 71, 161, 0.3);
}

.button--secondary {
    border-color: rgba(13, 71, 161, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-strong);
}

.button--secondary:hover {
    background: #fff;
    border-color: rgba(13, 71, 161, 0.38);
}

.button--sm {
    min-height: 2.4rem;
    padding: 0.5rem 0.9rem;
}

/* ── Hero stats ───────────────────────────────── */

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stat {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(87, 64, 35, 0.08);
}

.hero-stat strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

/* ── Hero panel / status cards ────────────────── */

.hero__panel {
    border-radius: var(--radius-xl);
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.status-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    animation: rise 420ms ease both;
}

.status-card:nth-child(2) { animation-delay: 100ms; }
.status-card:nth-child(3) { animation-delay: 180ms; }

.status-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
}

.status-card__value {
    margin: 0.8rem 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Section header ───────────────────────────── */

.section__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    letter-spacing: -0.04em;
}

/* ── Feature / trust grids ────────────────────── */

.feature-grid,
.trust-grid,
.footer__columns {
    display: grid;
    gap: 1.1rem;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.trust-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
}

.feature-card strong,
.trust-card strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ── Pills ────────────────────────────────────── */

.pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.08);
    color: var(--accent-strong);
    font-size: 0.82rem;
}

/* ── Stack grid ───────────────────────────────── */

.stack-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
}

.stack-list,
.footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(87, 64, 35, 0.08);
}

.trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Auth summary (home widget) ───────────────── */

.auth-summary {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: start;
}

.auth-summary__grid {
    display: grid;
    gap: 0.85rem;
}

.auth-summary__grid article {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(87, 64, 35, 0.08);
}

.auth-summary__grid article span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.auth-summary__grid article strong {
    display: block;
    margin-top: 0.3rem;
}

/* ── Page layout (inner pages) ────────────────── */

.page-hero {
    display: grid;
    gap: 1.2rem;
}

.page-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.auth-layout {
    max-width: 38rem;
    margin: 0 auto;
}

/* ── Labels / kickers ─────────────────────────── */

.page-kicker,
.notice-card > span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.1rem;
}

/* ── Page panels / cards ──────────────────────── */

.page-panel,
.matrix-card,
.notice-card {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(87, 64, 35, 0.08);
}

.page-panel h1,
.page-panel h2,
.matrix-card h2,
.notice-card h1,
.notice-card h2 {
    margin: 0.4rem 0 0;
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.page-panel p,
.matrix-card p,
.notice-card p {
    color: var(--muted);
    margin: 0.65rem 0 0;
    line-height: 1.65;
}

.page-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.inline-note {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ── User facts ───────────────────────────────── */

.user-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.user-facts article {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(87, 64, 35, 0.08);
}

.user-facts span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.user-facts strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.96rem;
}

/* ── Permission matrix ────────────────────────── */

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.matrix-table th,
.matrix-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(87, 64, 35, 0.08);
    text-align: left;
    vertical-align: middle;
}

.matrix-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.matrix-table td {
    font-size: 0.96rem;
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill--ok {
    background: rgba(21, 101, 192, 0.14);
    color: var(--accent-strong);
}

.status-pill--no {
    background: rgba(186, 63, 29, 0.12);
    color: var(--danger);
}

.status-pill--critical {
    background: rgba(186, 63, 29, 0.14);
    color: var(--danger);
}

.status-pill--high {
    background: rgba(242, 100, 20, 0.14);
    color: #b84a0d;
}

.status-pill--medium {
    background: rgba(200, 145, 20, 0.15);
    color: #7a5a00;
}

.status-pill--low {
    background: rgba(87, 64, 35, 0.1);
    color: var(--muted);
}

.status-pill--warn {
    background: rgba(200, 145, 20, 0.13);
    color: #7a5a00;
}

/* ── Inventory table ──────────────────────────── */

.inventory-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.inventory-stats__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.inventory-stats__item strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inv-sortable:hover { color: var(--text); }
.inv-sort-icon { opacity: 0.4; font-style: normal; }
.inv-filter-active { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }

.inventory-table th,
.inventory-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(87, 64, 35, 0.07);
    text-align: left;
    vertical-align: middle;
}

.inventory-table th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    background: rgba(87, 64, 35, 0.03);
    position: sticky;
    top: 0;
}

.inventory-table td {
    font-size: 0.93rem;
}

.inventory-table tr:last-child td {
    border-bottom: none;
}

.inventory-table__name {
    font-weight: 600;
    color: var(--text);
}

.inventory-table__purl {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: monospace;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28rem;
}

.ecosystem-tag {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(21, 101, 192, 0.07);
    color: var(--accent-strong);
    letter-spacing: 0.03em;
    text-transform: lowercase;
}

.vuln-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* ── Auth shell ───────────────────────────────── */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.3rem;
    align-items: stretch;
}

.auth-rail,
.auth-card {
    position: relative;
    overflow: hidden;
}

.auth-rail {
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(13, 71, 161, 0.96) 0%, rgba(21, 61, 122, 0.94) 42%, rgba(10, 35, 78, 0.98) 100%);
    color: #e8eef5;
    box-shadow: 0 24px 60px rgba(8, 35, 41, 0.28);
    align-content: start;
}

.auth-rail::before {
    content: '';
    position: absolute;
    inset: auto;
    top: -4rem;
    right: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.32) 0%, rgba(41, 182, 246, 0) 72%);
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: auto;
    right: -3rem;
    bottom: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.12) 0%, rgba(21, 101, 192, 0) 70%);
}

.auth-rail__panel,
.auth-rail__grid,
.auth-card__header,
.auth-card__footer,
.auth-form,
.alert {
    position: relative;
    z-index: 1;
}

.auth-rail__panel h1,
.auth-card__header h2 {
    margin: 0.4rem 0 0;
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.auth-rail__panel h1 {
    font-size: clamp(2.4rem, 3vw, 3.45rem);
}

.auth-rail__panel p {
    margin: 1rem 0 0;
    color: rgba(246, 239, 228, 0.78);
    line-height: 1.7;
    font-size: 1rem;
}

.auth-rail .page-kicker {
    color: rgba(246, 239, 228, 0.6);
}

.auth-rail__grid {
    display: grid;
    gap: 0.85rem;
}

.auth-rail__grid article {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-rail__grid span {
    display: block;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(246, 239, 228, 0.62);
}

.auth-rail__grid strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.98rem;
}

.auth-rail__grid p {
    margin: 0.4rem 0 0;
    color: rgba(246, 239, 228, 0.7);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ── Auth card ────────────────────────────────── */

.auth-card {
    width: 100%;
    padding: 1.8rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 248, 239, 0.9) 100%);
    border: 1px solid rgba(87, 64, 35, 0.1);
    box-shadow: var(--shadow);
}

.auth-card--elevated {
    backdrop-filter: blur(14px);
}

.auth-card__header h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

.auth-card__header p {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Auth form ────────────────────────────────── */

.auth-form {
    display: grid;
    gap: 1.05rem;
    margin-top: 1.4rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span,
.form-note {
    color: var(--muted);
}

.field span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.form-note {
    font-size: 0.9rem;
}

.form-note a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16rem;
}

.field input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(87, 64, 35, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font: inherit;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
    outline: none;
    border-color: rgba(21, 101, 192, 0.44);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
}

.field input::placeholder {
    color: rgba(91, 103, 115, 0.6);
}

.auth-submit {
    margin-top: 0.25rem;
    width: 100%;
}

.auth-card__footer {
    display: grid;
    gap: 0.2rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(87, 64, 35, 0.1);
}

.auth-card__footer--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

/* ── Alerts ───────────────────────────────────── */

.alert {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.96rem;
}

.alert--error {
    background: rgba(186, 63, 29, 0.08);
    border-color: rgba(186, 63, 29, 0.16);
    color: var(--danger);
}

.alert--success {
    background: rgba(21, 101, 192, 0.08);
    border-color: rgba(21, 101, 192, 0.14);
    color: var(--accent-strong);
}

.notice-card--danger {
    background: rgba(186, 63, 29, 0.07);
    border-color: rgba(186, 63, 29, 0.18);
}

/* ── Footer ───────────────────────────────────── */

.footer {
    margin-top: 2rem;
    background: rgba(24, 34, 39, 0.96);
    color: #e8eef0;
}

.footer__inner {
    padding: 2.5rem 0 1.8rem;
}

.footer__columns {
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.footer__brand p,
.footer__nav a,
.footer__meta {
    color: rgba(232, 238, 240, 0.72);
}

.footer__column h3 {
    margin: 0 0 0.9rem;
    font-size: 0.96rem;
    color: #fcfeff;
}

.footer__nav {
    display: grid;
    gap: 0.65rem;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
    color: #ffffff;
}

.footer__bar {
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.health-note {
    margin-top: 1rem;
    font-size: 0.92rem;
}

/* ── Animations ───────────────────────────────── */

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.3); }
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 960px) {
    .auth-shell,
    .hero__grid,
    .feature-grid,
    .stack-grid,
    .auth-summary,
    .page-hero__grid,
    .matrix-grid,
    .user-facts,
    .trust-grid,
    .footer__columns {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-card__footer--split,
    .field-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar__inner,
    .topbar__nav,
    .section__header,
    .hero__actions {
        align-items: flex-start;
    }

    .topbar__inner,
    .section__header {
        flex-direction: column;
    }

    .hero__content,
    .hero__panel,
    .auth-rail,
    .auth-card,
    .feature-card,
    .trust-card,
    .status-card {
        padding: 1.2rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    /* Ensure buttons are readable on small screens */
    .button--secondary {
        background: #fff;
        border-color: rgba(13, 71, 161, 0.32);
    }

    .button--sm {
        min-height: 2.6rem;
        padding: 0.55rem 1rem;
    }

    .notif-item {
        flex-direction: column;
    }

    .notif-item__actions {
        display: flex;
        gap: 0.5rem;
    }
}

/* Notification badge on nav link */
.notif-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* Status pills for lifecycle / scan states — removed duplicate override (used dark-theme colours on a light-theme surface, causing poor contrast) */

/* Dashboard stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-card__value--danger { color: var(--danger); }
.stat-card__value--warn   { color: #facc15; }
.stat-card__value--ok     { color: #4ade80; }
.stat-card--ok   { border-color: rgba(74,222,128,0.25); }
.stat-card--warn { border-color: rgba(250,204,21,0.25); }
.stat-card--no   { border-color: rgba(186,63,29,0.35); }

/* Notification inbox */
.notif-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.notif-item--unread { border-left: 3px solid var(--accent); }
.notif-item__body   { flex: 1; min-width: 0; }
.notif-item__title  { font-weight: 600; margin-bottom: 0.2rem; }
.notif-item__meta   { font-size: 0.8rem; color: var(--text-muted); }

/* Admin user table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th,
.data-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:last-child td { border-bottom: none; }
