:root {
    --navy: #14243c;
    --navy-dark: #0d192b;
    --gold: #d6b36a;
    --ink: #19283d;
    --muted: #657184;
    --soft: #f5f7fa;
    --border: #e3e7ed;
    --white: #fff;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #987326; }

button, input, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -.025em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 20px; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.narrow { max-width: 800px; }

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
}

.navigation {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.menu-toggle { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.button-primary {
    background: var(--navy);
    color: white;
}

.button-primary:hover {
    background: #263e60;
    color: white;
}

.button-gold {
    background: var(--gold);
    color: var(--navy-dark);
}

.button-gold:hover {
    background: #e4c889;
    color: var(--navy-dark);
}

.button-outline {
    border-color: #718096;
    color: white;
}

.button-outline:hover {
    background: white;
    color: var(--navy);
}

.button-light {
    background: var(--soft);
    border-color: var(--border);
}

.hero {
    padding: 100px 0;
    background: linear-gradient(120deg, #0d192b, #1b3656);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 64px;
}

.eyebrow {
    display: inline-block;
    color: #987326;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 20px;
}

.hero .eyebrow,
.page-banner .eyebrow {
    color: var(--gold);
}

.hero h1 span { color: var(--gold); }

.hero-description {
    color: #d3dce9;
    font-size: 18px;
    max-width: 570px;
    margin: 26px 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-preview {
    background: white;
    color: var(--ink);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 65px #0003;
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    font-weight: 800;
}

.preview-heading small {
    color: var(--muted);
    font-size: 11px;
}

.hero-preview h2 { font-size: 25px; }
.hero-preview p { color: var(--muted); font-size: 14px; }

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preview-grid > div {
    background: var(--soft);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.preview-grid span {
    display: block;
    font-size: 26px;
    color: #987326;
}

.preview-grid strong,
.preview-grid small { display: block; }

.preview-grid small {
    color: var(--muted);
    font-size: 12px;
}

.benefit-strip {
    border-bottom: 1px solid var(--border);
    background: var(--soft);
    padding: 22px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading p { color: var(--muted); }

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: box-shadow .2s;
    overflow-wrap: anywhere;
}

.module-card:hover {
    box-shadow: 0 8px 25px #14243c0d;
}

.module-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5efdf;
    color: #806020;
    font-size: 26px;
    margin-bottom: 18px;
}

.module-category {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 9px;
}

.module-card p {
    color: var(--muted);
    font-size: 14px;
    flex-grow: 1;
}

.module-card a {
    font-size: 14px;
    font-weight: 700;
}

.development-label {
    font-size: 12px;
    color: var(--muted);
    padding-top: 8px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.feature-panel {
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 42px;
}

.final-cta {
    text-align: center;
    background: var(--navy);
    color: white;
}

.page-banner {
    background: var(--navy);
    color: white;
    padding: 64px 0;
}

.page-banner p { color: #d3dce9; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

input, select {
    padding: 12px 14px;
    border: 1px solid #cdd5df;
    border-radius: 7px;
    background: white;
    color: var(--ink);
}

.filter-bar input { flex: 1; min-width: 180px; }

.pagination {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;
}

.article-body {
    font-size: 18px;
    overflow-wrap: anywhere;
}

.auth-card {
    max-width: 460px;
    width: 92%;
    margin: auto;
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.auth-card input:not([type=hidden]) {
    width: 100%;
    margin-top: 6px;
}

.auth-card label {
    font-size: 14px;
    font-weight: 600;
}

.full-width { width: 100%; }

.dashboard-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 75vh;
    background: var(--soft);
}

.dashboard-sidebar {
    background: var(--navy);
    color: white;
    padding: 28px 20px;
}

.dashboard-sidebar a {
    display: block;
    padding: 12px 0;
}

.dashboard-sidebar form { margin-top: 24px; }

.dashboard-main { padding: 40px; }
.dashboard-main .module-grid { margin-top: 30px; }

.site-footer {
    background: var(--navy-dark);
    color: #c5cedc;
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3,
.site-footer h4 { color: white; }

.site-footer a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.site-footer p { max-width: 350px; }

.copyright {
    border-top: 1px solid #ffffff20;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 12px;
}

:focus-visible {
    outline: 3px solid #b68a37;
    outline-offset: 3px;
}

@media (max-width: 950px) {
    .menu-toggle {
        display: block;
        background: white;
        border: 1px solid var(--border);
        padding: 8px 14px;
        border-radius: 6px;
    }

    .navigation { flex-wrap: wrap; padding: 14px 0; }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 0;
    }

    .main-nav.open { display: flex; }

    .hero-grid, .split-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 38px; }
    .hero { padding: 65px 0; }

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

    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-main { padding: 25px; }
}

@media (max-width: 560px) {
    .module-grid, .footer-grid { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 48px 0; }
    .hero-preview { padding: 18px; }
    .preview-grid > div { padding: 12px; }
    .page-banner { padding: 45px 0; }
    .auth-card { padding: 24px; }
}
