/* Cinzel by The Cinzel Project Authors, SIL Open Font License 1.1 (fonts/Cinzel-OFL.txt). */
@font-face {
    font-family: "Cinzel";
    src: url("fonts/cinzel-latin-variable.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    /* MU Volta: obsidian background, electric cyan for actions, energy gold for highlights. */
    --volt: #00e5f0;
    --volt-light: #8ff8ff;
    --volt-dark: #0a7f8a;
    --gold: #c5a059;
    --gold-light: #e2c487;
    --gold-dark: #7d6230;
    --error: #ff7a6b;
    --success: #5ee6a0;
    --text: #eef1fa;
    --text-warm: #f1e9d8;
    --muted: #a3abc6;
    --bg: #0b0c10;
    --surface: #11131a;
    --surface-raised: #171a23;
    --border: #252a3a;
    --radius: 6px;
    --heading-font: "Cinzel", "Times New Roman", serif;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; color: var(--text); }
h2 { color: var(--volt-light); }
h1:focus { outline: none; }
a { color: var(--volt); }
a:hover { color: var(--volt-light); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: #0003; padding: 0.1rem 0.3rem; border-radius: 3px; }
pre { overflow-x: auto; background: #000a; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin: 0.5rem 0; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 34rem; }
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title { text-align: center; font-size: 1.8rem; margin: 0 0 1.5rem; }
.site-main { flex: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(11 12 16 / 0.9); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--heading-font); font-size: 1.4rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--volt-light); }
.brand img { filter: drop-shadow(0 0 6px rgb(0 229 240 / 0.45)); }
.main-nav { display: flex; gap: 1.25rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-family: var(--heading-font); font-weight: 600; letter-spacing: 0.04em; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--volt-light); border-bottom-color: var(--volt); }
.main-nav a.nav-cta { padding: 0.35rem 0.9rem; border: 1px solid var(--volt); border-radius: var(--radius); color: var(--volt-light); }
.main-nav a.nav-cta.active, .main-nav a.nav-cta:hover { background: var(--volt); color: var(--bg); box-shadow: 0 0 14px rgb(0 229 240 / 0.45); }
.language-switch { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 0.85rem; }
.language-switch a { padding: 0.2rem 0.55rem; color: var(--muted); text-decoration: none; }
.language-switch a.active { background: var(--surface-raised); color: var(--volt-light); font-weight: 700; }

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgb(11 12 16 / 0.25), rgb(11 12 16 / 0.35) 15vw, var(--bg) 33vw),
        radial-gradient(ellipse 35% 65% at 50% 40%, rgb(11 12 16 / 0.75), transparent),
        image-set(url("muvolta-hero-2560.webp") 1x, url("muvolta-hero-4000.webp") 2x) center top / 100% auto no-repeat,
        var(--bg);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero .lead { color: var(--text-warm); text-shadow: 0 2px 6px #000; }
.hero-title { margin: 0; font-size: clamp(2.8rem, 9vw, 5.5rem); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; background: linear-gradient(180deg, #ffffff 10%, #e6e8ee 45%, #a9afbd 55%, #d9dce4 80%, #f4f5f8); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.9)) drop-shadow(0 4px 10px rgb(0 0 0 / 0.85)); }
.hero-tagline { margin: 0; max-width: 42rem; font-family: var(--heading-font); font-size: 1.25rem; color: var(--gold-light); text-shadow: 0 2px 6px #000; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.page-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 60% 80% at 50% 0%, rgb(0 229 240 / 0.14), transparent 70%); }
.page-hero h1 { margin: 0 0 0.5rem; font-size: 2.4rem; }
.release-meta { color: var(--gold); font-weight: 600; margin: 0; }

/* Buttons */
.button-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.75rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.3rem; font: inherit; font-family: var(--heading-font); font-weight: 700; letter-spacing: 0.04em; border-radius: var(--radius); border: 1px solid var(--gold); background: rgb(255 255 255 / 0.02); color: var(--gold-light); cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
button:hover, .button:hover { background: rgb(197 160 89 / 0.12); color: #fff3d6; box-shadow: 0 0 14px rgb(197 160 89 / 0.25); }
.button-primary { background: linear-gradient(180deg, var(--volt-light), var(--volt) 50%, var(--volt-dark)); color: #04161a; border-color: var(--volt-dark); }
.button-primary:hover { color: #000; background: linear-gradient(180deg, #e8fdff, var(--volt-light) 50%, var(--volt)); box-shadow: 0 0 20px rgb(0 229 240 / 0.5); }
.hero .button-primary { background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark)); color: #1a1208; border-color: var(--gold-dark); text-shadow: 0 1px 0 rgb(255 255 255 / 0.25); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 4px 12px rgb(0 0 0 / 0.5); }
.hero .button-primary:hover { color: #000; background: linear-gradient(180deg, #f3dfb0, var(--gold-light) 50%, var(--gold)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 1px var(--volt), 0 0 18px rgb(0 229 240 / 0.45); }
.button-large { padding: 0.85rem 1.8rem; font-size: 1.1rem; }
.button-block { width: 100%; }
.button-meta { font-family: system-ui, sans-serif; font-weight: 500; font-size: 0.85em; opacity: 0.8; }

/* Cards and steps */
.card { background: linear-gradient(180deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 2.25rem; }
.step::before { content: counter(step); position: absolute; top: -1.1rem; left: 1.5rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; font-family: var(--heading-font); font-weight: 800; color: #1a1208; background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); border: 2px solid var(--bg); box-shadow: 0 0 10px rgb(197 160 89 / 0.4); }
.step h3 { margin: 0 0 0.5rem; }
.step p { margin: 0 0 0.75rem; }

/* Downloads */
.download-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.download-card { min-width: 0; }
.launcher-card { border-color: var(--gold-dark); box-shadow: 0 0 28px rgb(197 160 89 / 0.18), 0 8px 24px rgb(0 0 0 / 0.35); margin-bottom: 2.5rem; }
.launcher-card h2 { margin: 0; font-size: 1.6rem; color: var(--gold-light); }
.launcher-card h3 { margin: 0; font-size: 1.25rem; }
.launcher-card .install-steps { margin-top: 1rem; }
.zip-downloads { margin-top: 0.5rem; }
.zip-downloads > summary { cursor: pointer; color: var(--muted); font-size: 0.95rem; }
.zip-downloads > summary:hover { color: var(--volt-light); }
.zip-downloads[open] > summary { margin-bottom: 0.75rem; }
.zip-downloads > p { margin: 0 0 1.25rem; font-size: 0.9rem; }
.download-card h2 { margin: 0; font-size: 1.6rem; }
.download-card-header { margin-bottom: 1rem; }
.download-card-header p { margin: 0.25rem 0 0; }
.download-card h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.install-steps { padding-left: 1.25rem; margin: 0; }
.install-steps li { margin-bottom: 0.5rem; }
.download-card pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.checksum { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.checksum summary { cursor: pointer; color: var(--text); }
.checksum .hash { display: block; margin-top: 0.5rem; word-break: break-all; }
.link-list { padding-left: 1.25rem; }
.server-address { margin-top: 2rem; color: var(--muted); }
.notice { padding: 1rem 1.25rem; border: 1px solid var(--border); border-left: 4px solid var(--volt); border-radius: var(--radius); background: var(--surface); }
.notice-warning { border-left-color: #d9822b; font-size: .92rem; }

/* Registration form */
.form-card h1 { margin-top: 0; }
.registration-form .field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.1rem; }
.registration-form label { font-weight: 600; }
.registration-form input { padding: 0.6rem 0.7rem; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #0a0b0f; color: inherit; }
.registration-form input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgb(0 229 240 / 0.25); }
.registration-form small, .optional { color: var(--muted); font-weight: 400; }
.invalid { border-color: var(--error) !important; }
.validation-message, .alert { color: var(--error); }
.alert { padding: 0.75rem 1rem; border: 1px solid rgb(255 122 107 / 0.4); border-radius: var(--radius); background: rgb(255 122 107 / 0.08); }
.success { color: var(--success); }

/* Status badge */
.status-badge { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0.25rem 0; padding: 0.3rem 0.9rem; border-radius: 999px; background: rgb(0 0 0 / 0.45); border: 1px solid var(--border); font-size: 0.95rem; }
.status-badge::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--error); }
.status-badge.online::before { background: var(--success); box-shadow: 0 0 8px var(--success); }

/* Events */
.event-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.event-card { border-top: 2px solid var(--volt); }
.event-card h3 { margin: 0 0 0.25rem; }
.event-when { margin: 0 0 0.5rem; color: var(--muted); }
.event-card .countdown { font-size: 1.6rem; }
.countdown { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--volt-light); text-shadow: 0 0 10px rgb(0 229 240 / 0.35); white-space: nowrap; }
.countdown.running { color: var(--success); text-shadow: 0 0 10px rgb(94 230 160 / 0.35); }
.countdown.ended { color: var(--muted); text-shadow: none; }
.section-link { text-align: center; margin: 1.25rem 0 0; }
.table-scroll { overflow-x: auto; margin-bottom: 2rem; }
.event-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.event-table th, .event-table td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.event-table thead th { font-family: var(--heading-font); color: var(--gold-light); background: var(--surface-raised); }
.event-table tbody th { font-weight: 600; }
.event-table tbody tr:last-child > * { border-bottom: none; }
.event-detail { margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid var(--gold-dark); border-radius: 999px; color: var(--gold-light); font-size: 0.8rem; font-weight: 600; }
.event-times { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.local-time { font-variant-numeric: tabular-nums; }
.has-js .no-js-only { display: none; }

/* Server specs */
.specs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); margin: 0; }
.spec { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.spec dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0.2rem 0 0; font-family: var(--heading-font); font-weight: 700; font-size: 1.15rem; color: var(--text); }

/* Features */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.feature-card { border-top: 2px solid var(--gold); min-width: 0; }
.feature-card h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; font-size: 1.35rem; color: var(--gold-light); }
.feature-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; font-size: 1.05rem; background: rgb(0 229 240 / 0.08); border: 1px solid rgb(0 229 240 / 0.35); }
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list li { position: relative; padding-left: 1.3rem; margin-bottom: 0.6rem; }
.feature-list li::before { content: "◆"; position: absolute; left: 0; top: 0.1em; font-size: 0.7rem; color: var(--volt); }
.feature-list strong { color: var(--text-warm); }
.feature-list code { color: var(--volt-light); }
.feature-cta { margin-top: 2.5rem; text-align: center; }
.feature-cta h2 { margin: 0 0 0.5rem; }

/* Info */
.info-layout { display: grid; gap: 2rem; grid-template-columns: 14rem minmax(0, 1fr); align-items: start; }
.info-menu { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-menu a { padding: 0.5rem 0.75rem; border-left: 3px solid transparent; border-radius: var(--radius); color: var(--text); font-family: var(--heading-font); font-weight: 600; text-decoration: none; }
.info-menu a:hover { color: var(--volt-light); background: rgb(0 229 240 / 0.06); }
.info-menu a.active { color: var(--gold-light); border-left-color: var(--gold); background: rgb(197 160 89 / 0.1); }
.info-content { min-width: 0; }
.info-content .feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.guide { display: grid; gap: 1.5rem; }
.guide .card { border-top: 2px solid var(--gold); }
.guide h2 { margin: 0 0 1rem; font-size: 1.4rem; color: var(--gold-light); }
.guide h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.guide .table-scroll { margin-bottom: 1rem; }
.guide-steps { margin: 0 0 1rem; padding-left: 1.4rem; }
.guide-steps li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.guide-steps li::marker { color: var(--volt); font-weight: 700; }
.guide-columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
kbd { display: inline-block; padding: 0.05rem 0.45rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-raised); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; color: var(--volt-light); }
.guide code { color: var(--volt-light); }
@media (max-width: 48rem) {
    .info-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .info-menu { position: static; flex-direction: row; flex-wrap: wrap; }
    .info-menu a { border-left: none; border-bottom: 2px solid transparent; }
    .info-menu a.active { border-bottom-color: var(--gold); }
}

/* Footer */
.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); background: #07080b; font-size: 0.9rem; text-align: center; }
.site-footer p { margin: 0.3rem 0; }

@media (max-width: 40rem) {
    .header-inner { gap: 0.75rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .main-nav { margin-left: 0; width: 100%; order: 3; gap: 0.5rem 0.9rem; font-size: 0.95rem; }
    .language-switch { margin-left: auto; }
    .hero {
        padding: 3.5rem 0 3rem;
        background:
            linear-gradient(180deg, rgb(11 12 16 / 0.15), var(--bg) 33vw),
            url("muvolta-hero-2560.webp") center top / 100% auto no-repeat,
            var(--bg);
    }
    .brand img { width: 1.6rem; height: 1.6rem; }
}
