/* =========================================================================
   LenovoSystemUpdateDownload — stylesheet
   Type:  IBM Plex Sans (headings) · Inter (body) · IBM Plex Mono (technical)
   ========================================================================= */

:root {
    --ink:          #1a1d21;
    --slate:        #1b2430;   /* header / footer background */
    --slate-2:      #26313f;
    --red:          #e2231a;   /* Lenovo accent — used sparingly */
    --red-dark:     #b4160f;

    --bg:           #ffffff;
    --bg-alt:       #f4f6f8;
    --panel:        #ffffff;

    --border:       #e3e7ec;
    --border-strong:#cdd4dc;

    --muted:        #5c6672;
    --muted-2:      #7a8390;

    --radius:       10px;
    --radius-sm:    6px;
    --shadow-sm:    0 1px 2px rgba(16,24,40,.05);
    --shadow:       0 6px 20px rgba(16,24,40,.08);

    --maxw:         1140px;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head:    'IBM Plex Sans', var(--font-body);
    --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
h1 { font-weight: 700; letter-spacing: -0.02em; }
h2 { font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 600; }
code { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

/* ---------- shared: tag / button ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 4px 10px; border-radius: 999px;
}
.tag::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--dot, var(--muted));
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: 15px;
    padding: 12px 20px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-ico { flex: none; }

.btn--download { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--download:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--muted-2); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--slate);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    background: var(--red); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #fff; letter-spacing: -0.01em; }
.brand-accent { color: #ffb4b0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    font-family: var(--font-head); font-size: 14px; font-weight: 500;
    color: #c6cdd6; padding: 8px 12px; border-radius: var(--radius-sm);
    transition: color .12s, background .12s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(226,35,26,.22); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    background:
        radial-gradient(1000px 380px at 12% -10%, rgba(226,35,26,.06), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero-inner {
    display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center;
    padding-top: 64px; padding-bottom: 64px;
}
.hero-copy h1 { font-size: 44px; margin: 16px 0 0; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 44ch; margin: 16px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { margin-top: 18px; color: var(--muted-2); font-size: 13px; }
.hero-meta code {
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 2px 7px; border-radius: 5px; font-size: 12px; color: var(--muted);
}

/* =========================================================================
   DOWNLOAD PANEL (signature element)
   ========================================================================= */
.dl-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.dl-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}
.dl-panel__app { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); text-align: right; }

.dl-specs { list-style: none; margin: 0 0 18px; padding: 0; }
.dl-specs li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--bg-alt);
    font-size: 14px;
}
.dl-specs li:last-child { border-bottom: 0; }
.dl-specs span { color: var(--muted); }
.dl-specs code {
    font-size: 13px; color: var(--ink);
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 5px;
}
.dl-panel .btn--download { width: 100%; }
.dl-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* =========================================================================
   SECTIONS / PROSE
   ========================================================================= */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head h2 { font-size: 28px; margin: 0; }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

.prose { max-width: 72ch; }
.prose--wide { max-width: 74ch; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; color: #33393f; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: #33393f; }
.prose li { margin: 6px 0; }
.prose code {
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 4px; font-size: 13.5px; color: var(--red-dark);
}
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; }

/* =========================================================================
   CARD GRID
   ========================================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.card {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
    text-decoration: none;
}
.card-title { font-size: 17px; margin: 14px 0 0; color: var(--ink); }
.card-desc { color: var(--muted); font-size: 14px; margin: 8px 0 16px; flex-grow: 1; }
.card-cta {
    font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--red-dark);
    display: inline-flex; align-items: center; gap: 4px;
}
.card:hover .card-cta { gap: 8px; }

/* =========================================================================
   INTERIOR PAGE LAYOUT
   ========================================================================= */
.breadcrumb {
    padding-top: 20px; font-size: 13px; color: var(--muted-2);
    display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { color: var(--border-strong); }

.page-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 44px;
    padding-top: 24px; padding-bottom: 64px; align-items: start;
}
.page-body h1 { font-size: 34px; margin: 14px 0 0; }
.page-body .lede { font-size: 18px; color: var(--muted); margin: 14px 0 26px; }

.page-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

.related {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; background: var(--panel);
}
.related h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 7px 0; border-top: 1px solid var(--bg-alt); }
.related li:first-child { border-top: 0; }
.related a { font-size: 14px; font-weight: 500; color: var(--ink); }
.related a:hover { color: var(--red-dark); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--slate); color: #b9c1cb; margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
    padding-top: 52px; padding-bottom: 40px;
}
.brand--footer .brand-text { font-size: 15px; }
.footer-about p { font-size: 14px; color: #96a0ac; margin: 14px 0 0; max-width: 40ch; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 4px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 9px 0; }
.footer-col a { font-size: 14px; color: #b9c1cb; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: 22px; padding-bottom: 34px;
}
.disclaimer { font-size: 12.5px; color: #8a94a0; line-height: 1.6; margin: 0 0 12px; max-width: 90ch; }
.disclaimer strong { color: #c6cdd6; }
.copyright { font-size: 13px; color: #7d8792; margin: 0; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
    .hero-copy h1 { font-size: 34px; }
    .page-layout { grid-template-columns: 1fr; gap: 32px; }
    .page-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--slate); padding: 10px 16px 16px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 11px 12px; }
    .hero-copy h1 { font-size: 30px; }
    .section { padding: 44px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

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