:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #161616;
  --border: #222222;
  --accent: #e8001c;
  --accent-2: #ff2a44;
  --glow: rgba(232, 0, 28, 0.45);
  --text: #ffffff;
  --muted: #888888;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, .logo, .btn, .app-logo, .eyebrow { font-family: 'Rajdhani', sans-serif; }
.x { color: var(--accent); }
.muted { color: var(--muted); }

#bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.55; }

/* radial glow behind hero */
body::before {
  content: '';
  position: fixed;
  top: -20%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 0, 28, 0.16), transparent 60%);
  z-index: -1; pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 24px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 12px 34px -6px var(--glow); }
.btn-ghost { background: transparent; }
.ico { font-size: 1.05rem; }

/* Discord button (blurple) */
.btn-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; box-shadow: 0 10px 30px -8px rgba(88, 101, 242, 0.55); }
.btn-discord svg { width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---------- logo ---------- */
.logo { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--text); text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.2rem;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 0.7rem 2.2rem;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 7rem 2.2rem 4rem; max-width: 1240px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; width: 100%; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
}
.hero-title { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: 0.01em; }
.hero-sub { color: var(--muted); font-size: 1.15rem; margin-top: 1.3rem; max-width: 30rem; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-meta { color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; }
.hero-meta .up { color: var(--text); }

/* ---------- hero app mockup ---------- */
.hero-app { position: relative; perspective: 1400px; }
.app {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 60px -20px var(--glow);
  transform: rotateY(-9deg) rotateX(3deg); transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.hero-app:hover .app { transform: rotateY(-3deg) rotateX(1deg); }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.8rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.app-logo { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #333; display: block; }
.app-dots i.r { background: var(--accent); }
.app-main { display: grid; grid-template-columns: 120px 1fr; min-height: 280px; }
.app-side { background: var(--surface-2); border-right: 1px solid var(--border); padding: 0.7rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.nav-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--muted); padding: 0.45rem 0.8rem; position: relative; }
.nav-item i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; display: block; opacity: 0.7; }
.nav-item.active { color: #fff; }
.nav-item.active i { border-color: var(--accent); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.nav-item .d { background: var(--accent); border-color: var(--accent); }
.nav-user { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--muted); padding: 0.6rem 0.8rem; border-top: 1px solid var(--border); }
.nav-user i { width: 18px; height: 18px; border-radius: 4px; background: rgba(232,0,28,0.25); border: 1px solid var(--accent); display: block; }
.app-content { padding: 0.9rem; }
.app-h { font-family: 'Rajdhani'; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.7rem; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.g { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; padding-bottom: 0.5rem; }
.g .cov { display: block; height: 52px; }
.c1 { background: linear-gradient(135deg, #ff2a44, #7a0010); }
.c2 { background: linear-gradient(135deg, #2a6cff, #06133a); }
.c3 { background: linear-gradient(135deg, #b026ff, #2a0640); }
.c4 { background: linear-gradient(135deg, #16c79a, #052b22); }
.g b { display: block; font-size: 0.72rem; padding: 0.4rem 0.5rem 0.1rem; }
.g em { display: block; font-size: 0.62rem; color: var(--muted); padding: 0 0.5rem; font-style: normal; }
.g .cta { display: block; margin: 0.4rem 0.5rem 0; font-size: 0.62rem; text-align: center; background: var(--accent); color: #fff; border-radius: 4px; padding: 0.25rem; font-weight: 600; }

.toast {
  position: absolute; right: -10px; bottom: -18px;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 8px;
  padding: 0.6rem 0.9rem; box-shadow: 0 0 30px -6px var(--glow);
  animation: floaty 3.5s ease-in-out infinite;
}
.toast .t-ic { font-size: 1.4rem; }
.toast b { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.toast em { font-style: normal; font-size: 0.82rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 6rem 2.2rem; }
.section-title { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 0.7rem; font-size: 1.1rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.feature:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 16px 40px -16px var(--glow); }
.f-ic { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(232,0,28,0.08); border: 1px solid rgba(232,0,28,0.3); margin-bottom: 1.2rem; }
.f-ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); }

/* ---------- shots ---------- */
.shots { margin-top: 3rem; max-width: 920px; margin-inline: auto; }
.shot-frame { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); }
.shot-bar { display: flex; gap: 7px; padding: 0.6rem 0.9rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.shot-bar span.r { background: var(--accent); }
.shot-track { position: relative; aspect-ratio: 16/9; }
.shot-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0c0c0c; opacity: 0; transition: opacity 0.5s ease; }
.shot-track img.active { opacity: 1; }
.shot-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.shot-dots button { width: 10px; height: 10px; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.shot-dots button.active { background: var(--accent); transform: scale(1.2); }

/* ---------- updates ---------- */
.update { text-align: center; max-width: 720px; margin: 0 auto; }
.glow { border-color: var(--accent); box-shadow: 0 0 60px -18px var(--glow); }
.u-ic { font-size: 3rem; margin-bottom: 0.8rem; }
.update h2 { font-size: 2rem; margin-bottom: 0.7rem; }
.update p { color: var(--muted); }

/* ---------- download ---------- */
.download { text-align: center; }
.dl-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.dl-meta { color: var(--muted); margin-top: 1.3rem; font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 2.2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1140px; margin: 0 auto; }
.footer .logo { font-size: 1.1rem; }
.footer-links { display: flex; gap: 1.2rem; align-items: center; }
.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a.muted:hover { color: var(--text); }

/* Community / Discord CTA */
.community .card {
  text-align: center; max-width: 640px; margin: 0 auto;
  border-color: #5865F2;
  box-shadow: 0 0 60px -18px rgba(88, 101, 242, 0.5);
}
.community .d-ic { color: #5865F2; display: inline-flex; }
.community .d-ic svg { width: 56px; height: 56px; fill: currentColor; }
.community h2 { font-size: 2rem; margin: 0.6rem 0; }
.community p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-app { order: -1; }
  .app { transform: none; }
  .hero { padding-top: 6rem; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 600px) {
  .nav { padding: 0.8rem 1.2rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 4rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast { animation: none; }
}
