:root {
  --bg: #0b0b0a;
  --bg-soft: #12110f;
  --panel: #171613;
  --panel-2: #1d1b17;
  --text: #f1eadc;
  --muted: #a69d8d;
  --gold: #c7a66a;
  --gold-light: #e0c38b;
  --line: rgba(224,195,139,.18);
  --green: #72bd7b;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.site-header {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 76px;
  display: flex; align-items: center; gap: 28px; padding: 0 5%;
  background: rgba(9,9,8,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: Cinzel, serif; font-size: 15px; letter-spacing: .05em; white-space: nowrap; }
.brand-mark { color: var(--gold); font-size: 24px; }
.brand strong { color: var(--gold-light); }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: #c4bcae; font-size: 13px; transition: .2s; }
nav a:hover { color: var(--gold-light); }
.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; transition: transform .2s, background .2s, border .2s;
}
.header-cta { background: var(--gold); color: #15120d; padding: 11px 19px; }
.header-cta:hover, .btn:hover { transform: translateY(-2px); }
.menu-toggle { display:none; margin-left:auto; background:none; color:var(--text); border:0; font-size:24px; }

.hero {
  min-height: 790px; position: relative; display: flex; align-items: center;
  padding: 150px max(5%, calc((100vw - var(--max))/2)) 90px; overflow: hidden;
  background:
    radial-gradient(circle at 76% 44%, rgba(163,123,54,.16), transparent 28%),
    linear-gradient(90deg, #090908 0%, rgba(9,9,8,.88) 42%, rgba(9,9,8,.36) 100%),
    linear-gradient(0deg, #0b0b0a 0%, transparent 35%),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2200&q=85") center/cover;
}
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 65%, var(--bg) 100%); pointer-events:none; }
.hero-content { position:relative; z-index:2; max-width:650px; }
.eyebrow, .section-kicker { color:var(--gold); text-transform:uppercase; letter-spacing:.22em; font-size:11px; font-weight:700; }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.status-dot, .live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#777; box-shadow:0 0 0 4px rgba(255,255,255,.04); }
.status-dot.online, .live-dot { background:var(--green); box-shadow:0 0 0 4px rgba(114,189,123,.1); }
.status-dot.offline { background:#c35f5f; }
h1, h2, h3 { font-family:Cinzel, serif; }
h1 { margin:0; font-size:clamp(62px, 8vw, 112px); line-height:.92; letter-spacing:-.045em; }
h1 em { color:var(--gold-light); font-style:normal; }
.hero-text { max-width:580px; margin:30px 0; color:#c4bbaa; font-size:17px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.btn { padding:15px 22px; }
.btn-primary { background:var(--gold); color:#16120c; border:1px solid var(--gold); }
.btn-secondary { border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.25); color:var(--text); }
.server-pill {
  display:flex; align-items:center; justify-content:space-between; width:min(100%, 470px);
  margin-top:34px; padding:13px 13px 13px 18px; border:1px solid var(--line);
  background:rgba(8,8,7,.62); backdrop-filter:blur(8px);
}
.server-pill small { display:block; color:#8e887d; font-size:10px; text-transform:uppercase; letter-spacing:.16em; }
.server-pill strong { display:block; margin-top:2px; font-family:monospace; font-size:14px; }
.server-pill button { cursor:pointer; border:1px solid var(--line); background:#211e18; color:var(--gold-light); padding:9px 13px; font-size:11px; text-transform:uppercase; }
.hero-stats { position:absolute; z-index:3; right:max(5%, calc((100vw - var(--max))/2)); bottom:100px; display:flex; gap:10px; }
.stat-card { min-width:150px; display:flex; gap:12px; align-items:center; padding:14px; border:1px solid var(--line); background:rgba(12,11,9,.78); backdrop-filter:blur(10px); }
.stat-icon { color:var(--gold); font-size:19px; }
.stat-card strong { display:block; font-family:Cinzel,serif; font-size:18px; }
.stat-card small { color:#938b7d; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }

.section { width:min(var(--max), 90%); margin:auto; padding:110px 0; }
.section-heading { max-width:720px; margin-bottom:48px; }
.section-heading.centered { margin-left:auto; margin-right:auto; text-align:center; }
.section-heading h2, .cta-section h2 { margin:9px 0 15px; font-size:clamp(34px, 4vw, 56px); line-height:1.05; }
.section-heading p { color:var(--muted); margin:0; }
.feature-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:14px; }
.feature-card { min-height:270px; padding:28px; background:linear-gradient(145deg,#191815,#11110f); border:1px solid var(--line); position:relative; overflow:hidden; }
.feature-card.large { grid-row:span 2; min-height:554px; display:flex; align-items:flex-end; }
.feature-art { position:absolute; inset:0; opacity:.38; }
.castle-art { background:linear-gradient(0deg,rgba(10,9,8,.96),transparent 75%), url("https://images.unsplash.com/photo-1520986606214-8b456906c813?auto=format&fit=crop&w=1200&q=80") center/cover; }
.feature-body { position:relative; z-index:1; max-width:520px; }
.number { color:#746c5d; font-size:11px; letter-spacing:.15em; }
.feature-card h3 { font-size:25px; margin:9px 0; }
.feature-card p { color:#999182; font-size:13px; margin:0; }
.feature-symbol { display:block; color:var(--gold); font-size:25px; margin-bottom:25px; }

.map-section { width:100%; max-width:none; padding-left:5%; padding-right:5%; background:#0e0e0c; }
.map-frame-wrap { max-width:1400px; margin:auto; border:1px solid var(--line); background:#080807; position:relative; }
.map-toolbar { height:52px; display:flex; justify-content:space-between; align-items:center; padding:0 16px; border-bottom:1px solid var(--line); color:#aaa294; font-size:12px; }
.map-toolbar span { display:flex; align-items:center; gap:8px; }
.map-toolbar a { color:var(--gold-light); }
.map-frame-wrap iframe { width:100%; height:650px; display:block; border:0; background:#111; }
.map-fallback { display:none; }

.install-panel { display:grid; grid-template-columns:1.1fr .9fr; gap:50px; padding:60px; border:1px solid var(--line); background:radial-gradient(circle at 10% 20%,rgba(199,166,106,.11),transparent 35%),#151411; }
.install-copy h2 { font-size:clamp(34px,4vw,52px); line-height:1.05; margin:12px 0 16px; }
.install-copy p { color:var(--muted); max-width:650px; margin-bottom:28px; }
.steps { display:grid; gap:10px; }
.step { display:flex; gap:18px; align-items:center; padding:18px; background:#0f0f0d; border:1px solid rgba(255,255,255,.06); }
.step b { font-family:Cinzel,serif; color:var(--gold); font-size:18px; }
.step strong, .step span { display:block; }
.step strong { font-size:13px; }
.step span { color:#777167; font-size:11px; }

.modpack-section { border-top:1px solid rgba(255,255,255,.05); }
.modpack-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:25px; }
.version-card { padding:25px; background:var(--panel); border:1px solid var(--line); }
.version-card span, .version-card small { display:block; color:#777065; font-size:10px; text-transform:uppercase; letter-spacing:.15em; }
.version-card strong { display:block; font-family:Cinzel,serif; color:var(--gold-light); font-size:25px; margin:5px 0; }
.text-link { color:var(--gold-light); font-size:13px; font-weight:700; }

.cta-section { width:min(var(--max),90%); margin:0 auto 110px; padding:50px; display:flex; justify-content:space-between; align-items:center; gap:30px; border:1px solid var(--line); background:linear-gradient(100deg,#191711,#0e0e0c); }
.cta-section h2 { margin-bottom:0; }
footer { padding:35px 5%; border-top:1px solid rgba(255,255,255,.07); display:flex; gap:30px; align-items:center; justify-content:space-between; color:#777167; font-size:11px; }
.footer-brand { color:var(--gold-light); font-family:Cinzel,serif; letter-spacing:.08em; }
.footer-brand span { color:var(--gold); }
.footer-links { display:flex; gap:20px; }
.footer-links a:hover, .footer-links button:hover { color:var(--gold-light); }
.footer-links button { background:none; border:0; color:#777167; cursor:pointer; font-size:11px; }
.toast { position:fixed; z-index:100; right:25px; bottom:25px; transform:translateY(20px); opacity:0; pointer-events:none; background:var(--gold); color:#17130d; padding:11px 17px; font-weight:700; font-size:12px; transition:.25s; }
.toast.show { opacity:1; transform:none; }

@media (max-width: 900px) {
  .site-header { gap:12px; }
  nav { position:absolute; top:76px; left:0; right:0; display:none; flex-direction:column; gap:0; padding:10px 5%; background:#0c0c0b; border-bottom:1px solid var(--line); }
  nav.open { display:flex; }
  nav a { padding:13px 0; }
  .menu-toggle { display:block; }
  .header-cta { display:none; }
  .hero { min-height:850px; padding-top:145px; }
  .hero-stats { left:5%; right:5%; bottom:40px; }
  .stat-card { flex:1; min-width:0; }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .feature-card.large { grid-column:1/-1; grid-row:auto; min-height:420px; }
  .install-panel { grid-template-columns:1fr; padding:35px; }
}
@media (max-width: 600px) {
  .hero { min-height:880px; background-position:65% center; }
  h1 { font-size:62px; }
  .hero-text { font-size:15px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-stats { display:grid; grid-template-columns:1fr 1fr; }
  .stat-card:last-child { display:none; }
  .feature-grid, .modpack-grid { grid-template-columns:1fr; }
  .feature-card.large { min-height:360px; }
  .section { padding:75px 0; }
  .map-section { padding-left:0; padding-right:0; }
  .map-section .section-heading { width:90%; }
  .map-frame-wrap { border-left:0; border-right:0; }
  .map-frame-wrap iframe { height:500px; }
  .install-panel { padding:28px 20px; }
  .cta-section { flex-direction:column; align-items:flex-start; padding:35px 25px; margin-bottom:70px; }
  footer { flex-direction:column; align-items:flex-start; }
  .server-pill { width:100%; }
}
