/* NIMBUS SMP website. Colors match the server: sky blue on deep night blue. */
:root {
  --bg: #070d1c;
  --bg-2: #0b1530;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(201, 238, 255, 0.12);
  --text: #eaf4ff;
  --muted: #8fa3b8;
  --dark: #5f7590;
  --sky: #3fa9ff;
  --deep: #1e5bff;
  --light: #c9eeff;
  --good: #7ce38b;
  --gold: #ffd166;
  --legend: #ffb547;
  --radius: 18px;
  --max: 1160px;
  --grad: linear-gradient(120deg, #c9eeff 0%, #3fa9ff 45%, #1e5bff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* ---- sky background ---- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(63, 169, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(30, 91, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1838 0%, var(--bg) 55%);
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #cfe8ff, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 320px 40px, #9fd4ff, transparent),
    radial-gradient(1px 1px at 400px 220px, #fff, transparent);
  background-size: 460px 300px;
}
@keyframes twinkle { to { opacity: 0.25; } }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 28, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }
.logo svg { width: 30px; height: 30px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.94rem;
  transition: color 0.2s, background 0.2s;
}
.links a:hover { color: var(--text); background: var(--card); }
.links a.active { color: var(--text); background: rgba(63, 169, 255, 0.14); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 38px; font-size: 1.2rem; cursor: pointer; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  cursor: pointer; transition: transform 0.15s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); background: var(--card-hover); border-color: rgba(201, 238, 255, 0.25); }
.btn.primary {
  background: var(--grad); color: #04122e; border: none;
  box-shadow: 0 10px 30px -10px rgba(63, 169, 255, 0.7);
}
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(63, 169, 255, 0.9); }
.btn.discord { background: #5865f2; border: none; color: #fff; }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 9px 16px; font-size: 0.9rem; border-radius: 12px; }

/* ---- hero ---- */
.hero { position: relative; padding: 110px 0 90px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(63, 169, 255, 0.1); border: 1px solid rgba(63, 169, 255, 0.3);
  color: var(--light); font-size: 0.85rem; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 currentColor; }
.dot.on { background: var(--good); animation: pulse 2s infinite; color: rgba(124, 227, 139, 0.5); }
.dot.off { background: #ff6b81; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7.8rem); font-weight: 900; letter-spacing: 0.06em; line-height: 1;
  margin: 26px 0 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(63, 169, 255, 0.35));
}
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero p.lead b { color: var(--text); font-weight: 600; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ip {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.05rem; cursor: pointer; transition: border-color 0.2s;
}
.ip:hover { border-color: rgba(63, 169, 255, 0.5); }
.ip .copy { padding: 9px 14px; border-radius: 11px; background: var(--grad); color: #04122e; font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.88rem; }
.hero-meta { margin-top: 22px; color: var(--dark); font-size: 0.9rem; }

/* floating clouds */
.clouds { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cloud {
  position: absolute; width: 340px; height: 110px; border-radius: 120px;
  background: radial-gradient(closest-side, rgba(201, 238, 255, 0.10), transparent);
  animation: drift linear infinite; will-change: transform;
}
.cloud.c1 { top: 18%; left: -340px; animation-duration: 70s; }
.cloud.c2 { top: 52%; left: -340px; width: 480px; animation-duration: 95s; animation-delay: -40s; }
.cloud.c3 { top: 78%; left: -340px; width: 260px; animation-duration: 60s; animation-delay: -20s; }
@keyframes drift { to { transform: translateX(calc(100vw + 700px)); } }

/* ---- sections ---- */
section { padding: 80px 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { color: var(--sky); font-weight: 700; letter-spacing: 0.18em; font-size: 0.78rem; text-transform: uppercase; }
.head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.15; margin: 10px 0 14px; font-weight: 800; }
.head p { color: var(--muted); }
.page-head { padding: 90px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 900; line-height: 1.1; margin: 12px 0 14px; }
.page-head h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); transition: transform 0.25s, background 0.25s, border-color 0.25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(63, 169, 255, 0.3); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(63, 169, 255, 0.12); border: 1px solid rgba(63, 169, 255, 0.25); margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: rgba(11, 21, 48, 0.85); padding: 26px; text-align: center; }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 0.88rem; }

/* steps */
.steps { counter-reset: step; }
.step { padding-left: 76px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 24px; top: 26px;
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800;
  background: var(--grad); color: #04122e;
}
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; background: rgba(63, 169, 255, 0.1); padding: 2px 8px; border-radius: 7px; color: var(--light); }

