:root {
    --ink: #1a120f;
    --paper: #f2dfb5;
    --paper-light: #fff2cf;
    --rust: #a62b1f;
    --rust-dark: #681a17;
    --gold: #d79b3c;
    --cream: #f7e8c6;
    --green: #74a654;
    --muted: #bba98f;
    --line: rgba(247, 232, 198, .17);
    --shadow: 0 28px 70px rgba(16, 8, 4, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--cream);
    background:
        radial-gradient(circle at 70% 10%, rgba(166, 43, 31, .15), transparent 34rem),
        linear-gradient(180deg, #17100d, #21130e 60%, #130c0a);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }
.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: .7rem 1rem;
    background: var(--paper-light);
    color: var(--ink);
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem clamp(1.2rem, 4vw, 4.5rem);
    border-bottom: 1px solid rgba(255,255,255,.13);
    background: linear-gradient(180deg, rgba(21, 13, 10, .64), transparent);
}
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font: 800 clamp(.9rem, 1.4vw, 1.08rem)/1 Georgia, serif;
    letter-spacing: .16em;
}
.brand-mark {
    display: grid;
    width: 2.4rem;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--paper-light);
    transform: rotate(-7deg);
}
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
nav a { color: #f9e9c8; font-size: .84rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: white; }
.nav-download { padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; }

.hero {
    position: relative;
    min-height: min(900px, 100vh);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: center;
    padding: 8rem clamp(1.2rem, 7vw, 8rem) 5rem;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(32, 17, 11, .96) 0%, rgba(32, 17, 11, .83) 42%, rgba(60, 26, 14, .3) 72%, rgba(30, 14, 9, .2)),
        linear-gradient(180deg, rgba(12,8,7,.16) 70%, #17100d 100%),
        url("../assets/sky.png") center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 48%;
    opacity: .7;
    background: url("../assets/town.png") center bottom/cover no-repeat;
    filter: sepia(.25) saturate(.8) brightness(.58);
    mask-image: linear-gradient(transparent, #000 30%);
}
.hero-copy { position: relative; z-index: 3; max-width: 760px; }
.eyebrow {
    margin: 0 0 .8rem;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.live-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: #8cc869; box-shadow: 0 0 0 .3rem rgba(140,200,105,.13); }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.03; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7.4vw, 7.5rem); letter-spacing: -.055em; text-shadow: 0 4px 24px rgba(27,10,5,.38); }
h1 em { color: var(--gold); font-weight: inherit; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
h3 { margin-bottom: .6rem; font-size: 1.45rem; }
.lead { max-width: 650px; margin: 0 0 2rem; color: #e5d4b6; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .85rem; }
.button {
    display: inline-flex;
    min-height: 3.8rem;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 850;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { min-width: 260px; flex-direction: column; background: linear-gradient(135deg, var(--rust), var(--rust-dark)); box-shadow: 0 14px 38px rgba(88,17,13,.32); }
.button-primary small { color: #e6b8a8; font-size: .63rem; letter-spacing: .08em; }
.button-primary.unavailable { opacity: .55; pointer-events: none; }
.button-ghost { border-color: rgba(255,255,255,.35); background: rgba(32,18,12,.3); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: rgba(255,255,255,.72); }
.server-pill { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; color: #cdbda3; font-size: .82rem; }
.status-light { width: .56rem; height: .56rem; border-radius: 50%; background: #d09b46; box-shadow: 0 0 0 .25rem rgba(208,155,70,.11); }
.server-pill.online .status-light { background: var(--green); box-shadow: 0 0 0 .25rem rgba(116,166,84,.13); }
.server-pill.offline .status-light { background: #c54c3f; box-shadow: 0 0 0 .25rem rgba(197,76,63,.13); }

.hero-art { position: relative; align-self: end; height: min(76vh, 760px); z-index: 2; }
.sun { position: absolute; width: min(30vw, 390px); aspect-ratio: 1; top: 11%; left: 16%; border-radius: 50%; background: rgba(226,164,69,.35); box-shadow: 0 0 100px rgba(226,164,69,.25); }
.gunslinger { position: absolute; z-index: 2; height: 100%; max-width: none; left: 4%; bottom: -4%; object-fit: contain; filter: drop-shadow(15px 18px 24px rgba(20,8,5,.48)); }
.hero-card { position: absolute; z-index: 3; width: clamp(105px, 11vw, 180px); right: 0; bottom: 8%; transform: rotate(9deg); filter: drop-shadow(12px 18px 20px rgba(20,8,5,.55)); }
.wanted-stamp { position: absolute; z-index: 5; top: 18%; right: -2%; padding: .65rem .85rem; border: 3px double var(--paper); color: var(--paper); font: 800 .9rem/1.2 Georgia, serif; letter-spacing: .16em; text-align: center; transform: rotate(8deg); opacity: .85; }
.wanted-stamp strong { color: var(--gold); }
.dust { position: absolute; border-radius: 50%; background: rgba(245,205,133,.4); filter: blur(2px); animation: drift 8s ease-in-out infinite; }
.dust-one { width: 8px; height: 8px; top: 32%; left: 43%; }
.dust-two { width: 4px; height: 4px; top: 58%; left: 55%; animation-delay: -3s; }
@keyframes drift { 50% { transform: translate(3rem, -2rem); opacity: .25; } }

.section { width: min(1220px, calc(100% - 2.4rem)); margin-inline: auto; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section-heading { max-width: 720px; margin-bottom: 3.5rem; }
.section-heading > p:last-child, .status-card p, .feedback-card p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); }
.steps li { min-height: 270px; padding: clamp(1.5rem, 3vw, 2.5rem); background: linear-gradient(145deg, rgba(50,30,22,.96), rgba(29,18,14,.96)); }
.steps p { color: var(--muted); }
.step-number { display: block; margin-bottom: 3rem; color: var(--gold); font: 700 .78rem/1 monospace; letter-spacing: .12em; }

.status-section { display: grid; grid-template-columns: 1.5fr .7fr; gap: 1rem; padding-top: 1rem; }
.status-card, .feedback-card { padding: clamp(2rem, 4vw, 4rem); border: 1px solid var(--line); background: rgba(43,27,20,.82); box-shadow: var(--shadow); }
.status-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .8rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: #dfcfb5; }
.feature-list span { color: var(--gold); font-weight: 900; }
.feedback-card { background: linear-gradient(160deg, rgba(119,37,27,.9), rgba(65,25,20,.95)); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--paper-light); font-weight: 800; text-underline-offset: .3rem; }

.final-cta { display: flex; align-items: center; gap: 2rem; margin-block: 4rem 6rem; padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); border-block: 1px solid var(--line); }
.final-cta img { width: 58px; filter: drop-shadow(5px 8px 8px rgba(0,0,0,.3)); }
.final-cta div { flex: 1; }
.final-cta h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.button.compact { min-width: 190px; }
footer { display: grid; gap: .35rem; padding: 2rem clamp(1.2rem, 5vw, 5rem); border-top: 1px solid var(--line); color: #978776; font-size: .72rem; }
footer p { max-width: 920px; margin: 0; }
code { padding: .12rem .35rem; border: 1px solid var(--line); background: rgba(0,0,0,.2); color: var(--paper-light); }

@media (max-width: 920px) {
    nav a:not(.nav-download) { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 9rem; }
    .hero-copy { padding-bottom: 2rem; }
    .hero-art { display: none; }
    .hero-card, .wanted-stamp { display: none; }
    .steps { grid-template-columns: 1fr; }
    .steps li { min-height: 0; }
    .step-number { margin-bottom: 1.5rem; }
    .status-section, .status-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .site-header { padding: 1rem 1.15rem; }
    .brand { letter-spacing: .08em; }
    .nav-download { padding: .55rem .7rem; font-size: .7rem; }
    .hero { min-height: 820px; padding-inline: 1.2rem; }
    h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
    .hero-actions, .button { width: 100%; }
    .final-cta { flex-direction: column; align-items: flex-start; }
    .final-cta .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
