@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --light:       #b2f1ff;
  --mid:         #5555b7;
  --dark:        #03102f;
  --card-bg:     rgba(85, 85, 183, 0.12);
  --card-border: rgba(178, 241, 255, 0.15);
  --text:        #e8f4ff;
  --text-muted:  rgba(232, 244, 255, 0.55);
  --radius:      12px;
  --font-heading: 'Rajdhani', -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Rajdhani', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, .nav-brand span, .commands-category, .section-label {
  font-family: var(--font-heading);
}

/* ── Navigation ─────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(3, 16, 47, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--light); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(178, 241, 255, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #1c2d82 0%, #0d1b5e 40%, #03102f 100%);
}

.hero--community {
  min-height: 580px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(3,10,30,0.6) 45%, #03102f 68%, #03102f 100%),
    url('/assets/jenizarada-banner.png') center top/cover no-repeat;
}

/* scanline overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  padding: 5rem 2rem;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 50px rgba(178, 241, 255, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 30%, var(--light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Sections ────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ── Feature cards ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(178, 241, 255, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.9rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Join button ─────────────────────────────────── */
.btn-join {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 2.5rem;
  background: var(--mid);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(178, 241, 255, 0.25);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-join::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-join:hover {
  background: #6671f5;
  box-shadow: 0 0 24px rgba(102, 113, 245, 0.55);
  transform: translateY(-2px);
}
.btn-join:hover::after { opacity: 1; }

.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border: 1px solid rgba(178, 241, 255, 0.3);
  color: var(--light);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: var(--light);
  color: #fff;
  box-shadow: 0 0 16px rgba(178, 241, 255, 0.2);
}

/* ── Nav join pill ───────────────────────────────── */
.nav-join {
  background: var(--mid);
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-join:hover { background: #6671f5 !important; color: #fff !important; }

/* ── Hero taglines (community page) ──────────────── */
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  margin: 0.5rem 0 0.25rem;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Stats strip ─────────────────────────────────── */
.stats-strip {
  background: rgba(85, 85, 183, 0.18);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s;
  flex-wrap: wrap;
}
.stats-strip-inner:hover { background: rgba(85, 85, 183, 0.25); }
.stats-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light);
}
.stats-strip-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Vibe grid (community about section) ─────────── */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.vibe-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.vibe-card:hover {
  border-color: rgba(178, 241, 255, 0.4);
  transform: translateY(-3px);
}
.vibe-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.vibe-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.5rem;
}
.vibe-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Bot preview grid ────────────────────────────── */
.bot-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.bot-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.2s;
}
.bot-preview-card:hover { border-color: rgba(178, 241, 255, 0.35); }
.bot-preview-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light);
  margin: 0.6rem 0 0.35rem;
}
.bot-preview-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── CTA band ────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 5rem 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(85, 85, 183, 0.25) 0%, transparent 70%),
    var(--dark);
  border-top: 1px solid var(--card-border);
}
.cta-band h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ── Commands ────────────────────────────────────── */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.command-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.command-chip code {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light);
}

.command-chip p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ── Command category labels ─────────────────────── */
.commands-category {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.75rem 0 0.75rem;
}

.commands-category--admin {
  color: var(--light);
}

/* ── Divider ─────────────────────────────────────── */
.divider {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--card-border) 0px,
    var(--card-border) 8px,
    transparent 8px,
    transparent 16px
  );
  margin: 0 2rem;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--light);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── Legal pages ─────────────────────────────────── */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.legal-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin: 2rem 0 0.6rem;
}

.legal-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-wrap ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-wrap ul li { margin-bottom: 0.3rem; }

