﻿:root {
    --color-ink: #102033;
    --color-muted: #5b6472;
    --color-surface: #ffffff;
    --color-soft: #f4f7fb;
    --color-line: #dce5f0;
    --color-navy: #0b1f3a;
    --color-blue: #1f6f8b;
    --color-teal: #0f766e;
    --color-gold: #d97706;
    --shadow: 0 24px 70px rgba(13, 30, 55, .14);
    --radius: 1.4rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-ink);
    background: var(--color-soft);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(31, 111, 139, .16), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--color-ink);
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-blue);
}

a:hover {
    color: var(--color-teal);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

code {
    padding: .15rem .35rem;
    border-radius: .35rem;
    background: #eef3f8;
}

:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: .75rem 1rem;
    border-radius: .75rem;
    background: var(--color-navy);
    color: white;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3.5rem);
    border-bottom: 1px solid rgba(220, 229, 240, .8);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: max-content;
    color: var(--color-ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    color: #fff;
    font-weight: 800;
    letter-spacing: .05em;
}

.brand small {
    display: block;
    color: var(--color-muted);
    font-size: .78rem;
}

.primary-nav,
.header-actions,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}

.primary-nav a,
.site-footer a {
    color: var(--color-ink);
    text-decoration: none;
}

.primary-nav a {
    padding: .55rem .65rem;
    border-radius: 999px;
    font-weight: 650;
}

.primary-nav a.active,
.primary-nav a:hover {
    background: #e8f2f6;
    color: var(--color-blue);
}

main {
    display: block;
}

