:root {
    --bg: #0d0d0c;
    --surface: #151513;
    --surface-2: #1c1b18;
    --border: #302f2a;
    --text: #f1efe8;
    --muted: #a6a298;
    --accent: #c6a45f;
    --accent-hover: #d5b76f;
    --success: #70a87d;
    --danger: #d7736d;
    --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.nav {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-copy strong,
.brand-copy small {
    display: block;
}
.brand-copy strong {
    font-size: 15px;
    letter-spacing: .01em;
}
.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    position: relative;
    display: block;
    padding: 31px 0 29px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { background: var(--accent); }
.menu-toggle {
    display: none;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface);
    cursor: pointer;
}

.landing {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 620px;
    margin: 0 auto;
    padding: 92px 0 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: center;
    gap: 82px;
}
.landing-content { max-width: 650px; }
.kicker {
    margin-bottom: 17px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}
.landing h1 {
    margin-bottom: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 8vw, 92px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.055em;
}
.lead {
    max-width: 600px;
    margin-bottom: 30px;
    color: #c1beb5;
    font-size: 18px;
    line-height: 1.65;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.btn:hover {
    border-color: #4b4941;
    background: var(--surface-2);
}
.btn-primary {
    border-color: var(--accent);
    color: #11100d;
    background: var(--accent);
}
.btn-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}
.btn-large {
    min-height: 50px;
    padding: 0 22px;
}
.server-address {
    width: min(100%, 490px);
    margin-top: 30px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.server-address:hover { border-color: #565349; }
.server-address > span:nth-child(2) { min-width: 0; }
.server-address small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.server-address strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    font-weight: 400;
}
.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--success);
}
.copy-label {
    margin-left: auto;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.landing-panel {
    position: relative;
    min-height: 430px;
    padding: 45px 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(13,13,12,.05), rgba(13,13,12,.9)),
        repeating-linear-gradient(135deg, #1b1a17 0, #1b1a17 1px, #161513 1px, #161513 12px);
}
.landing-panel::before,
.landing-panel::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
}
.landing-panel::before {
    top: 15px;
    left: 15px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
}
.landing-panel::after {
    right: 15px;
    bottom: 15px;
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}
.landing-panel > img {
    position: absolute;
    top: 65px;
    left: 50%;
    width: 160px;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.4));
}
.panel-copy span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.panel-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}
.server-details {
    margin: 26px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}
