:root {
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-soft: #f8fafd;
    --border: #d9e2ec;
    --navy: #182245;
    --navy-dark: #101833;
    --sky: #72b2ec;
    --sky-soft: #e8f2fc;
    --slate: #64748b;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(24, 34, 69, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0 0 0.6rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1[tabindex="-1"]:focus-visible {
    outline: none !important;
}

a {
    color: var(--navy);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.muted {
    margin: 0;
    color: var(--slate);
    overflow-wrap: anywhere;
}

.site-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 172px;
    max-width: 100%;
    height: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: var(--slate);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: var(--navy);
}

.btn-nav,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn-nav {
    min-height: 38px;
    padding: 0.42rem 0.9rem;
    font-size: 0.88rem;
    background: var(--navy);
    color: #ffffff;
}

.btn-primary {
    background: var(--navy);
    color: #ffffff;
}

.btn-primary:hover,
.btn-nav:hover {
    background: var(--navy-dark);
}

.btn-secondary {
    background: var(--sky-soft);
    color: var(--navy);
    border-color: rgba(114, 178, 236, 0.45);
}

.btn-ghost {
    background: var(--surface);
    color: var(--navy);
    border-color: var(--border);
}

.hero-section {
    padding: 3rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
}

.eyebrow-pill,
.section-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #397ab8;
    margin: 0 0 0.65rem;
}

.eyebrow-pill {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--sky-soft);
    border: 1px solid rgba(114, 178, 236, 0.45);
}

.hero-copy h1 {
    font-size: clamp(1.9rem, 4.3vw, 3rem);
    max-width: 18ch;
}

.hero-lead {
    margin: 0 0 1.4rem;
    font-size: 1.08rem;
    color: var(--slate);
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-mark {
    width: 84px;
    height: 84px;
    display: block;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hero-metrics strong {
    display: block;
    font-size: 0.96rem;
}

.hero-metrics span {
    font-size: 0.8rem;
    color: var(--slate);
}

.apps-section,
.detail-section {
    padding: 1.5rem 0 3.5rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.spotlight-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-showcase,
.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.app-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.app-icon-lg {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.badge-featured,
.badge-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
}

.badge-featured {
    background: var(--navy);
    color: #ffffff;
}

.badge-status {
    background: var(--sky-soft);
    color: #265d91;
}

.app-subtitle {
    margin: 0;
    color: var(--slate);
    font-weight: 500;
}

.app-summary {
    margin: 0 0 1rem;
    color: var(--navy);
}

.highlights-list {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    color: var(--slate);
}

.highlights-list li {
    margin-bottom: 0.35rem;
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.showcase-media {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-banner,
.detail-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
}

.shots-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.shot-thumb,
.detail-shot {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.detail-shots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.roadmap-banner {
    margin-top: 1.5rem;
    background: var(--surface-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    font-weight: 600;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-mark {
    width: 34px;
    height: 34px;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--slate);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.9rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--navy);
}

.boot-shell {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.boot-card {
    max-width: 480px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.boot-logo {
    width: 196px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

@media (min-width: 860px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    }

    .app-showcase {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }

    .detail-shots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
