:root {
  --bg: #000;
  --bg-raised: #0b0b0d;
  --bg-input: #121215;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fff;
  --muted: #a1a1aa;
  --dim: #6b6b75;
  --red: #ff2d55;
  --cyan: #00e5ff;
  --ok: #3ddc97;
  --err: #ff5c7a;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Wordmark with RGB split ------------------------------------------------ */
.glitch {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: -1.5px 0 var(--red), 1.5px 0 var(--cyan);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: var(--red); text-shadow: none; }
.glitch::after { color: var(--cyan); text-shadow: none; }
.wordmark { text-decoration: none; }
.wordmark:hover .glitch::before { animation: slice-a 380ms steps(2) 1; }
.wordmark:hover .glitch::after { animation: slice-b 380ms steps(2) 1; }
.glitch-sm { font-size: 24px; }

@keyframes slice-a {
  0%   { opacity: .9; clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
  50%  { opacity: .9; clip-path: inset(55% 0 20% 0); transform: translate(3px, 0); }
  100% { opacity: 0; }
}
@keyframes slice-b {
  0%   { opacity: .9; clip-path: inset(65% 0 5% 0); transform: translate(3px, 0); }
  50%  { opacity: .9; clip-path: inset(15% 0 55% 0); transform: translate(-3px, 0); }
  100% { opacity: 0; }
}

/* Nav --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 150ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-social { display: inline-flex; width: 20px; height: 20px; }
.nav-social svg { width: 100%; height: 100%; }

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(0, 229, 255, 0.07), transparent 70%),
    radial-gradient(500px 260px at 70% 70%, rgba(255, 45, 85, 0.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.lede { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--muted); }

/* Feed form */
.feed-form { margin-top: 36px; max-width: 560px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.feed-row { display: flex; gap: 10px; }
input, textarea {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); }
.feed-row input { font-family: var(--mono); font-size: 13.5px; }
textarea { resize: vertical; min-height: 110px; }
.feed-form[data-state="error"] input { border-color: var(--err); }

.btn {
  position: relative;
  flex: none;
  display: inline-grid; place-items: center;
  font: 600 15px/1 var(--body);
  border-radius: var(--radius);
  padding: 0 22px; height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn > span { grid-area: 1 / 1; transition: opacity 120ms ease; }
.btn-busy { opacity: 0; }
form[aria-busy="true"] .btn-label { opacity: 0; }
form[aria-busy="true"] .btn-busy { opacity: 1; }
form[aria-busy="true"] .btn { cursor: progress; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #e6e6e6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }

.status { min-height: 24px; margin-top: 12px; font-size: 14px; }
.status:empty { min-height: 0; margin-top: 0; }
.status.is-ok { color: var(--ok); }
.status.is-error { color: var(--err); }
.help { margin-top: 14px; font-size: 13.5px; color: var(--dim); }
.help em { font-style: normal; color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Discord preview */
.preview {
  margin: 0;
  background: #313338;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px -30px rgba(0, 229, 255, 0.18), 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  font-family: "gg sans", var(--body);
}
.preview-bar {
  display: flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-weight: 600; font-size: 15px; color: #f2f3f5;
}
.hash { color: #80848e; font-size: 20px; font-weight: 400; }
.msg { display: flex; gap: 14px; padding: 18px 16px 6px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.msg-head strong { color: #f2f3f5; font-weight: 600; }
.tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 4px; border-radius: 3px; }
.time { color: #949ba4; font-size: 12px; margin-left: 2px; }
.embed {
  margin-top: 6px;
  background: #2b2d31;
  border-left: 4px solid var(--cyan);
  border-radius: 4px;
  padding: 10px 14px 12px;
  max-width: 400px;
  font-size: 14px; color: #dbdee1; line-height: 1.45;
}
.embed-kicker { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--red); margin: 4px 0 8px; }
.embed-title { font-weight: 600; color: #00a8fc; margin-bottom: 4px; }
.embed-text b { color: #fff; }
.embed-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin-top: 10px; font-size: 13px; }
.embed-meta span:first-child { color: #b5bac1; font-weight: 600; }
.preview figcaption { padding: 12px 16px 16px; font-size: 13px; color: #949ba4; }
.preview figcaption a { color: #c9cdfb; }

/* Sections ---------------------------------------------------------------- */
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.how { padding: 88px 0; border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font: 500 13px/1 var(--mono); color: var(--cyan); }
.steps li:nth-child(2) .step-num { color: var(--text); }
.steps li:nth-child(3) .step-num { color: var(--red); }
.steps h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; }

.panel-section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.panel-section + .panel-section { border-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.split-copy p { margin-top: 16px; color: var(--muted); max-width: 26em; }

.panel {
  display: grid; gap: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.field > span { color: #d4d4d8; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-foot .status { margin: 0; }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex: 1; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--dim); font-size: 13px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .how, .panel-section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-social) { display: none; }
  .glitch { font-size: 26px; }
  .feed-row { flex-direction: column; }
  .btn { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .panel-foot { flex-direction: column-reverse; align-items: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .wordmark:hover .glitch::before, .wordmark:hover .glitch::after { animation: none; }
  .btn:active { transform: none; }
}