.server-details div { padding-top: 16px; }
.server-details dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.server-details dd {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.home-section {
    padding: 86px max(20px, calc((100% - var(--max-width)) / 2)) 100px;
    border-top: 1px solid var(--border);
    background: #11110f;
}
.section-heading {
    max-width: 650px;
    margin-bottom: 42px;
}
.section-heading h2 {
    margin-bottom: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: -.035em;
}
.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-grid-four { grid-template-columns: repeat(4, 1fr); }
.feature-card {
    min-height: 275px;
    padding: 30px 30px 27px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}
.feature-card:last-child { border-right: 1px solid var(--border); }
.card-label {
    margin-bottom: 48px;
    color: #77736a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}
.feature-card h3 {
    margin-bottom: 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}
.feature-card p {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}
.feature-card a {
    margin-top: auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}
.feature-card a span { margin-left: 5px; }

.page {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 70px 0 95px;
}
.rules-page .hero {
    max-width: 850px;
    padding: 28px 0 58px;
    text-align: left;
}
.rules-page .hero h1 {
    margin-bottom: 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 8vw, 82px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}
.rules-page .hero .lead {
    max-width: 720px;
    margin: 0;
}
.rules-note {
    max-width: 720px;
    margin: 24px 0 0;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.rule-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    counter-reset: rules;
}
.rule {
    min-height: 190px;
    padding: 27px 30px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.rule:nth-child(odd) { border-left: 1px solid var(--border); }
.rule::before {
    counter-increment: rules;
    content: "0" counter(rules);
    padding-top: 4px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}
.rule h2 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}
.rule p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}
.rules-contact {
    margin-top: 45px;
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.rules-contact span,
.rules-contact strong { display: block; }
.rules-contact span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}
.rules-contact strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.site-footer {
    min-height: 110px;
    padding: 25px max(20px, calc((100% - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: #0a0a09;
    font-size: 11px;
}
.site-footer strong,
.site-footer span { display: block; }
.site-footer strong {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 13px;
}
.site-footer p { margin: 0; }
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 60;
    padding: 13px 17px;
    border: 1px solid #46433b;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    background: var(--surface-2);
    box-shadow: 0 15px 40px rgba(0,0,0,.4);
    font-size: 13px;
    transform: translate(-50%, 12px);
    transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Stereo */
.stereo-shell {
    min-height: calc(100vh - 192px);
    display: grid;
    place-items: center;
    padding: 65px 20px;
    background: repeating-linear-gradient(135deg, #0f0f0e 0, #0f0f0e 1px, #0d0d0c 1px, #0d0d0c 14px);
}
.stereo-glow { display: none; }
.download-card {
    width: min(100%, 560px);
    padding: 42px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}
.download-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 1px solid #50483a;
    color: var(--accent);
    background: #1b1915;
}
.download-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.download-card h1 {
    margin-bottom: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 7vw, 52px);
    font-weight: 400;
}
.gradient-text { color: var(--accent); }
.download-description {
    max-width: 450px;
    margin: 0 auto 28px;
    color: var(--muted);
    line-height: 1.65;
}
.download-form { text-align: left; }
.download-form label {
    display: block;
    margin-bottom: 8px;
    color: #d7d4cb;
    font-size: 12px;
    font-weight: 700;
}
.download-input { position: relative; }
.download-input svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    fill: none;
    stroke: #8e826c;
    stroke-width: 1.8;
    stroke-linecap: round;
    transform: translateY(-50%);
}
.download-input input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--border);
    border-radius: 2px;
    outline: none;
    color: var(--text);
    background: #0c0c0b;
}
.download-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(198,164,95,.12);
}
.download-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 11px;
    gap: 9px;
}
.download-submit:disabled { opacity: .65; cursor: wait; }
.button-loader {
    width: 16px;
    height: 16px;
    display: none;
    border: 2px solid rgba(17,16,13,.3);
    border-top-color: #11100d;
    border-radius: 50%;
    animation: buttonSpin .8s linear infinite;
}
.button-loader.show { display: block; }
@keyframes buttonSpin { to { transform: rotate(360deg); } }
.download-error,
.download-result {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
}
.download-error {
    border-color: rgba(215,115,109,.35);
    color: #e58b85;
    background: rgba(215,115,109,.07);
}
.download-error.show,
.download-result.show { display: block; }
.download-result {
    border-color: rgba(112,168,125,.3);
    background: rgba(112,168,125,.05);
}
.result-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}
.result-heading strong,
.result-heading small { display: block; }
.result-heading small {
    max-width: 390px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.result-check { color: var(--success); font-size: 20px; }
.result-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}
.result-link-row input {
    min-width: 0;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--accent);
    background: #0c0c0b;
    font-family: Consolas, monospace;
    font-size: 11px;
}
.copy-button {
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    background: var(--surface-2);
    cursor: pointer;
}
.result-download { width: 100%; margin-top: 8px; }

@media (max-width: 850px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 82px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 8px 16px;
        border: 1px solid var(--border);
        background: var(--surface);
    }
    .nav-links.open { display: block; }
    .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child a { border-bottom: 0; }
    .nav-links a::after { display: none; }
    .landing {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 70px;
    }
    .landing-panel { width: min(100%, 500px); }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card {
        min-height: 225px;
        border-right: 1px solid var(--border);
    }
    .card-label { margin-bottom: 32px; }
}

@media (max-width: 620px) {
    .nav { width: min(calc(100% - 28px), var(--max-width)); }
    .brand-copy small { display: none; }
    .landing {
        width: min(calc(100% - 28px), var(--max-width));
        padding: 58px 0 70px;
    }
    .landing h1 { font-size: 55px; }
    .lead { font-size: 16px; }
    .actions { flex-direction: column; }
    .btn-large { width: 100%; }
    .server-address strong { font-size: 11px; }
    .copy-label { display: none; }
    .landing-panel {
        min-height: 390px;
        padding: 34px 25px 28px;
    }
    .landing-panel > img { top: 58px; width: 135px; }
    .server-details { gap: 8px; }
    .home-section { padding-top: 68px; padding-bottom: 75px; }
    .feature-card { padding: 25px 23px; }
    .page {
        width: min(calc(100% - 28px), var(--max-width));
        padding-top: 52px;
    }
    .rules-page .hero h1 { font-size: 51px; }
    .rule-list { grid-template-columns: 1fr; }
    .rule,
    .rule:nth-child(odd) { border-left: 1px solid var(--border); }
    .rule { min-height: 165px; padding: 24px 20px; }
    .rules-contact {
        align-items: stretch;
        flex-direction: column;
    }
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .download-card { padding: 32px 20px; }
    .result-link-row { grid-template-columns: 1fr; }
    .copy-button { min-height: 40px; }
}
