/*
 * HiganveinOS Official Website Stylesheet
 * Architecture: Clean, authentic open-source Linux engineering aesthetic (Void Linux / Arch Linux)
 * Zero AI vibe-coding: No gradients, no floating pill badges, no blur glows, no rounded-3xl toy cards.
 * Palette: Dark charcoal (#1a1b1e, #141517), spider lily crimson (#e11d48), muted text (#a0a5ad, #e4e7eb).
 */

:root {
    --bg-page: #141517;
    --bg-header: #1b1c1f;
    --bg-box: #1a1b1e;
    --bg-code: #111214;
    --border: #2c2d31;
    --border-light: #383a40;
    --text-main: #e4e7eb;
    --text-muted: #9aa0a6;
    --text-dim: #6d737d;
    --accent: #e11d48;
    --accent-hover: #f43f5e;
    --link: #f43f5e;
    --link-hover: #fb7185;
    --green: #4ade80;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(ellipse 90% 65% at 50% 12%, rgba(20, 21, 23, 0.45) 0%, rgba(20, 21, 23, 0.88) 65%, #141517 100%),
        url('higanvein_eye_bg.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 1400px auto;
    background-attachment: scroll;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

code, pre, .font-mono {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13px;
}

/* Header & Navigation Bar (Strict Void/Arch style) */
header {
    background-color: rgba(27, 28, 31, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(44, 45, 49, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.2px;
}
.brand:hover {
    text-decoration: none;
    color: #ffffff;
}

.brand-badge {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    text-decoration: none;
}

/* Page Layout */
.main-wrapper {
    max-width: 1140px;
    margin: 32px auto 60px auto;
    padding: 0 20px;
}

/* Two-column Hero (Void Linux Homepage Architecture) */
.hero-split {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 36px;
}

.logo-col {
    text-align: center;
}

.logo-col svg, .logo-col img {
    max-width: 180px;
    height: auto;
}

.hero-content h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.quick-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}
.quick-links a {
    color: var(--link);
}

hr.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* Grid Sections (Void 2x3 & 3-column features) */
.grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.feature-cell h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-cell p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Technical Specification Table / Download Boxes (Arch/Void style) */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.download-card {
    background: rgba(26, 27, 30, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
}

.download-card h4 {
    font-size: 17px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-tag {
    font-size: 11px;
    font-family: monospace;
    padding: 2px 6px;
    background: #25282f;
    border: 1px solid #383a40;
    color: var(--text-muted);
    border-radius: 3px;
}

.badge-tag.rec {
    border-color: var(--accent);
    color: #f43f5e;
}

.download-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.spec-list {
    margin-bottom: 18px;
    font-size: 13px;
    list-style: none;
}

.spec-list li {
    padding: 4px 0;
    border-bottom: 1px solid #222327;
    display: flex;
    justify-content: space-between;
}

.spec-list .label {
    color: var(--text-dim);
}

.spec-list .val {
    color: #e4e7eb;
    font-family: monospace;
}

.btn-download {
    display: inline-block;
    background: #23252a;
    border: 1px solid var(--border-light);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 3px;
    text-align: center;
}
.btn-download:hover {
    background: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* Two-column layout for News & Commit list (Arch / Void style) */
.layout-split {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 32px;
}

.news-item {
    margin-bottom: 24px;
}
.news-date {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 2px;
}
.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}
.news-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.log-list {
    list-style: none;
    font-size: 13px;
}
.log-list li {
    padding: 6px 0;
    border-bottom: 1px solid #222327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer (Plain, compact, standard open-source) */
footer {
    border-top: 1px solid var(--border);
    background-color: var(--bg-header);
    padding: 24px 20px;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 16px;
}
.footer-links a {
    color: var(--text-muted);
}

@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; gap: 20px; text-align: left; }
    .logo-col { text-align: left; }
    .grid-2x3 { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .layout-split { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
