:root {
    --color-brand-navy: #1F3864;
    --color-brand-gold: #C9A961;
    --color-gold-ink: #7A5F16;
    --color-accent-text: var(--color-gold-ink);
    --color-ice-blue: #CADCFC;
    --color-cream: #F8F6F0;
    --color-brand-white: #FFFFFF;
    --color-text-muted: #4A5568;
    --font-display: Georgia, 'Times New Roman', Times, serif;
    --font-body: Calibri, 'Segoe UI', Candara, sans-serif;
    --shadow-sm: 0 2px 8px rgba(31, 56, 100, 0.08);
    --shadow-md: 0 8px 32px rgba(31, 56, 100, 0.12);
    --shadow-lg: 0 16px 48px rgba(31, 56, 100, 0.14);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1140px;
    --topbar-height: 3px;
}

/* Dark surfaces carry the bright gold; everything else inherits the ink gold. */
.site-header,
.hero,
.page-hero,
.cta,
.site-footer,
.enforcement-ladder__step--6 { --color-accent-text: var(--color-brand-gold); }

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-brand-navy);
    background: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    display: block;
    height: var(--topbar-height);
    background: var(--color-brand-navy);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
}

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

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 3px;
}
.btn-gold:focus-visible {
    outline-color: var(--color-brand-navy);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 300;
    padding: 0.75rem 1.25rem;
    background: var(--color-brand-gold);
    color: var(--color-brand-navy);
    font-weight: 700;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.skip-link:focus,
.skip-link:focus-visible {
    top: calc(var(--topbar-height) + 0.75rem);
    outline: 2px solid var(--color-brand-navy);
    outline-offset: 2px;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--alt { background: var(--color-brand-white); }

.section-heading { margin-bottom: 3rem; max-width: 720px; }
.section-heading--center { text-align: center; margin-inline: auto; }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--color-accent-text);
    margin: 0 0 0.75rem;
}

h1, h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--color-brand-navy);
}

h3, h4 { font-family: var(--font-body); font-weight: 700; color: var(--color-brand-navy); margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.pillar-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.lead, .section-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

.feature-list { margin: 1.5rem 0; padding: 0; list-style: none; }
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-brand-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--color-brand-gold); color: var(--color-brand-navy); }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--color-brand-white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.site-main { min-height: 100vh; }

/* Header */
.site-header {
    position: sticky;
    top: var(--topbar-height);
    z-index: 100;
    background: var(--color-brand-navy);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}
.site-header__logo img { height: 54px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header__link { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; }
.site-header__link:hover, .site-header__link.active { color: var(--color-brand-white); }
.site-header__cta { margin-left: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
/* The mobile disclosure is a checkbox and a label: the checkbox is the
   focusable control and carries the accessible name, the label is the visual
   affordance. No JavaScript, which matters because the site ships none. */
.site-header__checkbox {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.site-header__toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}
.site-header__toggle span { display: block; width: 24px; height: 2px; background: var(--color-brand-white); }
.site-header__checkbox:focus-visible + .site-header__toggle {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .site-header__toggle { display: flex; }
    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--color-brand-navy);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }
    .site-header__checkbox:checked ~ .site-header__nav { display: flex; }
    .site-header__nav .site-header__link {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .site-header__cta { margin-left: 0; width: 100%; min-height: 44px; }
}

/* Hero */
.hero {
    background: var(--color-brand-navy);
    color: var(--color-brand-white);
    padding: 5rem 0 6rem;
}
.hero h1 { color: var(--color-brand-white); }
.hero .lead { color: rgba(255,255,255,0.88); }
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
}

/* Page hero */
.page-hero {
    background: var(--color-brand-navy);
    color: var(--color-brand-white);
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 { color: var(--color-brand-white); }
.page-hero .section-lead { color: rgba(255,255,255,0.88); max-width: 720px; margin-inline: auto; }

/* Product screenshots */
.product-screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(31, 56, 100, 0.1);
    background: var(--color-brand-white);
}
.product-screenshot img { width: 100%; display: block; }

