/* ── Variables ── */
:root {
  --bg: #080a0c;
  --surface: #0d0f14;
  --accent: #7c3aed;
  --accent-dim: #4c1d95;
  --text: #e8edf0;
  --muted: #4a5260;
  --border: #1a2030;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* ── Noise grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* ── Background glows ── */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-blob.one {
  width: 600px; height: 600px;
  background: rgba(124, 58, 237, 0.1);
  top: -150px; right: -100px;
}
.glow-blob.two {
  width: 400px; height: 400px;
  background: rgba(124, 58, 237, 0.07);
  bottom: 0; left: -80px;
}

/* ── Decorative grid lines ── */
.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.grid-line {
  border-right: 1px solid rgba(255,255,255,0.025);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(8,10,12,0.85);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-badge {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 5px 12px;
  border-radius: 2px;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Hero ── */
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.eyebrow::before, .eyebrow::after {
  content: '/';
  margin: 0 10px;
  color: var(--accent-dim);
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
h1 .accent { color: var(--accent); display: block; }

.sub {
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: var(--muted);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

/* ── Stats row ── */
.stats {
  margin-top: 80px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s forwards;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  align-self: center;
}

/* ── Scroll cue ── */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 1.4s forwards;
  cursor: pointer;
  text-decoration: none;
}
.scroll-cue span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── Section divider ── */
.section-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── About section ── */
.about {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '//';
  margin-right: 10px;
  color: var(--accent-dim);
}

.about-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 24px;
}
.about-headline em {
  font-style: normal;
  color: var(--accent);
}

.about-intro {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 80px;
}

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 100px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: border-color 0.25s, background 0.25s;
}
.feature:hover {
  border-color: var(--accent-dim);
  background: #10131a;
}
.feature-icon {
  font-size: 22px;
  margin-bottom: 20px;
  display: block;
}
.feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--muted);
}

/* ── How it works ── */
.how-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.how-label::before { content: '//'; margin-right: 10px; color: var(--accent-dim); }

.how-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--text);
  margin-bottom: 60px;
  letter-spacing: 0.02em;
}

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--accent-dim);
  opacity: 0.5;
  line-height: 1;
  min-width: 36px;
}
.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.9;
  color: var(--muted);
}

/* ── Discord mock ── */
.discord-mock {
  background: #1e1f22;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2d35;
  font-family: 'DM Mono', monospace;
}
.dc-header {
  background: #2b2d31;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1a1b1e;
}
.dc-hash { color: #5865f2; font-size: 18px; line-height: 1; }
.dc-channel-name { font-size: 12px; color: #e3e5e8; letter-spacing: 0.05em; }
.dc-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.dc-msg { display: flex; gap: 10px; padding: 6px 8px; border-radius: 4px; }
.dc-msg:hover { background: rgba(255,255,255,0.02); }
.dc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; flex-shrink: 0; margin-top: 2px;
  letter-spacing: 0.03em;
}
.dc-avatar.bot { background: #5865f2; color: #fff; }
.dc-avatar.lw-avatar { background: transparent; padding: 0; overflow: hidden; }
.dc-avatar.lw-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dc-avatar.ck-avatar { background: transparent; padding: 0; overflow: hidden; }
.dc-avatar.ck-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dc-avatar.user { background: var(--accent-dim); color: #fff; }
.dc-name { font-size: 11px; font-weight: 500; margin-bottom: 4px; letter-spacing: 0.05em; }
.dc-name.bot-name { color: #5865f2; }
.dc-name.bot-name .bot-tag {
  font-size: 9px; background: #5865f2; color: white;
  padding: 1px 5px; border-radius: 3px; margin-left: 6px; letter-spacing: 0.08em;
}
.dc-name.user-name { color: var(--accent); }
.dc-text { font-size: 11px; color: #dbdee1; line-height: 1.6; letter-spacing: 0.03em; }
.dc-text p { margin-bottom: 2px; }
.dc-text strong { color: #fff; }
.dc-command { color: #5865f2; letter-spacing: 0.05em; }
.dc-source { font-size: 10px; color: #6d6f78; letter-spacing: 0.04em; margin-bottom: 10px !important; }
.dc-divider { height: 1px; background: #2a2d35; margin: 6px 0; }
.dc-typing {
  padding: 6px 16px 12px; font-size: 10px; color: #6d6f78;
  letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px;
}
.dc-dots span {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: #6d6f78; animation: dot 1.2s infinite;
}
.dc-dots span:nth-child(2) { animation-delay: 0.2s; }
.dc-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  user-select: text;
}
.footer-link {
  color: var(--muted);
  text-decoration: none;
}
.footer-link .lm { color: var(--muted); transition: color 0.2s; }
.footer-link:hover .lm { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 16px 28px; }
  main { padding: 110px 32px 72px; }
  .stats { gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .how-layout { grid-template-columns: 1fr; gap: 40px; }
  .about { padding: 72px 28px; }
}

@media (max-width: 600px) {
  nav { padding: 12px 20px; }
  .nav-logo { font-size: 18px; }
  .nav-badge { font-size: 9px; padding: 4px 10px; letter-spacing: 0.15em; }
  main { padding: 96px 20px 60px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 20px; }
  .eyebrow::before, .eyebrow::after { margin: 0 6px; }
  h1 { font-size: clamp(58px, 18vw, 80px); line-height: 0.88; }
  .sub { font-size: 12px; letter-spacing: 0.06em; margin-top: 24px; max-width: 100%; }
  .stats { flex-direction: column; gap: 0; width: 100%; max-width: 280px; margin-top: 52px; }
  .stat { padding: 20px 0; width: 100%; }
  .stat-num { font-size: 38px; }
  .stat-divider { width: 100%; height: 1px; }
  footer { flex-direction: column; gap: 6px; text-align: center; padding: 20px; font-size: 9px; }
  .features { grid-template-columns: 1fr; }
  .about { padding: 60px 20px; }
  .about-intro { margin-bottom: 52px; }
  .scroll-cue { display: none; }
}

@media (max-width: 380px) {
  h1 { font-size: 52px; }
  .sub { font-size: 11px; }
  .stat-num { font-size: 32px; }
}

/* ── Misc helpers ── */
.white-period { color: #fff; }
.dc-hashtag { color: #7d8590; font-size: 15px; }
.dc-bar { color: #fff; font-weight: 100; font-size: 13px; }

/* ── Discord embed ── */
.dc-embed {
  display: flex;
  margin-top: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #2b2d31;
  border: 1px solid #1e2025;
  max-width: 380px;
}
.dc-embed-pill {
  width: 4px;
  background: var(--accent);
  flex-shrink: 0;
}
.dc-embed-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.dc-embed-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}
.dc-embed-grid {
  display: flex;
  gap: 16px;
}
.dc-embed-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 60px;
}
.dc-embed-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e3e5e8;
}
.dc-embed-val {
  font-size: 11px;
  color: #dbdee1;
  letter-spacing: 0.03em;
}
.dc-embed-gametime {
  color: #b8bec8;
  font-style: italic;
}
.dc-embed-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dc-embed-line-item {
  font-size: 11px;
  color: #dbdee1;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dc-embed-footer {
  font-size: 9px;
  color: #6d6f78;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
