/* ==========================================================================
   Spritz Linux — spritzlinux.com
   Shares brand palette with spritzlive.net
   ========================================================================== */

:root {
    --brand: #336699;
    --brand-dark: #264e73;
    --accent: #1f8438;
    --accent-dark: #176b2c;
    --text: #222;
    --muted: #666;
    --bg: #fff;
    --bg-alt: #f4f6f8;
    --border: #e1e5ea;
    --max-width: 1100px;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; text-align: center; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------- Header ---------- */
header {
    background: var(--bg-alt);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    line-height: 1.1;
}

.logo-icon {
    font-size: 2rem;
    color: var(--brand);
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- Nav ---------- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--brand-dark);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.nav-link:hover {
    background: rgba(51, 102, 153, 0.1);
    color: var(--brand-dark);
}

.nav-link.active {
    font-weight: 700;
    color: var(--brand);
}

.header-cta {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */
#hero {
    background: linear-gradient(135deg, #4a86c5 0%, var(--brand) 45%, var(--brand-dark) 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

#hero h1 { color: #fff; font-size: 2.5rem; }

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

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

/* ---------- Buttons ---------- */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.cta-button:hover { background: var(--accent-dark); color: #fff; }
.cta-button:active { transform: translateY(1px); }

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.cta-button.secondary:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- Sections ---------- */
.section { padding: 4rem 1.5rem; }
.section.alt { background: var(--bg-alt); }

.section > h2,
.section > p,
.section > .feature-grid,
.section > .changes-grid,
.section > .why-grid {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- About ---------- */
#about { text-align: center; }
.about-lead {
    font-size: 1.15rem;
    max-width: 780px;
    margin: 0 auto 1em;
}

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 2.25rem;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- What We Changed (transparency) ---------- */
#changes { text-align: center; }

.changes-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: var(--max-width);
    margin: 0 auto;
}

.change-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.change-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.change-card-header i {
    font-size: 1.4rem;
    color: var(--brand);
    flex-shrink: 0;
}

.change-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-list li {
    padding: 0.35rem 0;
    font-size: 0.93rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-alt);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}
.change-list li:last-child { border-bottom: none; }

.change-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 0.1em;
}

.change-list li.removed::before {
    content: "✗";
    color: #c0392b;
}

.change-list li.neutral::before {
    content: "→";
    color: var(--muted);
}

/* ---------- Download strip ---------- */
#download {
    background: linear-gradient(135deg, #4a86c5 0%, var(--brand) 45%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
}

#download h2 { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 0.4rem;
    color: var(--brand-dark);
    font-size: 1.05rem;
}

.faq-item p { margin: 0; color: var(--text); }

.faq-item code {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* ---------- System requirements ---------- */
.sysreq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.sysreq h3 {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.sysreq-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sysreq-col {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    min-width: 220px;
    text-align: center;
}

.sysreq-tier {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin: 0 0 0.75rem;
}

.sysreq-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.sysreq-items p { margin: 0; }

.download-host {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 1rem auto 0;
}

.download-sub {
    font-size: 1.1rem;
    opacity: 0.92;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.download-meta {
    display: flex;
    gap: 1.5rem 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    font-size: 0.88rem;
    opacity: 0.8;
}

.download-meta span i { margin-right: 0.35rem; }

/* ---------- Why grid ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.why-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
}

.why-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.why-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.why-card strong { color: var(--text); }

/* ---------- Resource / article pages ---------- */
.resource-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 1.75rem;
}
.breadcrumb a {
    color: var(--brand-dark);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.resource-article h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.resource-lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.resource-article h2 {
    font-size: 1.3rem;
    text-align: left;
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.resource-article p {
    line-height: 1.65;
    margin: 0 0 1rem;
}

.resource-article ul,
.resource-article ol {
    line-height: 1.65;
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.resource-article li { margin-bottom: 0.4rem; }

.resource-article code {
    font-size: 0.88em;
    background: rgba(0,0,0,0.06);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-family: "Consolas", "Courier New", monospace;
}

.resource-article pre {
    background: #f4f6f8;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 0 0 1.25rem;
}

.resource-article pre code {
    background: none;
    padding: 0;
    font-size: 0.88rem;
}

.resource-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0 1.25rem;
}

/* ---------- Callout boxes ---------- */
.callout {
    background: #e8f0f8;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.85rem 1.25rem;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}
.callout.warn {
    background: #fff8e6;
    border-color: #d09800;
}
.callout.tip {
    background: #e8f5ec;
    border-color: var(--accent);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5em; }

/* ---------- Footer ---------- */
footer {
    background: var(--bg-alt);
    color: var(--text);
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
}

footer p { margin: 0.25rem 0; }

footer a { color: var(--brand-dark); text-decoration: underline; }
footer a:hover { color: var(--brand); }

.footer-links {
    display: flex;
    gap: 0.4rem 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

footer .copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

/* ---------- Screenshots ---------- */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-card {
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.screenshot-card:hover { box-shadow: var(--shadow-lg); }

.screenshot-card a { display: block; }

.screenshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: opacity 0.2s;
}

.screenshot-card:hover img { opacity: 0.9; }

.screenshot-card figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.download-checksum {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.checksum-label {
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.checksum-value {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--text);
    user-select: all;
}

.checksum-file {
    color: var(--muted);
    font-size: 0.8rem;
}

.ia-section { padding-top: 1.5rem; padding-bottom: 2rem; }

.ia-embed {
    display: flex;
    justify-content: center;
}
.ia-embed iframe {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.bmc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fd0 !important;
    background: #1a1a1a;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.15s;
}
.bmc-link:hover { opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .nav-link { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
    .header-cta { margin-left: 0.25rem; }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }

    #hero { padding: 3.5rem 1rem; }
    #hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.05rem; }

    .section { padding: 3rem 1rem; }
    #download { padding: 3rem 1rem; }

    .resource-article { padding: 2rem 1rem 3rem; }
}