/* Four pillars matrix */
.pillars__matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin-inline: auto;
}
.pillar-card {
    background: var(--color-ice-blue);
    border: 1px dashed rgba(31, 56, 100, 0.2);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-card__tagline { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

@media (max-width: 768px) {
    .pillars__matrix { grid-template-columns: 1fr; gap: 1rem; }
}

/* UI showcase */
.ui-showcase__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.ui-showcase__row:last-child { margin-bottom: 0; }
.ui-showcase__row--reverse .ui-showcase__copy { order: 2; }
.ui-showcase__row--reverse .ui-showcase__frame { order: 1; }

@media (max-width: 900px) {
    .ui-showcase__row, .ui-showcase__row--reverse { grid-template-columns: 1fr; }
    .ui-showcase__row--reverse .ui-showcase__copy,
    .ui-showcase__row--reverse .ui-showcase__frame { order: unset; }
}

/* Enforcement ladder */
.enforcement-ladder { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--color-brand-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.enforcement-ladder__step {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.75rem; border-radius: 8px;
    font-size: 0.9rem;
    background: var(--color-cream);
    border-left: 4px solid var(--color-ice-blue);
}
.enforcement-ladder__step--4, .enforcement-ladder__step--5 { border-left-color: var(--color-brand-gold); }
.enforcement-ladder__step--6 { background: var(--color-brand-navy); color: white; border-left-color: var(--color-brand-gold); }
.enforcement-ladder__num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-brand-navy); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.enforcement-ladder__step--6 .enforcement-ladder__num { background: var(--color-brand-gold); color: var(--color-brand-navy); }

/* Feature panels */
.feature-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.feature-panel__grid--reverse .feature-panel__copy { order: 2; }
.feature-panel__grid--reverse .feature-panel__visual { order: 1; }

@media (max-width: 900px) {
    .feature-panel__grid, .feature-panel__grid--reverse { grid-template-columns: 1fr; }
    .feature-panel__grid--reverse .feature-panel__copy,
    .feature-panel__grid--reverse .feature-panel__visual { order: unset; }
}

/* Enforcement ladder note */
.enforcement-ladder__note {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Solutions */
.solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.solution-card {
    background: var(--color-brand-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-brand-gold);
}
.solution-card__headline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.solutions-detail__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.solutions-detail__row:last-child { margin-bottom: 0; }
.solutions-detail__row--reverse .solutions-detail__copy { order: 2; }

@media (max-width: 900px) {
    .solutions__grid { grid-template-columns: 1fr; }
    .solutions-detail__row, .solutions-detail__row--reverse { grid-template-columns: 1fr; }
    .solutions-detail__row--reverse .solutions-detail__copy { order: unset; }
}

/* Team */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card {
    text-align: center;
    background: var(--color-brand-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.team-card__photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background: var(--color-brand-navy);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700;
    border: 4px solid var(--color-brand-gold);
}
.team-card__photo--image { background: none; padding: 0; overflow: hidden; }
.team-card__photo--image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}
.team-card__role { color: var(--color-accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.team-card p:last-child { color: var(--color-text-muted); font-size: 0.95rem; text-align: left; }

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

/* CTA */
.cta { background: var(--color-brand-navy); color: white; text-align: center; }
.cta h2 { color: white; max-width: 720px; margin-inline: auto; }
.cta p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; }

/* Footer */
.site-footer { background: var(--color-brand-navy); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.site-footer h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer a:hover { color: var(--color-brand-gold); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
/* The img attributes carry the file's intrinsic size, so the display size
   belongs here; the global `img { height: auto }` would otherwise win. */
.site-footer__brand img { height: 32px; width: auto; }
.site-footer__brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 280px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.85rem; }

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

/* Loading & errors */
.app-loading {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: var(--color-brand-navy);
}
#blazor-error-ui {
    background: #fff3cd; bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.2);
    display: none; left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
