:root {
    --ink: #17202f;
    --muted: #697386;
    --line: #e4e8ef;
    --paper: #f7f8fb;
    --card: #ffffff;
    --blue: #3766e8;
    --blue-dark: #2447ad;
    --mint: #b8f0db;
    --warm: #fff2d7;
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

.site-header {
    background: rgba(247, 248, 251, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 74px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 2rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 5px 0 0 var(--mint);
}

.nav-link,
.header-link {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-link:hover,
.header-link:hover {
    color: var(--ink);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5.5rem);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(122deg, #172b61 0%, #2449a7 55%, #4773ee 100%);
    box-shadow: 0 24px 60px rgba(35, 64, 143, 0.2);
}

.hero-panel::after {
    position: absolute;
    right: -8%;
    bottom: -65%;
    width: 52%;
    height: 130%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    content: "";
    transform: rotate(-18deg);
}

.hero-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0.8rem 0 1rem;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    font-weight: 780;
    letter-spacing: -0.07em;
    line-height: 0.98;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.eyebrow {
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-panel .eyebrow {
    color: var(--mint);
}

h1,
h2,
h3 {
    font-weight: 750;
    letter-spacing: -0.045em;
}

h1 {
    margin-top: 0.5rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.btn {
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    font-weight: 700;
}

.btn-primary {
    border-color: var(--blue);
    background: var(--blue);
}

.btn-primary:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.btn-quiet {
    border: 1px solid var(--line);
    background: #fff;
}

.hero-panel .btn-quiet {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

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

.section-heading h2 {
    margin: 0.35rem 0 0;
}

.text-link {
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.story-card,
.metric-card,
.admin-panel,
.auth-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(31, 43, 72, 0.04);
}

.story-card {
    display: flex;
    flex-direction: column;
    padding: 1.45rem;
}

.story-card h3 {
    margin: 1rem 0 0.7rem;
}

.story-card p {
    color: var(--muted);
    line-height: 1.6;
}

.tag {
    align-self: flex-start;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: #72531d;
    background: var(--warm);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-meta {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--line);
}

.feature-card {
    display: flex;
    gap: 1rem;
    min-height: 140px;
    padding: 1.5rem;
    background: var(--card);
    transition: background 140ms ease, transform 140ms ease;
}

.feature-card:hover {
    background: #fbfcff;
    transform: translateY(-2px);
}

.feature-number {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
}

.feature-card strong,
.feature-card small {
    display: block;
}

.feature-card strong {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.feature-card small {
    max-width: 240px;
    color: var(--muted);
    line-height: 1.45;
}

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.page-intro {
    max-width: 720px;
    margin-bottom: 3rem;
}

.page-intro p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.empty-state {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.empty-state.compact {
    max-width: 720px;
    margin: 0 auto;
}

.empty-state h2 {
    margin-top: 1rem;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.empty-icon {
    color: var(--blue);
    font-size: 2rem;
}

.auth-shell {
    display: grid;
    min-height: 60vh;
    place-items: center;
}

.auth-card {
    width: min(100%, 470px);
    padding: clamp(1.5rem, 5vw, 3rem);
}

.auth-card h1 {
    font-size: 2.5rem;
}

.form-control {
    border-color: var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(55, 102, 232, 0.14);
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
}

.metric-label,
.metric-card small {
    color: var(--muted);
    font-size: 0.8rem;
}

.metric-card strong {
    font-size: 2rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.45rem 0.7rem;
    border: 1px solid #bfe6d0;
    border-radius: 999px;
    color: #247347;
    background: #effaf4;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36aa69;
}

.admin-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.admin-panel h2 {
    margin: 0.4rem 0 1.5rem;
}

.checklist {
    display: grid;
    gap: 0.9rem;
}

.checklist > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.checklist > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.checkmark {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #227548;
    background: var(--mint);
    font-weight: 800;
}

.checkmark.pending {
    color: #7a5b1e;
    background: var(--warm);
}

.check-status {
    color: #227548;
    font-size: 0.78rem;
    font-weight: 750;
}

.pending-text {
    color: #896a2d;
}

@media (max-width: 767.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}
