:root {
  /* Core — Cyan brand */
  --accent: #00c2d6;
  --accent-strong: #00a9b9; /* darker cyan */
  --accent-soft: #66e5f1; /* lighter cyan */
  --accent-glow: rgba(0, 194, 214, 0.18);

  /* Dark UI */
  --bg: #090f19; /* deep navy-black */
  --surface: #0f172a; /* slate-900 */
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e6edf3; /* light text */
  --muted: #98a6b3; /* subdued text */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1180px;
  --navH: 72px;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans";
  background: radial-gradient(
      1200px 600px at 100% -10%,
      var(--accent-glow),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at -10% 10%,
      rgba(0, 0, 0, 0.25),
      transparent 55%
    ),
    radial-gradient(
      1000px 600px at 50% 120%,
      rgba(0, 0, 0, 0.25),
      transparent 60%
    ),
    var(--bg);
  padding-top: var(--navH);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative grid overlay */
.grid-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      var(--stroke) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--stroke) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(
    600px 600px at 50% 20%,
    rgba(0, 0, 0, 0.7),
    transparent 70%
  );
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: var(--shadow);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
}
.btn-primary {
  border: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  color: #021015;
  font-weight: 800;
}
.btn-ghost {
  background: transparent;
}
.btn-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: saturate(1.2) blur(12px);
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.85),
    rgba(7, 11, 20, 0.55)
  );
  border-bottom: 1px solid var(--stroke);
}
.nav.is-stuck {
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.92),
    rgba(7, 11, 20, 0.72)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav .container {
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
/* --- BURGER button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.6);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* --- Mobile menu panel --- */
.mobile-menu {
  position: fixed;
  top: var(--navH);
  left: 0;
  right: 0;
  z-index: 9998;
  display: grid;
  gap: 6px;
  padding: 14px 20px 18px;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.98),
    rgba(7, 11, 20, 0.92)
  );
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);

  /* animation state */
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease,
    visibility 0s linear 0.18s;
}
/* Open state */
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.mobile-menu a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid transparent;
}
.mobile-menu a:hover {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
/* prevent background scroll */
body.menu-open {
  overflow: hidden;
}

/* --- Show burger on mobile; hide desktop links --- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.brand-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(8px);
  background: conic-gradient(
    from 210deg,
    var(--accent),
    var(--accent-soft),
    var(--accent)
  );
  transform: scale(1.2);
}
.logo {
  height: 60px;
  width: auto;
  display: block;
}
@media (max-width: 960px) {
  .logo {
    height: 40px;
  }
}

/* icons inside buttons */
.btn .download-icon {
  width: 25px;
  height: 30px;
  flex: 0 0 25px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.btn .discord-icon {
  width: 25px;
  height: 30px;
  flex: 0 0 25px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.svg {
  height: 20px;
  flex: 0 0 25px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.nav a {
  color: white;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Desktop: show full links, hide burger */
@media (min-width: 961px) {
  .nav-links {
    display: flex !important;
  }
  .nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #mobile-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile: hide links, show burger */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex !important;
  }
}

[hidden] {
  display: none !important;
}

/* Hero */
.hero {
  padding: 72px 0 36px;
  position: relative;
}
.headline {
  font-size: clamp(34px, 6.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.headline .grad {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 16px 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-hero {
  display: block;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}
.app-hero::after {
  /* gentle glow like before */
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    420px 220px at 80% 10%,
    rgba(34, 211, 238, 0.12),
    transparent 60%
  );
  pointer-events: none;
}
.app-hero img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(40px);
}
.mock-wrap {
  perspective: 1400px;
  margin-top: 40px;
}

.app-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 24, 0.85),
    rgba(8, 12, 24, 0.45)
  );
  border-bottom: 1px solid var(--stroke);
  pointer-events: none;
  /* three dots */
  mask-image: radial-gradient(6px 6px at 18px 17px, #000 98%, transparent),
    radial-gradient(6px 6px at 34px 17px, #000 98%, transparent),
    radial-gradient(6px 6px at 50px 17px, #000 98%, transparent);
  mask-composite: exclude;
}

/* --- HERO breathing room on mobile --- */
@media (max-width: 1300px) {
  .hero.container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .mock-wrap {
    margin-top: 28px;
  }
  .headline {
    line-height: 1.08;
  }
}

@media (max-width: 400px) {
  .app-hero,
  .mock {
    border-radius: 18px;
  }
}

.sidebar,
.panel {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(10, 16, 30, 0.6);
  backdrop-filter: blur(6px);
  min-height: 220px;
}
.sidebar {
  padding: 14px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--muted);
}
.side-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 194, 214, 0.14), transparent);
}
.icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  color: #021015;
  font-weight: 800;
}
.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #021015;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  font-weight: 800;
}
.panel {
  padding: 16px;
  position: relative;
}
.panel h4 {
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}
.kvs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kv {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.kv .v {
  font-size: 24px;
  font-weight: 900;
}
.kv .k {
  font-size: 12px;
  color: var(--muted);
}

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--stroke);
  scroll-margin-top: var(--navH);
}
.section-title {
  font-size: clamp(24px, 4.8vw, 36px);
  margin: 0 0 10px;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 30px;
}
.features {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  flex-wrap: wrap;
  gap: 16px;
  /* justify-items: center; */
  justify-content: center;
}
.feature {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(10, 16, 30, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.feature {
  flex: 1 1 260px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}
@media (min-width: 1136px) {
  .feature {
    max-width: 270px;
  }
}
.feature .icon {
  margin-inline: auto;
}
.feature h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(10, 16, 30, 0.55);
  position: relative;
  overflow: hidden;
}
.step .num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 46px;
  line-height: 1;
  opacity: 0.08;
  font-weight: 900;
}
.step h4 {
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  color: var(--muted);
}
.download-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 2px);
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: var(--shadow);
}
.download-card h3 {
  margin: 0 0 10px;
}
.dl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
footer {
  padding: 28px 0 60px;
  color: var(--muted);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-wrap .links {
  display: flex;
  gap: 14px;
}
.bmc {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* disabled state for any button/link */
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(10%);
}

/* Responsive */
@media (max-width: 960px) {
  .mock-body {
    grid-template-columns: 1fr;
  }
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .download-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 42px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .reveal {
    transition: none;
  }
}