/* ranks */
.rank { display: flex; flex-direction: column; }
.rank .tag { font-weight: 900; letter-spacing: 0.12em; font-size: 1.5rem; margin-bottom: 4px; }
.rank .price { font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 18px; }
.rank .price small { color: var(--muted); font-weight: 500; }
.rank ul { list-style: none; display: grid; gap: 9px; margin-bottom: 4px; }
.rank li { color: var(--muted); font-size: 0.93rem; padding-left: 24px; position: relative; }
.rank li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.rank.hot { border-color: rgba(63, 169, 255, 0.45); background: linear-gradient(180deg, rgba(63, 169, 255, 0.12), var(--card)); }
.rank .ribbon { position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #04122e; }
.vip { color: #8fd8ff; } .mvp { color: #3f9bff; }
.legend { background: linear-gradient(120deg, #d6f3ff, #3fa9ff, #1846d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.creator { background: linear-gradient(120deg, #7fd0ff, #4b8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-tag { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; }

/* crates */
.crate { text-align: center; padding: 34px; }
.crate .box { font-size: 3.6rem; margin-bottom: 8px; filter: drop-shadow(0 10px 30px rgba(63, 169, 255, 0.5)); animation: float 4s ease-in-out infinite; }
.crate.gold .box { filter: drop-shadow(0 10px 30px rgba(255, 181, 71, 0.55)); }
@keyframes float { 50% { transform: translateY(-8px); } }
.crate h3 { font-size: 1.5rem; margin-bottom: 8px; }
.loot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.chip.rare { color: #3fa9ff; border-color: rgba(63, 169, 255, 0.35); }
.chip.epic { color: #b36bff; border-color: rgba(179, 107, 255, 0.35); }
.chip.legendary { color: var(--legend); border-color: rgba(255, 181, 71, 0.35); }
.chip.mythic { color: #ff4f8b; border-color: rgba(255, 79, 139, 0.4); }

/* rules */
.rules { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.rule { display: flex; gap: 18px; align-items: flex-start; }
.rule .n { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: rgba(63, 169, 255, 0.12); color: var(--sky); border: 1px solid rgba(63, 169, 255, 0.25); }

/* banner */
.banner {
  position: relative; border-radius: 26px; padding: 56px 40px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(63, 169, 255, 0.2), rgba(30, 91, 255, 0.12));
  border: 1px solid rgba(63, 169, 255, 0.3);
}
.banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.banner p { color: var(--muted); margin-bottom: 26px; }

/* faq */
details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px 22px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--sky); font-weight: 800; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--dark); font-size: 0.9rem; }
footer .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); opacity: 0;
  background: #0f1f45; border: 1px solid rgba(63, 169, 255, 0.4); padding: 12px 20px; border-radius: 12px;
  font-weight: 600; transition: all 0.3s; z-index: 100; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- phones and tablets ---- */
@media (max-width: 960px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu { display: block; }
  .nav .btn.discord { display: none; }
  .links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px;
    background: rgba(7, 13, 28, 0.97); border-bottom: 1px solid var(--line); display: none;
  }
  .links.open { display: flex; }
  .links a { padding: 12px 14px; }
  .grid.three, .grid.two, .grid.four { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .banner { padding: 40px 22px; }
  .ip { font-size: 0.95rem; padding-left: 16px; }
}

/* ---- launch countdown ---- */
.launch { margin: 46px auto 0; max-width: 620px; padding: 26px; border-radius: 22px; background: rgba(11, 21, 48, 0.85); border: 1px solid rgba(63, 169, 255, 0.28); }
.launch .label { color: var(--sky); font-weight: 700; letter-spacing: 0.18em; font-size: 0.76rem; text-transform: uppercase; }
.launch .date { color: var(--muted); font-size: 0.95rem; margin: 4px 0 18px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timer div { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; }
.timer b { display: block; font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timer span { color: var(--dark); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.live { font-size: 1.4rem; font-weight: 800; color: var(--good); padding: 10px; }
.dot.soon { background: var(--sky); animation: pulse 2s infinite; color: rgba(63, 169, 255, 0.5); }

/* hero logo image */
.hero h1.hero-logo { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; filter: none; margin: 18px auto 10px; line-height: 0; }
.hero-logo img { width: min(760px, 92vw); height: auto; margin: 0 auto; animation: logo-float 6s ease-in-out infinite; will-change: transform; }
@keyframes logo-float { 50% { transform: translateY(-6px); } }

/* ---- news cards ---- */
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(17, 27, 52, 0.9); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(63, 169, 255, 0.35); }
.news-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 9px; font-size: 0.8rem; font-weight: 800; background: #ffb547; color: #2a1600; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.news-date { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 9px; font-size: 0.8rem; font-weight: 800; background: var(--grad); color: #04122e; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.news-badge.static, .news-date.static { position: static; display: inline-block; box-shadow: none; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.news-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.news-body ul, .news-article ul { padding-left: 18px; color: var(--muted); font-size: 0.93rem; display: grid; gap: 4px; margin-bottom: 18px; }
.news-more { margin-top: auto; color: var(--sky); font-weight: 700; font-size: 0.93rem; }
.news-more:hover { color: var(--light); }
.news-article { border-radius: var(--radius); overflow: hidden; background: rgba(17, 27, 52, 0.9); border: 1px solid var(--line); margin-bottom: 26px; scroll-margin-top: 90px; }
.news-article img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-article-body { padding: 26px 30px 30px; }
.news-meta { display: flex; gap: 8px; margin-bottom: 10px; }
.news-article h2 { font-size: 1.7rem; margin-bottom: 12px; }
.news-article p { color: var(--muted); margin-top: 10px; }
.news-article:target { border-color: rgba(63, 169, 255, 0.6); box-shadow: 0 0 0 3px rgba(63, 169, 255, 0.15); }
@media (max-width: 760px) { .news-article-body { padding: 20px; } }
