/* ============================================================
   RennCraft — Design System
   Dark navy + glowing diamond-blue + crown gold
   Clean & modern with subtle Minecraft/pixel accents
============================================================ */

:root {
  /* surfaces */
  --bg-0: #060a16;          /* page base */
  --bg-1: #0a1124;          /* alt section */
  --panel: #0d1730;         /* cards */
  --panel-2: #122444;       /* deep card gradient */
  --panel-hi: #15264a;      /* raised / hover */
  --line: #1d2e54;          /* solid borders */
  --line-soft: rgba(125,165,255,.13);

  /* brand */
  --diamond: #3d9bff;       /* primary blue */
  --diamond-bright: #62b4ff;
  --diamond-deep: #1f5fd6;
  --cyan: #84e2ff;          /* glow / highlight */
  --navy-edge: #0a1f5c;     /* logo dark outline */
  --gold: #f1c04a;          /* crown gold */
  --gold-bright: #ffd76b;
  --gold-deep: #c4922a;

  /* text */
  --text: #eaf0ff;
  --text-dim: #a3b4d8;
  --text-mute: #69799f;

  /* status */
  --online: #46d17f;
  --offline: #ff5d6c;

  /* type */
  --pixel: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;

  /* shape */
  --r: 4px;
  --r-lg: 8px;
  --shadow-block: 0 6px 0 rgba(0,0,0,.35);
  --glow-blue: 0 0 30px rgba(61,155,255,.35);

  --maxw: 1180px;
  --gut: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* subtle pixel-grid texture, page-wide */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(125,165,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,165,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }

/* eyebrow / pixel label */
.eyebrow {
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--diamond-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--diamond);
  box-shadow: 0 0 12px var(--diamond);
  transform: rotate(45deg);
}

