@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --blue:        #5bb8f5;
  --blue-light:  #a8d8f8;
  --blue-dark:   #1e6fa8;
  --blue-glow:   rgba(91,184,245,0.25);
  --blue-faint:  rgba(91,184,245,0.08);

  --bg:          #0f1923;
  --bg2:         #162230;
  --bg3:         #1c2e3f;
  --card:        #192840;
  --card-border: rgba(91,184,245,0.18);

  --text:        #ddeeff;
  --text-muted:  #7aa3c0;
  --accent:      #f5c842;
  --green:       #57e57b;
  --red:         #f55b5b;
  --white:       #ffffff;

  --dirt-top:    #7fb238;
  --dirt-side:   #8b6040;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); }

/* ═══ NAVBAR ═══ */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,25,35,0.94);
  border-bottom: 2px solid rgba(91,184,245,0.2);
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
}
nav::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.4;
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 8px rgba(91,184,245,0.4));
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-faint);
}

/* ═══ HERO ═══ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 96px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 25%, rgba(91,184,245,0.07) 0%, transparent 70%),
    linear-gradient(180deg, #090f18 0%, #0f1923 55%, #0c1a10 100%);
}

/* Subtle pixel grid */
.block-grid {
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Floating diamond particles */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--blue);
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { opacity: 0;   transform: translateY(0) scale(1); }
  15%  { opacity: 0.6; }
  85%  { opacity: 0.2; }
  100% { opacity: 0;   transform: translateY(-95vh) scale(0.5); }
}

/* Minecraft ground row */
.mc-ground {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  display: flex;
  z-index: 2;
}
.mc-block-unit {
  flex: 1;
  height: 60px;
  position: relative;
}
.mc-block-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 14px;
  background: linear-gradient(180deg, #7fb238, #5a9020);
  border-top: 2px solid #9fd048;
}
.mc-block-unit::after {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    180deg,
    #6b4423 0px, #6b4423 14px,
    #5a3a1d 14px, #5a3a1d 15px
  );
  border-left: 1px solid rgba(0,0,0,0.15);
}

.hero-content { position: relative; z-index: 3; }

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(26px, 5.5vw, 58px);
  color: var(--blue);
  line-height: 1.5;
  letter-spacing: 3px;
  margin-bottom: 16px;
  filter:
    drop-shadow(4px 4px 0 rgba(0,0,20,0.95))
    drop-shadow(0 0 32px rgba(91,184,245,0.35));
  animation: hero-in 0.7s ease both;
}
.hero-title span { color: var(--white); }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fade-up 0.7s 0.15s ease both;
}

/* IP box — inventory slot style */
.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.55);
  border: 2px solid #3e4e5a;
  border-top-color: #5a6e7a;
  border-left-color: #5a6e7a;
  padding: 14px 26px;
  margin-bottom: 36px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--blue-light);
  letter-spacing: 1px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.ip-box:hover {
  border-color: var(--blue);
  background: rgba(91,184,245,0.08);
  color: var(--blue);
  filter: drop-shadow(0 0 14px rgba(91,184,245,0.28));
}
.ip-box .ip-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 0;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.3s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ BUTTONS ═══ */

.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 14px 28px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.1s;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
  border: 2px solid var(--blue);
  border-bottom-color: #0d3d65;
  border-right-color: #0d3d65;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.7);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}
.btn-primary:hover {
  background: var(--blue);
  color: #000;
  filter: drop-shadow(0 0 12px rgba(91,184,245,0.5));
}

.btn-secondary {
  background: #1e3326;
  color: var(--green);
  border: 2px solid var(--green);
  border-bottom-color: #0f1f14;
  border-right-color: #0f1f14;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.7);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}
.btn-secondary:hover {
  background: #2a4a34;
  filter: drop-shadow(0 0 10px rgba(87,229,123,0.3));
}

/* ═══ BLOCK DIVIDER ═══ */

.block-divider {
  width: 100%;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    #5a3a1d 0px, #5a3a1d 31px,
    #4a2e14 31px, #4a2e14 32px
  );
  border-top: 3px solid #7fb238;
  border-bottom: 2px solid #2a1a08;
}

/* ═══ SECTION LAYOUT ═══ */

.section-wrap { padding: 90px 40px; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--blue);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.75;
}
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.2vw, 20px);
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 52px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.8);
  line-height: 1.6;
}
.section-title .hl { color: var(--blue); }

/* ═══ ABOUT ═══ */

#about { background: var(--bg); }

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

