/* Landing page. Colours and fonts match the game (game/style.css). */

:root {
  --bg: #0b0d12;
  --bg-2: #12151e;
  --panel: #161a25;
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f2f4f8;
  --muted: rgba(242, 244, 248, 0.64);
  --accent: #ffb020;
  --accent-2: #ff5a3a;
  --gold: #ffd34d;
  --display: 'Bungee', Impact, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--display);
  color: #2a1600;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe07a 0%, var(--accent) 100%);
  border-radius: 14px;
  box-shadow: 0 6px 0 #b86a00, 0 10px 30px rgba(255, 176, 32, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b86a00, 0 14px 36px rgba(255, 176, 32, 0.45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b86a00, 0 6px 20px rgba(255, 176, 32, 0.3); }
.btn-big { font-size: clamp(26px, 4vw, 36px); padding: 14px 56px; }
.btn-small { font-size: 15px; padding: 8px 18px; box-shadow: 0 4px 0 #b86a00; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-logo { font-family: var(--display); color: var(--gold); text-decoration: none; font-size: 20px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 16px 40px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 176, 32, 0.16) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 95%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.logo {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  transform: rotate(-4deg);
  animation: bob 3s ease-in-out infinite;
}
.logo span {
  display: block;
  background: linear-gradient(180deg, #fff3b0 0%, var(--gold) 40%, var(--accent) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5));
}
.logo-top { font-size: clamp(56px, 10vw, 110px); }
.logo-bottom { font-size: clamp(80px, 15vw, 170px); }

@keyframes bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

.tagline { font-size: clamp(18px, 2.4vw, 24px); margin: 0 0 32px; color: var(--text); }
.tagline b { color: var(--gold); }
.hero-note { color: var(--muted); font-size: 15px; margin: 24px 0 0; }

.hero-bros {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.hero-bros img { width: clamp(64px, 12vw, 130px); margin: 0 -6px; animation: hop 2.4s ease-in-out infinite; }
.hero-bros img:nth-child(2) { animation-delay: 0.3s; }
.hero-bros img:nth-child(3) { animation-delay: 0.6s; }
.hero-bros img:nth-child(4) { animation-delay: 0.9s; }
.hero-bros img:nth-child(5) { animation-delay: 1.2s; }

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------------------------------------------- sections */

.section { max-width: 1120px; margin: 0 auto; padding: 72px 16px; }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  color: var(--gold);
  text-align: center;
  margin: 0 0 40px;
}
.section-title.left { text-align: left; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px;
}
.feature-num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent); }
.feature h3 { margin: 8px 0 6px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.bro {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px 18px 20px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.bro:hover { transform: translateY(-4px); border-color: rgba(255, 176, 32, 0.5); }
.bro img { width: 120px; margin: 0 auto 4px; }
.bro h3 { margin: 0 0 4px; font-size: 18px; }
.bro p { margin: 0; color: var(--muted); font-size: 14px; }
.bro-boss { border-color: rgba(255, 90, 58, 0.5); }
.bro-boss h3 { color: var(--accent-2); }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.mode { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin-bottom: 24px; }
.mode h3 { margin: 0 0 4px; font-size: 22px; }
.mode p { margin: 0; color: var(--muted); }
.mode-soon { border-color: var(--panel-border); opacity: 0.7; }
.badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  vertical-align: middle;
}
.shot { border-radius: 16px; border: 1px solid var(--panel-border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }

.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.key { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; }
.key kbd {
  font-family: var(--body);
  font-weight: 700;
  font-size: 18px;
  background: #e8ecf4;
  color: #151820;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #8a92a4;
}
.key kbd.gold { background: var(--gold); box-shadow: 0 4px 0 #b88a00; }
.key span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- cta + footer */

.cta {
  text-align: center;
  padding: 80px 16px 96px;
  background: radial-gradient(ellipse at center, rgba(255, 176, 32, 0.14) 0%, transparent 65%);
}
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 48px); margin: 0 0 32px; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--panel-border);
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .hero-bros img { animation: none; }
}
