:root {
    --ink: #31373d;
    --ink-deep: #1c2227;
    --paper: #f5f7f9;
    --white: #ffffff;
    --border: #d5dde4;
    --muted: #55616d;

    --blue: #2c52b0;
    --blue-dark: #223f8a;
    --blue-tint: #e9edf7;

    --gold: #c9974f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--muted);
    font-family: "Markazi Text", "Tahoma", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    color: var(--ink);
    font-weight: 600;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Header */

.utility-bar {
    background: var(--ink-deep);
    color: rgba(255, 255, 255, 0.7);
}

.utility-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    font-size: 0.875rem;
}

.utility-bar-center {
    justify-content: center;
    text-align: center;
}

.utility-bar a {
    transition: color 0.15s ease;
}

.utility-bar a:hover {
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1875rem;
    color: var(--ink);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gold);
    flex-shrink: 0;
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 1rem;
    color: var(--muted);
}

.main-nav a {
    position: relative;
    padding-block: 6px;
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.link-muted {
    font-size: 0.9375rem;
    color: var(--muted);
    white-space: nowrap;
}

.link-muted:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 9px 20px;
    font-size: 0.9375rem;
}

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

.btn-lg {
    padding: 12px 26px;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--muted);
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
    border-color: #fff;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, var(--ink-deep) 0%, #24303d 60%, #2c3a4a 100%);
    color: #fff;
    text-align: center;
    padding-block: 84px 92px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 700px;
    margin-inline: auto;
    padding-inline: 24px;
}

.hero-badge-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 151, 79, 0.5);
    margin-bottom: 26px;
}

.hero-badge-ring svg {
    width: 38px;
    height: 38px;
    color: var(--gold);
}

.hero h1 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 18px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* Section heading with accent bar */

.section {
    padding-block: 72px;
}

.section-alt {
    background: var(--white);
    border-block: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.section-heading .bar {
    width: 3px;
    height: 26px;
    background: var(--border);
    flex-shrink: 0;
}

.section-heading h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.section-sub {
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 40px;
}

.section-head-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-head-block .section-heading {
    margin-bottom: 12px;
}

/* Stats */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--border);
}

.stat-card:first-child {
    border-left: none;
}

.stat-card svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Cards grid */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 3px solid var(--border);
}

.pill {
    display: inline-flex;
    align-self: flex-start;
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 600;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
}

.card .author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}

.card .author svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--muted);
}

.empty-note {
    border: 1px dashed var(--border);
    text-align: center;
    padding: 60px 24px;
    color: var(--muted);
}

/* Explore grid (top categories / top authors) */

.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.list-block {
    padding-top: 18px;
    border-top: 3px solid var(--border);
}

.list-block-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.list-block-heading .bar {
    width: 3px;
    height: 20px;
    background: var(--border);
    flex-shrink: 0;
}

.list-block-heading h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.list-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--border);
}

.list-row:last-child {
    border-bottom: none;
}

.list-row-name {
    color: var(--ink);
    font-size: 1.0625rem;
}

.list-row-count {
    color: var(--muted);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* Forms (registration) */

.form-shell {
    max-width: 640px;
    margin-inline: auto;
}

.form-shell .section-heading,
.form-shell .section-sub {
    text-align: center;
    justify-content: center;
}

.form-shell .section-sub {
    margin-inline: auto;
}

.form-errors {
    background: #fdf1f1;
    border: 1px solid #eabfbf;
    color: #9b3b3b;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.form-errors ul {
    margin: 0;
    padding-inline-start: 20px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.9375rem;
    color: var(--ink);
    font-weight: 600;
}

.form-optional {
    color: var(--muted);
    font-weight: 400;
}

.form-control {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
}

.form-submit {
    align-self: center;
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 24px 0;
}

.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--blue-tint);
    color: var(--blue);
    margin-bottom: 20px;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success h2 {
    margin: 0 0 12px;
}

.form-success p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 28px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--blue-tint);
    color: var(--blue);
    margin-bottom: 14px;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.step-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0 0 4px;
}

.step h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
}

.step p {
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
}

/* Footer */

.site-footer {
    background: var(--ink-deep);
    color: rgba(255, 255, 255, 0.6);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding-block: 44px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1875rem;
    color: #fff;
}

.footer-brand .brand-mark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-block: 18px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }

    .hero h1 {
        font-size: 2.125rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(odd) {
        border-left: none;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
    }

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

    .explore-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 520px) {
    .link-muted {
        display: none;
    }
}
