@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #0c0e12;
    font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

code,
pre {
    font-family: 'JetBrains Mono', monospace;
}

.site-frame {
    min-height: 100vh;
    background: #ffffff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid #e7e9ee;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1140px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: block;
    width: 27px;
    height: 27px;
}

.brand-name {
    font-size: 17px;
    line-height: 1;
}

.brand-version {
    padding: 2px 7px;
    border: 1px solid #dbe6ff;
    border-radius: 6px;
    background: #eef3ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #1e4fd6;
    letter-spacing: 0;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.primary-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #3a414e;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.primary-nav a.active,
.primary-nav a:hover {
    color: #1e4fd6;
    background: #eef3ff;
}

.primary-nav .github-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    background: #0c0e12;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.primary-nav .github-link:hover,
.primary-nav .github-link.active {
    background: #0c0e12;
    color: #ffffff;
}

.mobile-nav {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 24px;
    border-bottom: 1px solid #e7e9ee;
    background: #ffffff;
}

.mobile-nav a {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid #e7e9ee;
    border-radius: 999px;
    color: #3a414e;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-nav a.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

main,
.site-footer {
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: 24px;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-section {
    padding: 84px 24px 64px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 20px;
    font-size: 54px;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero-copy p,
.page-hero p {
    max-width: 580px;
    margin: 0 0 30px;
    color: #5b626e;
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin-bottom: 10px;
    color: #9aa1ad;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pill-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 5px 11px;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    background: #eef3ff;
    color: #1e4fd6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.button-row,
.button-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-stack {
    flex-direction: column;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.primary-button {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.4);
}

.secondary-button {
    border-color: #dfe2e8;
    background: #ffffff;
    color: #0c0e12;
}

.dark-button {
    background: #0c0e12;
    color: #ffffff;
}

.inverted-button {
    background: #ffffff;
    color: #0c0e12;
}

.ghost-dark-button {
    border-color: #2c2f37;
    color: #ffffff;
}

.install-line {
    margin-top: 24px;
    color: #9aa1ad;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.install-line span {
    color: #5b626e;
}

.code-window {
    overflow: hidden;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    background: #ffffff;
}

.hero-code {
    box-shadow: 0 24px 60px -24px rgba(12, 14, 18, 0.22), 0 4px 12px -6px rgba(12, 14, 18, 0.1);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid #eef0f3;
    background: #fbfbfc;
}

.window-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e1e4ea;
}

.window-bar strong,
.window-title {
    margin-left: 8px;
    color: #5b626e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 400;
}

.window-title {
    margin: 0;
    padding: 11px 18px;
    border-bottom: 1px solid #e7e9ee;
    background: #f6f7f9;
}

pre {
    margin: 0;
    padding: 20px 22px;
    overflow-x: auto;
    color: #0c0e12;
    font-size: 13px;
    line-height: 1.85;
}

.token-muted { color: #9aa1ad; }
.token-key { color: #2563eb; }
.token-punctuation { color: #5b626e; }
.token-string { color: #15803d; }
.token-number { color: #b4530a; }
.token-purple { color: #9d4edd; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 96px;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    background: #e7e9ee;
}

.stat-strip article,
.hub-card,
.contract-grid article,
.tool-grid article,
.feature-grid article,
.webinar-grid article,
.post-grid article,
.featured-post article,
.contact-card,
.form-card {
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    padding: 26px 24px;
}

.stat-strip article {
    border: 0;
    border-radius: 0;
}

.stat-strip span,
.contract-grid span,
.tool-grid > article > span {
    display: block;
    margin-bottom: 10px;
    color: #1e4fd6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.stat-strip h2,
.hub-card h2,
.contract-grid h2,
.tool-grid h2,
.feature-grid h2,
.webinar-grid h2,
.post-grid h2,
.featured-post h2,
.contact-card h2,
.form-card h2,
.version-band h2,
.package-grid h2,
.tool-feature h2,
.cohort-card h2 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.stat-strip p,
.hub-card p,
.contract-grid p,
.tool-grid p,
.feature-grid p,
.webinar-grid p,
.post-grid p,
.featured-post p,
.contact-card p,
.form-card p,
.version-band p,
.package-grid p,
.tool-feature p,
.cohort-card p {
    margin: 0;
    color: #5b626e;
    font-size: 14px;
    line-height: 1.55;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading-row h2,
.section-heading h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-link {
    color: #1e4fd6;
    font-size: 15px;
    font-weight: 600;
}

.hub-grid,
.contract-grid,
.tool-grid,
.feature-grid,
.webinar-grid,
.post-grid,
.package-grid,
.contact-grid {
    display: grid;
    gap: 18px;
}

.hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 96px;
}

.hub-card {
    display: flex;
    min-height: 172px;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hub-card:hover {
    transform: translateY(-3px);
    border-color: #bcd0ff;
    box-shadow: 0 14px 34px -18px rgba(37, 99, 235, 0.4);
}

.hub-card p {
    flex: 1;
}

.hub-card span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.hub-card code,
.schema-card strong,
.card-topline code {
    color: #9aa1ad;
    font-size: 12px;
    font-weight: 500;
}

.hub-card b {
    color: #2563eb;
    font-size: 18px;
}

.designer-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 96px;
    padding: 52px 48px;
    border-radius: 18px;
    background: #0c0e12;
    color: #ffffff;
}

.designer-band h2 {
    max-width: 560px;
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.designer-band p {
    max-width: 560px;
    margin: 0;
    color: #a8aebb;
    font-size: 16px;
    line-height: 1.6;
}

.designer-band code {
    color: #9ab6ff;
    font-size: 24px;
}

.page-hero {
    padding: 72px 0 48px;
}

.bordered-hero {
    border-bottom: 1px solid #e7e9ee;
}

.content-split,
.tool-feature,
.cohort-card,
.contact-grid {
    padding: 72px 0;
}

.content-split h2,
.tool-feature h2,
.cohort-card h2 {
    font-size: 30px;
    letter-spacing: -0.03em;
}

.schema-card {
    padding: 22px 26px;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    background: #ffffff;
}

.schema-card div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
}

.schema-card div:last-child {
    border-bottom: 0;
}

.schema-card span {
    color: #5b626e;
    font-size: 14px;
}

.compact-heading {
    padding: 72px 0 36px;
}

.compact-heading p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #5b626e;
    font-size: 16px;
    line-height: 1.6;
}

.contract-grid,
.feature-grid,
.webinar-grid,
.post-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 72px 0;
}

.flat-code {
    margin-top: 18px;
    border-radius: 12px;
}

.flat-code pre {
    font-size: 12.5px;
    line-height: 1.7;
}

.version-band,
.cohort-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 96px;
    padding: 36px 40px;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    background: #f6f7f9;
}

.cohort-card {
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at top left, rgba(227, 160, 126, 0.16), transparent 38%), #0c0e12;
    color: #ffffff;
    box-shadow: 0 24px 70px -42px rgba(12, 14, 18, 0.86);
}

.cohort-card > div {
    min-width: 0;
    flex: 1 1 auto;
}

.cohort-card h2 {
    max-width: 760px;
    color: #ffffff;
}

.cohort-card p {
    max-width: 760px;
    color: #cccccc;
}

.cohort-card .pill-blue {
    border-color: rgba(227, 160, 126, 0.28);
    background: rgba(227, 160, 126, 0.12);
    color: #F0B091;
}

.cohort-card .meta-row span {
    color: #E3A07E;
}

.cohort-card .primary-button {
    flex: 0 0 auto;
    min-width: 154px;
    white-space: nowrap;
    background: linear-gradient(135deg, #E3A07E, #F0B091);
    color: #17100d;
    box-shadow: 0 12px 28px -16px rgba(227, 160, 126, 0.85);
}

.tool-feature {
    border-bottom: 1px solid #e7e9ee;
}

.terminal-card {
    overflow: hidden;
    border-radius: 14px;
    background: #0c0e12;
    color: #ffffff;
}

.terminal-card span {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #2c2f37;
    color: #7da2ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.terminal-card pre {
    color: #dfe6f3;
}

.tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 36px 0 24px;
}

.tool-grid article {
    display: flex;
    min-height: 300px;
    flex-direction: column;
}

.tool-grid article.featured-tool {
    border-color: #bcd0ff;
    box-shadow: 0 18px 50px -28px rgba(37, 99, 235, 0.45);
}

.tool-grid code {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    color: #0c0e12;
    font-size: 12.5px;
}

.tool-grid a {
    margin-top: 16px;
    color: #1e4fd6;
    font-size: 14px;
    font-weight: 600;
}

.feature-grid {
    margin-bottom: 96px;
}

.meta-row,
.card-topline,
.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.meta-row span,
.card-topline span {
    color: #1e4fd6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.webinar-grid,
.post-grid {
    margin-bottom: 96px;
}

.webinar-grid article,
.post-grid article {
    min-height: 220px;
}

.webinar-grid footer {
    margin-top: 20px;
    color: #9aa1ad;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.featured-post {
    margin: 48px 0 18px;
}

.featured-post article {
    padding: 38px;
    background: #f6f7f9;
}

.featured-post h2 {
    margin-top: 16px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
}

.contact-email-section {
    padding: 72px 0 96px;
}

.contact-email-card {
    max-width: 720px;
    padding: 42px;
    background: #0c0e12;
    color: #ffffff;
}

.contact-email-card p {
    max-width: 560px;
    color: #cccccc;
    font-size: 16px;
}

.contact-email-link {
    display: inline-flex;
    margin-top: 24px;
    color: #E3A07E;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-card,
.form-card {
    padding: 30px;
}

.dark-card {
    background: #0c0e12;
    color: #ffffff;
}

.dark-card p {
    color: #a8aebb;
}

.price-line {
    justify-content: flex-start;
    color: #a8aebb;
}

.price-line strong {
    color: #ffffff;
    font-size: 32px;
}

.form-card {
    display: grid;
    gap: 16px;
}

.form-card label {
    display: grid;
    gap: 7px;
}

.form-card span {
    color: #5b626e;
    font-size: 14px;
    font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    background: #ffffff;
    color: #0c0e12;
    outline: none;
}

.form-card textarea {
    resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #eef3ff;
}

.success-panel {
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-block: 42px;
    border-top: 1px solid #e7e9ee;
}

.footer-bottom {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #eef0f3;
    color: #9aa1ad;
    font-size: 13px;
}

.site-footer p {
    max-width: 360px;
    margin: 12px 0 0;
    color: #5b626e;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #9aa1ad;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin-top: 10px;
    color: #3a414e;
    font-size: 14px;
}

#blazor-error-ui {
    display: none;
}

@media (max-width: 860px) {
    .site-header-inner {
        height: 56px;
        padding: 0 24px;
    }

    .primary-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .split-section,
    .contact-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .hero-section {
        padding-top: 52px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .section-heading-row,
    .designer-band,
    .version-band,
    .cohort-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .designer-band,
    .version-band,
    .cohort-card,
    .featured-post article {
        padding: 30px 24px;
    }

    .contact-email-card {
        padding: 30px 24px;
    }
}

@media (max-width: 560px) {
    main,
    .site-footer {
        padding-inline: 18px;
    }

    .hero-section {
        padding-inline: 18px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .button,
    .button-row,
    .button-stack {
        width: 100%;
    }
}
