@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
    --hub-background: #0d0e12;
    --hub-surface: #161820;
    --hub-panel: #0a0b0f;
    --hub-panel-header: #1a1d26;
    --hub-text: #f0f2f7;
    --hub-muted: #a0a8c0;
    --hub-dim: #7e879b;
    --hub-accent: #9693ff;
    --hub-primary: #4f46e5;
    --hub-status: #10b981;
    --hub-border: rgba(255, 255, 255, .07);
    --hub-mono: Consolas, 'Liberation Mono', monospace;
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hub-background); color: var(--hub-text); font-family: Inter, system-ui, sans-serif; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hub-accent); }
img { flex-shrink: 0; }
:where(a, button):focus-visible { outline: 3px solid var(--hub-accent); outline-offset: 4px; }
.hub-container { width: calc(100% - 48px); max-width: 1152px; padding-inline: 0; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 24px; padding: 12px 18px; border-radius: 8px; background: var(--hub-primary); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { box-shadow: inset 0 -1px var(--hub-border); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font-size: 17px; line-height: normal; font-weight: 700; width: 80px; flex-shrink: 0; }
.header-nav { display: flex; gap: 8px; align-items: center; }
.header-nav a { display: flex; align-items: center; min-height: 36px; padding-inline: 6px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: normal; white-space: nowrap; }
.language-switch { display: flex; align-items: center; justify-content: flex-end; gap: 4px; width: 80px; flex-shrink: 0; font-size: 13px; line-height: normal; color: var(--hub-dim); }
.language-switch a { display: flex; align-items: center; min-height: 36px; padding-inline: 4px; border-radius: 6px; }
.language-switch a[aria-current] { color: var(--hub-text); font-weight: 600; }
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 48px; }
.hero-eyebrow { font-family: var(--hub-mono); font-size: 12px; line-height: normal; color: var(--hub-muted); }
.hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; }
.hero h1 span { display: block; color: var(--hub-accent); }
.hero-description { max-width: 650px; font-size: 16px; line-height: 1.6; color: var(--hub-muted); }
.hub-button { --bs-btn-border-width: 1px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 14px; line-height: normal; font-weight: 600; color: var(--hub-text); border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--hub-primary); }
.button-primary:hover, .button-primary:focus-visible { background: #6158f0; border-color: transparent; color: var(--hub-text); }
.button-outline { border-color: var(--hub-border); background: transparent; }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--hub-accent); background: rgba(150, 147, 255, .06); color: var(--hub-text); }
.section-block { padding-bottom: 48px; scroll-margin-top: 24px; }
.section-block > h2 { margin-bottom: 24px; }
h2 { font-size: 26px; font-weight: 700; line-height: 1.25; }
.product-grid { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
.product-grid > div { display: flex; }
.product-card { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; padding: 24px; background: var(--hub-surface); color: var(--hub-text); border: 0; box-shadow: inset 0 0 0 1px var(--hub-border); border-radius: 16px; }
.product-information { display: flex; flex-direction: column; gap: 12px; }
.product-identity { gap: 12px; }
.product-identity h3 { font-size: 24px; line-height: normal; font-weight: 700; }
.product-tagline { min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.product-description { min-height: 92px; font-size: 15px; line-height: 1.55; color: var(--hub-muted); }
.technologies { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 54px; }
.technologies li { display: flex; align-items: center; min-height: 24px; padding-inline: 8px; border: 1px solid var(--hub-border); border-radius: 5px; color: var(--hub-muted); font: 11px/normal var(--hub-mono); }
.environment-panel { box-shadow: inset 0 0 0 1px var(--hub-border); border-radius: 8px; background: var(--hub-panel); overflow: hidden; font-family: var(--hub-mono); }
.environment-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 14px; background: var(--hub-panel-header); color: var(--hub-accent); font-size: 11px; line-height: normal; }
.environment-hint { color: var(--hub-dim); font-size: 10px; text-align: right; }
.environment-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.environment-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 6px 10px; border-radius: 6px; background: var(--hub-surface); }
.environment-row dt { color: var(--hub-muted); font-size: 11px; line-height: normal; font-weight: 400; }
.environment-row dd { display: flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--hub-status); font-size: 10px; line-height: normal; }
.product-action { margin-top: auto; }
.choice-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 24px; box-shadow: inset 0 0 0 1px var(--hub-border); border-radius: 12px; }
.choice-card h3 { font-size: 16px; font-weight: 500; line-height: 1.4; }
.choice-product { font: 14px/normal var(--hub-mono); color: var(--hub-accent); }
.choice-description { font-size: 14px; line-height: 1.55; color: var(--hub-muted); }
.choice-card .hub-button { margin-top: auto; }
.source-panel { display: flex; flex-direction: column; gap: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--hub-border); border-radius: 16px; background: var(--hub-surface); }
.source-message { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.source-heading { gap: 12px; }
.source-heading picture { display: flex; flex-shrink: 0; }
.source-message p { max-width: 630px; font-size: 15px; line-height: 1.6; color: var(--hub-muted); }
.source-links { display: flex; flex-direction: column; gap: 12px; width: 100%; flex-shrink: 0; }
.github-link { justify-content: space-between; padding-inline: 16px; }
.site-footer { box-shadow: inset 0 1px var(--hub-border); }
.footer-inner { padding-block: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand a { font-size: 16px; line-height: normal; font-weight: 700; }
.footer-brand p, .footer-links { font-size: 13px; line-height: normal; color: var(--hub-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { display: inline-block; }
.footer-credit { font-size: 12px; line-height: normal; color: var(--hub-dim); }
.error-main { min-height: 70vh; padding-block: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.error-main p { color: var(--hub-muted); }

@media (min-width: 768px) {
    .header-inner { min-height: 80px; }
    .header-nav { gap: 24px; }
    .header-nav a { padding-inline: 12px; }
    .language-switch { gap: 8px; }
    .hero { align-items: center; text-align: center; padding-top: 72px; padding-bottom: 64px; }
    .hero-eyebrow { font-size: 13px; }
    .hero h1 { font-size: 64px; }
    .hero-description { font-size: 18px; }
    .section-block { padding-bottom: 64px; }
    h2 { font-size: 30px; }
    .product-tagline { min-height: 22px; }
    .product-description { min-height: 48px; }
    .technologies { min-height: 24px; }
    .environment-flexible { min-height: 286px; }
    .footer-top { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 992px) {
    .source-panel { flex-direction: row; align-items: center; gap: 40px; padding: 32px; }
    .source-message { flex: 1; }
    .source-links { width: 320px; }
}

/* Requested wide-screen tier: preserve the design scale, expand the grid. */
@media (min-width: 1920px) {
    .hub-container { max-width: 1600px; }
}

/* The smallest screens need a second navigation row to keep every link usable. */
@media (max-width: 375px) {
    .header-inner { display: grid; grid-template-columns: 1fr auto; padding-block: 12px; gap: 4px 12px; }
    .header-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
    .language-switch { grid-column: 2; grid-row: 1; }
    .hero h1 { font-size: 36px; }
    .hero-eyebrow { font-size: 11px; }
    .product-card, .choice-card, .source-panel { padding: 20px; }
    .environment-header { align-items: flex-start; }
    .environment-hint { max-width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hub-button { transition: none; }
}