/* ── Glitch title ────────────────────────────────── */
@keyframes glitch-before {
  0%,  8%, 49%, 57%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
  1%  { clip-path: inset(15% 0 55% 0); transform: translate(-6px, 0); }
  2%  { clip-path: inset(55% 0 15% 0); transform: translate(6px, 0); }
  3%  { clip-path: inset(30% 0 40% 0); transform: translate(-4px, 1px); }
  4%  { clip-path: inset(70% 0 5%  0); transform: translate(5px, -1px); }
  5%  { clip-path: inset(5%  0 70% 0); transform: translate(-5px, 0); }
  6%  { clip-path: inset(45% 0 25% 0); transform: translate(3px, 0); }
  7%  { clip-path: inset(100% 0 0 0);  transform: translate(0); }
  50% { clip-path: inset(20% 0 50% 0); transform: translate(-6px, 0); }
  51% { clip-path: inset(60% 0 10% 0); transform: translate(6px, 0); }
  52% { clip-path: inset(10% 0 65% 0); transform: translate(-4px, 0); }
  53% { clip-path: inset(75% 0 5%  0); transform: translate(4px, 0); }
  54% { clip-path: inset(35% 0 35% 0); transform: translate(-3px, 0); }
  55% { clip-path: inset(100% 0 0 0);  transform: translate(0); }
}
@keyframes glitch-after {
  0%,  8%, 49%, 57%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  1%  { clip-path: inset(55% 0 15% 0); transform: translate(6px, 0); }
  2%  { clip-path: inset(15% 0 55% 0); transform: translate(-6px, 0); }
  3%  { clip-path: inset(75% 0 5%  0); transform: translate(5px, -1px); }
  4%  { clip-path: inset(5%  0 70% 0); transform: translate(-5px, 1px); }
  5%  { clip-path: inset(40% 0 30% 0); transform: translate(4px, 0); }
  6%  { clip-path: inset(25% 0 50% 0); transform: translate(-3px, 0); }
  7%  { clip-path: inset(0 0 100% 0);  transform: translate(0); }
  50% { clip-path: inset(50% 0 20% 0); transform: translate(6px, 0); }
  51% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, 0); }
  52% { clip-path: inset(65% 0 10% 0); transform: translate(5px, 0); }
  53% { clip-path: inset(5%  0 75% 0); transform: translate(-4px, 0); }
  54% { clip-path: inset(30% 0 40% 0); transform: translate(3px, 0); }
  55% { clip-path: inset(0 0 100% 0);  transform: translate(0); }
}
.hero--community h1 {
  position: relative;
}
.hero--community h1::before,
.hero--community h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}
.hero--community h1::before {
  -webkit-text-fill-color: #b2f1ff;
  animation: glitch-before 5s steps(1) infinite;
  opacity: 0.85;
}
.hero--community h1::after {
  -webkit-text-fill-color: #8888ee;
  animation: glitch-after 5s steps(1) infinite;
  opacity: 0.85;
}

/* ── Particles canvas ────────────────────────────── */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Achievement toast ───────────────────────────── */
#achievement-toast {
  position: fixed;
  bottom: 56px;
  right: 20px;
  background: rgba(3, 16, 47, 0.97);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--light);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 300;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
#achievement-toast.show { transform: translateX(0); }
#achievement-toast .toast-icon { font-size: 1.5rem; flex-shrink: 0; }
#achievement-toast .toast-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
#achievement-toast .toast-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Section label blinking cursor ───────────────── */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.section-label::after {
  content: "_";
  margin-left: 2px;
  animation: blink-cursor 1s step-end infinite;
}

/* ── XP scroll bar ───────────────────────────────── */
#xp-bar-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(3, 16, 47, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--card-border);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#xp-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
#xp-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--light);
  flex-shrink: 0;
}
#xp-track {
  flex: 1;
  height: 7px;
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}
#xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mid), var(--light));
  border-radius: 4px;
  transition: width 0.12s ease;
}
#xp-val {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 68px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Hamburger toggle ────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero content cap (all breakpoints) ──────────── */
.hero-content {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Fluid hero heading ──────────────────────────── */
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

/* ── Wide screens (1440px+) ──────────────────────── */
@media (min-width: 1440px) {
  .section { max-width: 1280px; }
  .hero-content { max-width: 900px; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .commands-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ── Tablet (769px – 1024px) ─────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .section { padding: 4rem 2rem; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .vibe-grid { grid-template-columns: repeat(2, 1fr); }
  .bot-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile nav + layout (≤ 768px) ──────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1.25rem;
    flex-wrap: wrap;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 16, 47, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.85rem;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }

  .nav-links a { font-size: 1rem; padding: 0.25rem 0; }

  .nav-join {
    display: inline-block;
    padding: 0.5rem 1rem;
    width: fit-content;
  }

  .hero--community { min-height: 480px; }

  .hero-content { padding: 3.5rem 1.25rem; }

  .hero-tagline { font-size: 1.1rem; }

  .vibe-grid,
  .bot-preview-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 1.25rem; }

  .cta-band { padding: 3.5rem 1.25rem; }

  .btn-join,
  .btn-secondary { width: 100%; text-align: center; }

  .footer-links { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

  #achievement-toast { right: 12px; left: 12px; bottom: 52px; }
}

/* ── Small mobile (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
  .hero-content { padding: 3rem 1rem; }

  .section-title { font-size: 1.6rem; }

  .features-grid { grid-template-columns: 1fr; }

  .commands-grid { grid-template-columns: 1fr; }

  .cta-band h2 { font-size: 1.6rem; }

  .divider { margin: 0 1rem; }

  #xp-label,
  #xp-val { display: none; }
}
