:root {
    --bg: #eef1f3;
    --surface: #ffffff;
    --surface-2: #f5f7f8;
    --graphite: #101419;
    --graphite-2: #171c22;
    --graphite-3: #232a31;
    --text: #20262c;
    --muted: #68727b;
    --line: #dce1e5;
    --red: #d71920;
    --red-dark: #b41117;
    --green: #26a269;
    --shadow: 0 16px 38px rgba(16, 20, 25, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); color: var(--text); }
body { margin: 0; min-width: 320px; font-family: "Segoe UI", Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
svg { display: block; }
.site-shell { min-height: 100%; }

.topbar {
    min-height: 72px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--graphite);
    border-bottom: 1px solid #2b3137;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; letter-spacing: .06em; min-width: 0; }
.brand-copy strong { font-size: 17px; font-weight: 800; }
.brand-copy span { margin-top: 5px; color: #b4bcc3; font-size: 10px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; }
.nav-link {
    min-height: 72px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: #c5cbd0;
    font-size: 14px;
    font-weight: 650;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.035); }
.nav-link.active { color: #fff; }
.nav-link.active::after { content: ""; position: absolute; height: 3px; left: 17px; right: 17px; bottom: 0; background: var(--red); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 5vw 68px;
    color: #fff;
    background:
        radial-gradient(circle at 77% -35%, rgba(215,25,32,.28), transparent 38%),
        linear-gradient(135deg, #191f25 0%, #101419 70%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, transparent, #000 34%, #000);
}
.hero-watermark { position: absolute; right: 2.5vw; bottom: -76px; font-size: clamp(230px, 24vw, 390px); line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.11em; color: rgba(255,255,255,.025); user-select: none; }
.hero-inner { position: relative; z-index: 1; width: min(1420px, 92vw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .72fr); gap: 70px; align-items: center; }
.hero-copy { max-width: 800px; }
.eyebrow, .section-kicker, .panel-kicker { color: #ee4c52; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 11px 0 15px; max-width: 780px; font-size: clamp(42px, 5.2vw, 68px); line-height: .98; letter-spacing: -.045em; }
.hero-copy > p { margin: 0; max-width: 730px; color: #c2c8ce; font-size: 18px; line-height: 1.58; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: rgba(255,255,255,.055); color: #fff; border: 1px solid #4a535c; }
.btn-secondary:hover { background: rgba(255,255,255,.095); border-color: #69737d; }

.release-panel { position: relative; overflow: hidden; min-height: 286px; padding: 25px; border: 1px solid #3a424a; border-radius: 10px; background: rgba(17,22,27,.86); box-shadow: 0 22px 55px rgba(0,0,0,.24); backdrop-filter: blur(4px); }
.release-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.release-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.release-panel h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.025em; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(38,162,105,.35); border-radius: 4px; color: #9ce0be; background: rgba(38,162,105,.08); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.status-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(38,162,105,.11); }
.release-loading { margin-top: 50px; color: #8f99a3; font-size: 13px; }
.release-details { margin-top: 30px; }
.release-version { font-size: 28px; font-weight: 850; letter-spacing: -.035em; }
.release-file { margin-top: 6px; color: #b9c1c8; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-meta { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #7f8992; font-size: 12px; }
.meta-separator { color: #4e565e; }
.release-panel-actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.release-download { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: 5px; background: var(--red); color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }
.release-download:hover { background: var(--red-dark); }
.release-browse { color: #b9c1c8; font-size: 12px; text-decoration: none; }
.release-browse:hover { color: #fff; text-decoration: underline; }
.release-fallback { margin-top: 38px; display: flex; flex-direction: column; gap: 8px; }
.release-fallback strong { font-size: 18px; }
.release-fallback span { color: #9aa4ad; font-size: 13px; line-height: 1.5; }
.release-fallback a { width: fit-content; margin-top: 8px; color: #fff; font-size: 12px; font-weight: 750; }

.content-shell { width: min(1420px, 92vw); margin: 0 auto; padding: 48px 0 72px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 20px; }
.section-intro h2, .quick-copy h2, .platform-copy h2 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.03em; }
.section-intro > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: right; }

.primary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card { position: relative; overflow: hidden; min-height: 305px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 9px 27px rgba(16,20,25,.045); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.resource-card:hover { transform: translateY(-3px); border-color: #b8c0c6; box-shadow: var(--shadow); }
.resource-card-dark { background: var(--graphite-2); border-color: #303840; color: #fff; }
.resource-card-dark:hover { border-color: #49535c; }
.card-accent { position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(.18); transform-origin: left; transition: transform .2s ease; }
.resource-card:hover .card-accent { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 7px; background: #f0f2f3; color: #3c464f; }
.resource-card-dark .card-icon { background: #282f36; color: #fff; }
.card-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.card-copy { margin-top: 27px; }
.card-label { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.card-copy h3 { margin: 6px 0 9px; font-size: 25px; letter-spacing: -.025em; }
.card-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.resource-card-dark .card-copy p { color: #aeb7bf; }
.card-link { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; color: #343d45; font-size: 12px; font-weight: 800; }
.resource-card-dark .card-link { color: #fff; }
.card-link span { font-size: 19px; transition: transform .15s ease; }
.resource-card:hover .card-link span { transform: translateX(3px); }

.quick-access { margin-top: 48px; display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 50px; padding: 36px 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }
.quick-copy p { max-width: 420px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-links a { min-height: 91px; padding: 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 12px; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: #fff; }
.quick-links a:hover { background: #f8f9fa; }
.quick-number { color: #a0a8af; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.quick-links strong { display: block; font-size: 13px; }
.quick-links small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.quick-links b { color: var(--red); font-size: 18px; font-weight: 500; transition: transform .15s ease; }
.quick-links a:hover b { transform: translateX(2px); }

.platform-strip { margin-top: 22px; padding: 31px 36px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 28px; align-items: center; border-radius: 9px; background: var(--graphite-2); color: #fff; }
.platform-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 8px; border-left: 4px solid var(--red); background: #242b32; font-size: 25px; font-weight: 900; letter-spacing: -.06em; }
.platform-copy h2 { font-size: 21px; }
.platform-copy p { max-width: 690px; margin: 8px 0 0; color: #aeb7bf; font-size: 12px; line-height: 1.55; }
.platform-stats { display: flex; align-items: stretch; border: 1px solid #363f47; border-radius: 6px; overflow: hidden; }
.platform-stats div { min-width: 91px; padding: 13px 14px; display: flex; flex-direction: column; border-right: 1px solid #363f47; }
.platform-stats div:last-child { border-right: 0; }
.platform-stats strong { font-size: 12px; }
.platform-stats span { margin-top: 3px; color: #7f8992; font-size: 10px; }

.footer { background: #0e1216; color: #a7b0b8; border-top: 1px solid #252c32; }
.footer-inner { width: min(1420px, 92vw); min-height: 88px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand img { width: 31px; height: 31px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1; }
.footer-brand strong { font-size: 12px; letter-spacing: .06em; }
.footer-brand span { margin-top: 4px; color: #707b84; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #98a2aa; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-note { justify-self: end; font-size: 10px; color: #657079; text-transform: uppercase; letter-spacing: .1em; }

.btn:focus-visible, .nav-link:focus-visible, .resource-card:focus-visible, .quick-links a:focus-visible, .release-download:focus-visible, .release-browse:focus-visible, .brand:focus-visible, .footer a:focus-visible { outline: 3px solid rgba(215,25,32,.45); outline-offset: 3px; }

@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .release-panel { max-width: 680px; }
    .primary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-grid .resource-card:last-child { grid-column: 1 / -1; min-height: 230px; }
    .quick-access { grid-template-columns: 1fr; gap: 28px; }
    .platform-strip { grid-template-columns: 72px minmax(0, 1fr); }
    .platform-stats { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .topbar { min-height: auto; padding: 12px 4vw 0; flex-direction: column; align-items: stretch; gap: 8px; }
    .brand { padding: 2px 0 10px; }
    .main-nav { width: 100%; overflow-x: auto; }
    .nav-link { min-height: 50px; padding: 0 14px; white-space: nowrap; }
    .nav-link:first-child { padding-left: 0; }
    .nav-link.active::after { left: 0; right: 14px; }
    .hero { padding: 52px 4vw 50px; }
    .hero-inner, .content-shell, .footer-inner { width: 92vw; }
    .hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .release-panel { min-width: 0; }
    .content-shell { padding-top: 36px; }
    .section-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
    .section-intro > p { text-align: left; }
    .primary-grid { grid-template-columns: 1fr; }
    .primary-grid .resource-card:last-child { grid-column: auto; }
    .resource-card { min-height: 275px; }
    .quick-access { padding: 27px 22px; }
    .quick-links { grid-template-columns: 1fr; }
    .platform-strip { padding: 26px 22px; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; }
    .platform-mark { width: 56px; height: 56px; }
    .platform-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    .platform-stats div { min-width: 0; padding: 11px 9px; }
    .footer-inner { padding: 23px 0; grid-template-columns: 1fr; gap: 17px; }
    .footer-links { flex-wrap: wrap; gap: 14px 20px; }
    .footer-note { justify-self: start; }
}

@media (max-width: 430px) {
    .brand-copy span { font-size: 8px; letter-spacing: .11em; }
    .hero { padding-left: 5vw; padding-right: 5vw; }
    .hero-inner, .content-shell, .footer-inner { width: 90vw; }
    .release-panel { padding: 21px 19px; }
    .release-panel-top { flex-direction: column; }
    .platform-strip { grid-template-columns: 1fr; }
    .platform-mark { width: 52px; height: 52px; }
    .platform-stats { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