.hero,
.page-hero,
.section,
.cta-band,
.site-footer {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero h1,
.page-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.page-hero h1 {
    max-width: 14ch;
}

.lead {
    max-width: 68ch;
    color: var(--color-muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.eyebrow {
    margin: 0 0 .9rem;
    color: var(--color-teal);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-actions,
.header-actions {
    margin-top: 1.5rem;
}

.workflow-menu {
    max-width: 34rem;
    margin-top: 1.25rem;
}

.workflow-menu details {
    border: 1px solid var(--color-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 24px rgba(13, 30, 55, .06);
}

.workflow-menu summary {
    padding: .8rem 1rem;
    color: var(--color-navy);
    font-weight: 800;
    cursor: pointer;
}

.workflow-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0 .55rem .6rem;
}

.workflow-menu-links a {
    display: flex;
    gap: .55rem;
    align-items: center;
    padding: .5rem .55rem;
    border-radius: .65rem;
    color: var(--color-ink);
    font-size: .9rem;
    text-decoration: none;
}

.workflow-menu-links a:hover,
.workflow-menu-links a.active {
    background: #e8f2f6;
    color: var(--color-blue);
}

.workflow-menu-links span {
    color: var(--color-teal);
    font-size: .75rem;
    font-weight: 900;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: .8rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--color-navy);
    color: #fff;
    box-shadow: 0 12px 28px rgba(11, 31, 58, .22);
}

.button-primary:hover,
.button-light:hover {
    color: #fff;
    transform: translateY(-1px);
}

.button-secondary,
.button-ghost {
    background: #fff;
    color: var(--color-navy);
    border-color: var(--color-line);
}

.button-light {
    background: #fff;
    color: var(--color-navy);
}

.button-small {
    min-height: 2.35rem;
    padding: .65rem .85rem;
    font-size: .9rem;
}

.trust-list,
.check-list,
.principle-list {
    padding: 0;
    list-style: none;
}

.trust-list {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
}

.trust-list li,
.check-list li,
.principle-list li {
    position: relative;
    padding-left: 1.35rem;
}

.trust-list li {
    padding: .55rem .8rem .55rem 1.8rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: var(--color-muted);
    font-size: .95rem;
}

.trust-list li::before,
.check-list li::before,
.principle-list li::before {
    content: "✓";
    position: absolute;
    left: .55rem;
    color: var(--color-teal);
    font-weight: 900;
}

.check-list li::before,
.principle-list li::before {
    left: 0;
}

.hero-visual {
    margin: 0;
    padding: .65rem;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 2rem;
    background: rgba(255,255,255,.6);
    box-shadow: var(--shadow);
}

.hero-visual img {
    border-radius: 1.45rem;
}

.hero-visual figcaption {
    padding: .85rem .5rem .25rem;
    color: var(--color-muted);
    font-size: .95rem;
}

.page-hero,
.section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.page-hero {
    border-bottom: 1px solid var(--color-line);
}

.section h2,
.cta-band h2 {
    margin-top: 0;
    color: var(--color-navy);
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two,
.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.product-card,
.dashboard-card,
.contact-card,
.auth-panel,
.stat-card,
.service-row {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.88);
    box-shadow: 0 10px 35px rgba(13, 30, 55, .08);
}

.card,
.product-card,
.dashboard-card,
.contact-card,
.auth-panel,
.stat-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card h3,
.product-card h2,
.dashboard-card h2 {
    margin-top: .75rem;
    color: var(--color-navy);
}

.card p,
.product-card p,
.service-row p,
.prose p {
    color: var(--color-muted);
    line-height: 1.65;
}

.card-icon {
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .8rem;
    background: #e8f2f6;
    color: var(--color-blue);
    font-weight: 900;
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.metric-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.metric-list div {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--color-line);
}

.metric-list dt {
    color: var(--color-navy);
    font-size: 1.55rem;
    font-weight: 900;
}

.metric-list dd {
    margin: .35rem 0 0;
    color: var(--color-muted);
}

.cta-band {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    margin-block: 2rem 4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + .4rem);
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-band h2,
.cta-band .eyebrow {
    color: #fff;
}

.service-stack {
    display: grid;
    gap: 1rem;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr) minmax(220px, .7fr);
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.service-row h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.product-card {
    min-height: 20rem;
}

.product-card-featured {
    border-color: rgba(15, 118, 110, .45);
    background: linear-gradient(145deg, #ffffff, #edf9f7);
}

.seasonrp-highlight {
    display: inline-block;
    padding: .16em .45em;
    border-radius: .45em;
    background: var(--color-gold);
    color: #fff;
    letter-spacing: .02em;
    text-transform: none;
}

.seasonrp-card-logo {
    width: min(9rem, 55%);
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    object-position: left center;
}

.seasonrp-hero-brand {
    width: min(28rem, 100%);
    margin-bottom: 1.75rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(15, 118, 110, .25);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 32px rgba(13, 30, 55, .1);
}

.seasonrp-hero-brand img {
    width: 100%;
    height: auto;
}

.workflow-hero {
    margin: 0;
    padding: .65rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 35px rgba(13, 30, 55, .08);
}

.workflow-hero img {
    width: 100%;
    border-radius: calc(var(--radius) - .45rem);
}

.workflow-hero figcaption,
.screenshot-card figcaption {
    padding: .75rem .35rem .15rem;
    color: var(--color-muted);
    font-size: .9rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.workflow-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    min-height: 7.5rem;
    padding: 1.15rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.workflow-card:hover {
    border-color: var(--color-teal);
    box-shadow: 0 12px 30px rgba(13, 30, 55, .1);
    color: var(--color-ink);
    transform: translateY(-2px);
}

.workflow-number {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .7rem;
    background: #e8f2f6;
    color: var(--color-blue);
    font-weight: 900;
}

.workflow-card strong,
.workflow-card small {
    display: block;
}

.workflow-card strong {
    color: var(--color-navy);
}

.workflow-card small {
    margin-top: .45rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.workflow-detail {
    padding-top: 2rem;
}

.workflow-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.screenshot-card {
    margin: 0;
    padding: .65rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 35px rgba(13, 30, 55, .08);
}

.screenshot-card img {
    width: 100%;
    border-radius: calc(var(--radius) - .45rem);
}

.principle-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.principle-list li {
    padding: 1rem 1rem 1rem 2rem;
    border-left: 4px solid var(--color-teal);
    border-radius: .75rem;
    background: #fff;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(260px, .55fr) minmax(300px, .8fr);
    gap: 1.25rem;
    align-items: start;
}

address {
    font-style: normal;
}

.contact-card {
    display: grid;
    gap: .6rem;
}

.contact-form,
.auth-form {
    display: grid;
    gap: 1rem;
}

.contact-form label,
.auth-form label {
    display: grid;
    gap: .45rem;
    color: var(--color-ink);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: .85rem;
    padding: .85rem 1rem;
    background: #fff;
    color: var(--color-ink);
}

.section-narrow {
    max-width: 760px;
}

.auth-panel {
    margin-top: 3rem;
}

.alert {
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: #eff6ff;
    color: #1e3a8a;
}

.alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
}

.stat-grid,
.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card span {
    display: block;
    color: var(--color-muted);
}

.stat-card strong {
    display: block;
    margin-top: .45rem;
    color: var(--color-navy);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.dashboard-card-wide {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .8rem;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-navy);
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.prose {
    max-width: 820px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto) minmax(200px, auto);
    gap: 2rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
}

.site-footer address,
.site-footer nav {
    display: grid;
    gap: .5rem;
}

#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: none;
    max-width: 32rem;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    background: #fffbeb;
    box-shadow: var(--shadow);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: .8rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .split-panel,
    .service-row,
    .contact-panel,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
        align-items: flex-start;
    }

    .primary-nav,
    .header-actions {
        width: 100%;
    }

    .card-grid.three,
    .card-grid.two,
    .dashboard-grid,
    .stat-grid,
    .workflow-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        max-width: 100%;
    }

    .workflow-menu {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hero-actions,
    .header-actions,
    .cta-band,
    .admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .workflow-menu-links {
        grid-template-columns: 1fr;
    }
}
