/* =========================
   FoxNet Realms: One-pager
   Modern UI + subtle MC nods
   ========================= */

:root{
  --bg: #0b0d12;
  --bg2:#0f1118;
  --panel:#121625;
  --panel2:#0e1220;

  /* Fox palette */
  --fox:#ff6a2a;
  --fox2:#ff914d;
  --cream:#ffe8d7;

  /* Minecraft-ish accents */
  --grass:#43d17a;
  --grass2:#2ca85b;

  --text:#e9ecf4;
  --muted:#aeb6c8;
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.55);

  --radius: 18px;
  --radius2: 26px;
  --max: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(255,106,42,.20), transparent 55%),
    radial-gradient(900px 700px at 15% 10%, rgba(67,209,122,.14), transparent 50%),
    radial-gradient(900px 700px at 80% 60%, rgba(255,145,77,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.35;
  overflow-x:hidden;
}

/* Subtle pixel grid overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.25;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(900px 500px at 50% 15%, rgba(0,0,0,.9), transparent 70%);
}

a{ color:inherit; text-decoration:none; }
.wrap{ width:min(var(--max), calc(100% - 44px)); margin:0 auto; }

.inline-code{
  background:rgba(255,255,255,.08);
  padding:4px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
}

.note{
  margin-top:12px;
  color:var(--muted);
  font-weight:650;
  font-size:12.5px;
}

/* =========================
   Top Nav
   ========================= */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(9,10,15,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.logo{
  width:38px; height:38px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,106,42,.9), rgba(67,209,122,.75));
  box-shadow: 0 10px 30px rgba(255,106,42,.15);
  position:relative;
  overflow:hidden;
}
/* Tiny “pixel” corners */
.logo::before, .logo::after{
  content:"";
  position:absolute;
  width:10px; height:10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
}
.logo::before{ left:6px; top:6px; }
.logo::after{ right:6px; bottom:6px; }
.brand h1{
  font-size:14px;
  letter-spacing:.4px;
  margin:0;
  font-weight:800;
}
.brand span{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.links{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.chip{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 999px;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  background: rgba(18,22,37,.35);
  transition: .2s ease;
}
.chip:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.chip.primary{
  color:#111;
  border-color: transparent;
  background: linear-gradient(135deg, var(--fox), var(--fox2));
  box-shadow: 0 14px 45px rgba(255,106,42,.24);
}
.chip.primary:hover{ transform: translateY(-1px) scale(1.01); }

.burger{
  display:none;
  border:1px solid var(--line);
  background: rgba(18,22,37,.45);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}

/* IMPORTANT FIX: hide mobile nav by default (desktop/tablet) */
.mobile { display: none; }
.mobile.open { display: block; }

@media (max-width: 880px){
  .brand{ min-width:auto; }
  .links{ display:none; }
  .burger{ display:block; }

  .mobile{
    display:none;
    padding: 0 0 14px 0;
  }
  .mobile.open{ display:block; }
  .mobile .links{
    display:flex;
    justify-content:flex-start;
  }
}

/* =========================
   Hero
   ========================= */
.hero{
  padding: 56px 0 22px;
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:stretch;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
}

.hero-card{
  background: linear-gradient(180deg, rgba(18,22,37,.85), rgba(12,14,22,.75));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 28px;
  position:relative;
  overflow:hidden;
}

/* “Block” pattern in hero corner */
.hero-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(120px 120px at 18% 12%, rgba(67,209,122,.16), transparent 65%),
    radial-gradient(140px 140px at 78% 18%, rgba(255,106,42,.18), transparent 70%);
  pointer-events:none;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
  letter-spacing:.3px;
}
.dot{
  width:10px; height:10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--grass), var(--grass2));
  box-shadow: 0 0 0 3px rgba(67,209,122,.10);
}

.hero h2{
  margin:16px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height:1.05;
  letter-spacing:-.9px;
}
.hero h2 .pixel{
  font-family: "Press Start 2P", Inter, system-ui, sans-serif;
  font-size: .62em;
  letter-spacing: .2px;
  display:inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  transform: translateY(-2px);
  margin-left:6px;
}

.sub{
  margin:0 0 18px;
  color:var(--muted);
  font-size: 15.5px;
  max-width: 62ch;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 16px;
}

.btn{
  cursor:pointer;
  border:none;
  font-weight:900;
  font-size:14px;
  border-radius: 14px;
  padding: 12px 14px;
  transition:.2s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.btn.primary{
  background: linear-gradient(135deg, var(--fox), var(--fox2));
  color:#0b0d12;
  box-shadow: 0 18px 50px rgba(255,106,42,.22);
}
.btn.primary:hover{ transform: translateY(-1px); }
.btn.ghost{
  background: rgba(18,22,37,.45);
  color:var(--text);
  border:1px solid rgba(255,255,255,.14);
}
.btn.ghost:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); }