.about-text p {
  font-size: 18px;
  line-height: 1.85;
  color: #8fb8d4;
  margin-bottom: 20px;
}
.about-text strong { color: var(--blue-light); font-weight: 800; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  background: var(--blue-faint);
  border: 1px solid rgba(91,184,245,0.22);
  color: var(--blue-light);
  letter-spacing: 0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 22px 16px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}
.feature-card:hover {
  border-color: rgba(91,184,245,0.45);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--blue-light);
  margin-bottom: 7px;
  letter-spacing: 1px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ═══ RULES ═══ */

#rules { background: var(--bg2); }

.rules-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }

.rule-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.rule-card:hover {
  border-color: rgba(91,184,245,0.45);
  transform: translateX(5px);
}

.rule-num-block {
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  border-right: 2px solid rgba(91,184,245,0.15);
}

.rule-body { padding: 18px 24px; }
.rule-body h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--blue-light);
  margin-bottom: 9px;
  letter-spacing: 1px;
}
.rule-body p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

/* ═══ GALLERY ═══ */

#gallery { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--card-border);
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.2s, transform 0.15s;
  min-height: 160px;
}
.gallery-item.wide {
  grid-column: span 2;
  min-height: 220px;
}
.gallery-item:hover {
  border-color: var(--blue);
  transform: scale(1.015);
  z-index: 2;
  box-shadow: 0 0 20px rgba(91,184,245,0.2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-placeholder {
  width: 100%; height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(91,184,245,0.13);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1px;
}
.gallery-placeholder .ph-icon { font-size: 32px; opacity: 0.18; }

.gallery-item:nth-child(1) .gallery-placeholder { background: linear-gradient(135deg, #0e2235, #0f1923); }
.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #0e2a1a, #0c1810); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #251c0e, #1a1208); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #1a0e25, #100a18); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #0e2030, #0a1520); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #1a1a0e, #111008); }

.gallery-hover-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-hover-label { opacity: 1; }
.gallery-hover-label span {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--white);
  letter-spacing: 1px;
}

.gallery-note {
  text-align: center;
  margin-top: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #2a4a60;
  letter-spacing: 1px;
}

/* ═══ DOWNLOAD ═══ */

#download { background: var(--bg2); }

.download-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.pack-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mc-pack-box {
  width: 148px; height: 148px;
  animation: bob 3.2s ease-in-out infinite;
  position: relative;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}
.pack-face {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #2a90d4 0%, #1766a0 55%, #0e4070 100%);
  border: 3px solid #0a2e50;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    6px 6px 0 rgba(0,0,0,0.5),
    inset 0 0 0 8px rgba(255,255,255,0.03);
}
.pack-face::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255,255,255,0.08);
}
.pack-face-icon {
  font-size: 52px;
  filter: drop-shadow(0 0 14px rgba(91,184,245,0.7));
}

.pack-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--blue-light);
  letter-spacing: 2px;
  opacity: 0.7;
  text-align: center;
}

.download-info h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.6;
  letter-spacing: 1px;
}
.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.mbadge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.5px;
  border-radius: 2px;
}
.mb-blue { background: var(--blue-faint); color: var(--blue-light); border: 1px solid rgba(91,184,245,0.25); }
.mb-green { background: rgba(87,229,123,0.07); color: var(--green); border: 1px solid rgba(87,229,123,0.22); }

.install-steps { margin-bottom: 32px; }
.install-steps h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.istep {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.istep-num {
  width: 26px; height: 26px;
  background: var(--blue-dark);
  border: 1px solid rgba(91,184,245,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
}
.istep p { font-size: 16px; color: var(--text-muted); line-height: 1.55; padding-top: 3px; }

/* ═══ FOOTER ═══ */

footer {
  background: #080e17;
  border-top: 2px solid rgba(91,184,245,0.1);
  padding: 48px 40px;
  text-align: center;
}
.footer-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(91,184,245,0.3));
}
.footer-logo span { color: var(--white); }

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: #2a4a60;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

footer p { font-size: 13px; color: #1e3045; margin-bottom: 4px; }

/* ═══ TOAST ═══ */

.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--blue-dark);
  color: var(--white);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 12px 22px;
  border: 2px solid var(--blue);
  box-shadow: 0 0 20px rgba(91,184,245,0.3);
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2);
  letter-spacing: 1px;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .download-layout { grid-template-columns: 1fr; text-align: center; }
  .meta-row { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section-wrap { padding: 60px 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}