.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-1); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 46px; }
.section-head h2 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  margin: 14px 0 0;
  line-height: 1.05;
  letter-spacing: .5px;
}
.section-head p { color: var(--text-dim); max-width: 56ch; margin: 14px 0 0; font-size: 17px; }
.section-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  border-radius: var(--r);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--diamond-bright), var(--diamond-deep));
  color: #fff;
  box-shadow: 0 5px 0 #103a86, var(--glow-blue);
  border: 1px solid rgba(160,205,255,.5);
}
.btn-primary:hover { box-shadow: 0 5px 0 #103a86, 0 0 42px rgba(61,155,255,.6); }
.btn-primary:active { box-shadow: 0 1px 0 #103a86, var(--glow-blue); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #2a1c00;
  box-shadow: 0 5px 0 #8a6614;
}
.btn-gold:active { box-shadow: 0 1px 0 #8a6614; }
.btn-ghost {
  background: rgba(125,165,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(125,165,255,.13); border-color: var(--diamond); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 5px 0 #3a44b8; }
.btn-discord:active { box-shadow: 0 1px 0 #3a44b8; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,13,26,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header.scrolled { background: rgba(7,11,22,.94); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
.brand .name { font-family: var(--pixel); font-weight: 700; font-size: 21px; letter-spacing: .5px; }
.brand .name b { color: var(--diamond-bright); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(125,165,255,.08); }
.nav-links a.active { color: var(--diamond-bright); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-online {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(70,209,127,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,209,127,.55); } 70% { box-shadow: 0 0 0 8px rgba(70,209,127,0); } 100% { box-shadow: 0 0 0 0 rgba(70,209,127,0); } }
.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r); align-items: center; justify-content: center; }
.hamburger span, .hamburger span::before, .hamburger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 86px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 130%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 22%, rgba(61,155,255,.28), transparent 65%),
    radial-gradient(ellipse 40% 40% at 78% 8%, rgba(241,192,74,.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(640px, 86vw); margin: 18px 0 6px; image-rendering: pixelated; filter: drop-shadow(0 12px 36px rgba(61,155,255,.35)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero h1 {
  font-family: var(--pixel); font-weight: 700;
  font-size: clamp(26px, 4.2vw, 44px);
  margin: 8px 0 0; line-height: 1.1; letter-spacing: .5px;
}
.hero .tagline { color: var(--text-dim); font-size: clamp(16px, 2vw, 20px); margin: 16px 0 0; max-width: 50ch; }

/* IP box */
.ip-block { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: stretch; margin: 34px 0 0; }
.ip-card {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden; box-shadow: var(--shadow-block);
}
.ip-card .label { padding: 0 18px; font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: var(--text-mute); border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.ip-card .ip { padding: 15px 20px; font-family: var(--pixel); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); color: var(--cyan); text-shadow: 0 0 18px rgba(132,226,255,.5); }
.ip-card .copy { padding: 0 20px; align-self: stretch; background: rgba(125,165,255,.08); border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--diamond-bright); transition: background .15s; }
.ip-card .copy:hover { background: rgba(61,155,255,.2); }

/* status strip */
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 26px 0 0; color: var(--text-dim); font-size: 15px; font-weight: 600; }
.hero-meta .item { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta b { color: var(--text); }
.bar { width: 1px; height: 16px; background: var(--line); align-self: center; }

/* ---------- features ---------- */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(61,155,255,.4); box-shadow: var(--shadow-block); }
.ficon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r); background: rgba(61,155,255,.1); border: 1px solid rgba(61,155,255,.3); margin-bottom: 18px; }
.ficon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--pixel); font-weight: 600; font-size: 19px; margin: 0 0 8px; letter-spacing: .3px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- news ---------- */
.grid-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(61,155,255,.4); }
.news-thumb { height: 138px; position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft);
  background: repeating-linear-gradient(45deg, #0f1d3a 0 12px, #0c1730 12px 24px); }
.news-thumb .ver { font-family: var(--pixel); font-weight: 700; font-size: 22px; color: var(--diamond-bright); text-shadow: var(--glow-blue); }
.news-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-family: var(--pixel); font-size: 11px; letter-spacing: 1.5px; color: var(--text-mute); text-transform: uppercase; }
.news-card h3 { font-size: 18px; margin: 9px 0 8px; font-weight: 700; }
.news-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 14.5px; flex: 1; }
.news-more { font-weight: 700; color: var(--diamond-bright); font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.news-card:hover .news-more { gap: 11px; }

/* ---------- top players ---------- */
.players { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.player-list { display: flex; flex-direction: column; gap: 10px; }
.player-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 13px 18px; transition: border-color .15s, transform .12s;
}
.player-row:hover { border-color: rgba(61,155,255,.4); transform: translateX(4px); }
.player-rank { font-family: var(--pixel); font-weight: 700; font-size: 18px; width: 34px; color: var(--text-mute); }
.player-row.top1 .player-rank { color: var(--gold); }
.player-row.top2 .player-rank { color: #cdd6ea; }
.player-row.top3 .player-rank { color: #d79a5a; }
.skin { width: 40px; height: 40px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 2px; }
.player-name { font-weight: 700; font-size: 16px; flex: 1; }
.player-name .crown { color: var(--gold); margin-left: 6px; }
.player-stat { font-family: var(--pixel); font-weight: 600; color: var(--cyan); font-size: 15px; }
.players-side { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px; }
.players-side h3 { font-family: var(--pixel); font-size: 22px; margin: 0 0 10px; }
.players-side p { color: var(--text-dim); margin: 0 0 22px; }

/* ---------- store ---------- */
.grid-store { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rank-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; text-align: center; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rank-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--diamond)); }
.rank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-block); border-color: var(--accent, var(--diamond)); }
.rank-card .badge { width: 56px; height: 56px; margin: 6px auto 16px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.rank-card .badge span { font-family: var(--pixel); font-weight: 700; font-size: 22px; color: var(--accent); }
.rank-card h3 { font-family: var(--pixel); font-size: 22px; margin: 0 0 4px; letter-spacing: .5px; }
.rank-card .price { font-size: 30px; font-weight: 800; margin: 10px 0 2px; color: var(--text); }
.rank-card .price small { font-size: 15px; font-weight: 600; color: var(--text-mute); }
.rank-card .alt-price { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }
.rank-card .perk { font-size: 14px; color: var(--text-dim); margin: 0 0 20px; min-height: 40px; }
.rank-card.popular { border-color: var(--gold); }
.rank-card .tag { position: absolute; top: 12px; right: -34px; transform: rotate(45deg); background: var(--gold); color: #2a1c00; font-family: var(--pixel); font-size: 10px; font-weight: 700; padding: 4px 40px; letter-spacing: 1px; }

/* ---------- discord band ---------- */
.discord-band { background: linear-gradient(135deg, #1a2150, #0c1430); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; box-shadow: var(--shadow-block); }
.discord-band .ddot { width: 80px; height: 80px; flex: none; background: #5865F2; border-radius: var(--r-lg); display: grid; place-items: center; box-shadow: 0 0 36px rgba(88,101,242,.5); }
.discord-band .dtext { flex: 1; min-width: 240px; }
.discord-band h3 { font-family: var(--pixel); font-size: 26px; margin: 0 0 8px; }
.discord-band p { color: var(--text-dim); margin: 0; }
.discord-band .dstat { display: inline-flex; align-items: center; gap: 8px; color: var(--online); font-weight: 700; margin-left: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-1); border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer .fdesc { color: var(--text-dim); font-size: 14.5px; max-width: 32ch; margin: 0 0 18px; }
.footer h4 { font-family: var(--pixel); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--diamond-bright); }
.foot-ip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 14px; background: var(--panel); font-family: var(--pixel); font-size: 13px; color: var(--cyan); }
.foot-ip button { color: var(--diamond-bright); font-weight: 700; font-size: 12px; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; color: var(--text-dim); transition: all .15s; }
.socials a:hover { color: #fff; border-color: var(--diamond); background: rgba(61,155,255,.12); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--text-mute); font-size: 13.5px; }
.lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang button { padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.lang button.active { background: rgba(61,155,255,.18); color: var(--diamond-bright); }

/* ---------- floating IP + toast + cookie ---------- */
.float-ip {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: rgba(13,23,48,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 9px 9px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.float-ip.show { transform: translateY(0); }
.float-ip .fi-ip { font-family: var(--pixel); font-weight: 700; color: var(--cyan); font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 160%);
  background: var(--panel-hi); border: 1px solid var(--diamond); color: var(--text);
  padding: 14px 24px; border-radius: var(--r); font-weight: 700; z-index: 80;
  box-shadow: var(--glow-blue); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translate(-50%, 0); }
.cookie {
  position: fixed; left: 22px; bottom: 22px; right: 22px; max-width: 440px; z-index: 70;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.55);
  transition: transform .4s ease, opacity .3s; 
}
.cookie.hide { transform: translateY(150%); opacity: 0; pointer-events: none; }
.cookie h4 { margin: 0 0 8px; font-family: var(--pixel); font-size: 16px; }
.cookie p { margin: 0 0 16px; font-size: 14px; color: var(--text-dim); }
.cookie p a { color: var(--diamond-bright); text-decoration: underline; }
.cookie .row { display: flex; gap: 10px; }

/* ---------- mobile ---------- */
@media (max-width: 940px) {
  .grid-features, .grid-news { grid-template-columns: repeat(2, 1fr); }
  .grid-store { grid-template-columns: repeat(2, 1fr); }
  .players { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-online { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 14px var(--gut); gap: 2px; margin: 0;
  }
  .nav-links.open a { padding: 12px 14px; }
  .section { padding: 64px 0; }
  .grid-features, .grid-news, .grid-store { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ip-card .label { display: none; }
  .float-ip { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
}