.serverbox{
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.serverbox .label{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.serverbox code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight:800;
  color: var(--cream);
  background: rgba(255,106,42,.12);
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,106,42,.18);
}

/* Right hero: “blocky” screenshot panel */
.shot{
  background:
    linear-gradient(180deg, rgba(18,22,37,.68), rgba(12,14,22,.55));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: 320px;
}
.shot .frame{
  position:absolute; inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.36)),
    url("assets/hero-screenshot.jpg") center/cover no-repeat;
  overflow:hidden;
}

/* If you haven't added assets/hero-screenshot.jpg, show a nice placeholder */
.shot .frame.fallback{
  background:
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 12px, rgba(255,255,255,.02) 12px 24px),
    linear-gradient(135deg, rgba(67,209,122,.18), rgba(255,106,42,.18));
}

.shot .badgebar{
  position:absolute;
  left: 22px;
  top: 22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  z-index:2;
}
.badge{
  font-size: 12px;
  font-weight:900;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.30);
  color: var(--text);
}
.badge.green{ border-color: rgba(67,209,122,.26); color: #d8ffe7; }
.badge.fox{ border-color: rgba(255,106,42,.26); color: #ffe2d3; }

.shot .corner{
  position:absolute;
  right: 18px;
  bottom: 18px;
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.32);
  z-index:2;
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}

/* =========================
   Sections
   ========================= */
section{ padding: 24px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  margin: 6px 0 14px;
}
.section-head h3{
  margin:0;
  font-size: 18px;
  letter-spacing:.2px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  max-width: 72ch;
  font-weight:600;
  font-size:13.5px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){ .grid3{ grid-template-columns:1fr; } }

.card{
  border:1px solid var(--line);
  background: rgba(18,22,37,.55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}

/* Minecraft-ish “block bevel” */
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 32%),
    linear-gradient(315deg, rgba(0,0,0,.30), transparent 35%);
  opacity:.55;
}

.card h4{
  margin: 2px 0 8px;
  font-size: 15px;
  letter-spacing:.2px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-weight:600;
  font-size: 13.5px;
}
.mini{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.ico{
  width: 34px; height: 34px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  display:grid;
  place-items:center;
  font-weight:900;
  color: var(--cream);
}
.ico.grass{ color:#d8ffe7; border-color: rgba(67,209,122,.24); }
.ico.fox{ color:#ffe2d3; border-color: rgba(255,106,42,.24); }

/* =========================
   Gallery
   ========================= */
.gallery{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}
@media (max-width: 980px){ .gallery{ grid-template-columns:1fr; } }

.gallery .big,
.gallery .small{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(18,22,37,.45);
  box-shadow: var(--shadow);
  position:relative;
  min-height: 340px;
}
.gallery .small{
  min-height: 340px;
  display:grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  background: transparent;
  border:none;
  box-shadow:none;
}
.slot{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(18,22,37,.45);
  position:relative;
  min-height: 160px;
}

.img{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 12px, rgba(255,255,255,.02) 12px 24px),
    linear-gradient(135deg, rgba(255,106,42,.16), rgba(67,209,122,.14));
}
.img.real{
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.70)),
    var(--bgimg) center/cover no-repeat;
}

.cap{
  position:absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.cap strong{
  font-size: 14px;
  letter-spacing:.2px;
}
.cap span{
  color: var(--muted);
  font-weight:700;
  font-size: 12px;
}

/* =========================
   Join / Steps
   ========================= */
.steps{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items:stretch;
}
@media (max-width: 980px){ .steps{ grid-template-columns:1fr; } }

.steps .card{ padding: 20px; }
ol{
  margin: 10px 0 0 18px;
  padding:0;
  color: var(--muted);
  font-weight:650;
  font-size: 13.5px;
}
ol li{ margin: 8px 0; }

.notice{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border:1px solid rgba(67,209,122,.22);
  background: rgba(67,209,122,.08);
  color: #d8ffe7;
  font-weight:800;
  font-size: 13px;
}

/* =========================
   Footer
   ========================= */
footer{
  padding: 26px 0 40px;
  border-top:1px solid var(--line);
  color: var(--muted);
  font-weight:650;
  font-size: 13px;
}
.foot{
  display:flex;
  gap: 12px;
  justify-content:space-between;
  flex-wrap:wrap;
  align-items:center;
}
.foot a{ color: var(--text); opacity:.85; }
.foot a:hover{ opacity:1; }
.foot-title{ color:var(--text); }
.foot-sub{ margin-top:6px; }
.foot-links{ display:flex; gap:12px; flex-wrap:wrap; }

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-weight:800;
  font-size:13px;
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index: 200;
  max-width: calc(100% - 44px);
  text-align:center;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(-2px); }
