:root {
  --bg: #090909;
  --panel: #121212;
  --panel-2: #181818;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f6f3ee;
  --muted: #a09b94;
  --accent: #ff5a1f;
  --accent-2: #ff9a3d;
  --green: #62d083;
  --red: #ff6a5f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 90, 31, 0.28), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 154, 61, 0.13), transparent 30%),
    linear-gradient(180deg, #15100d 0%, #090909 42%, #070707 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) .7px, transparent .7px);
  background-size: 26px 26px;
  opacity: .16;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #170703;
  font-weight: 800;
}
.skip:focus { top: 16px; }

.bot-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 58px;
}

.bot-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.bot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
.bot-brand::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--accent), #222 30%, var(--green), #222 72%, var(--accent));
  box-shadow: inset 0 0 0 6px #1d1d1d;
}

.bot-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}
.bot-links a {
  flex: none;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.bot-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}
.bot-links a.on {
  color: var(--ink);
  background: rgba(255, 90, 31, 0.14);
}

.bot-hero {
  min-height: min(620px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.36fr);
  gap: 24px;
  align-items: center;
  padding: 46px 0 28px;
}
.bot-hero-copy {
  max-width: 820px;
}
.eyebrow,
.bot-index {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bot-hero h1 {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(46px, 8vw, 106px);
  line-height: 0.94;
  letter-spacing: 0;
}
.lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.bot-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 90, 31, 0.12), transparent 42%),
    rgba(18, 18, 18, 0.72);
  box-shadow: var(--shadow);
}
.hero-visual {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 28%, rgba(98, 208, 131, .22), transparent 28%),
    radial-gradient(circle at 20% 14%, rgba(255, 90, 31, .2), transparent 32%),
    rgba(18, 18, 18, .74);
  box-shadow: var(--shadow);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-visual::before {
  width: 220px;
  height: 220px;
  right: -56px;
  top: -42px;
  border: 26px solid rgba(255, 90, 31, .2);
  animation: spin-slow 14s linear infinite;
}
.hero-visual::after {
  width: 120px;
  height: 120px;
  right: 54px;
  top: 86px;
  border: 18px solid rgba(98, 208, 131, .22);
  animation: float-card 4s ease-in-out infinite;
}
.hero-visual > * { position: relative; z-index: 1; }
.hero-visual strong {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 30px;
  line-height: 1;
}
.hero-visual span:not(.beta-badge) {
  color: var(--muted);
}
.visual-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.bot-orbit {
  width: 86px;
  height: 86px;
  margin-bottom: auto;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #242424 46%, var(--green));
  box-shadow: inset 0 0 0 12px rgba(0,0,0,.32), 0 18px 46px rgba(255,90,31,.2);
  animation: float-card 3.2s ease-in-out infinite;
}
.beta-badge {
  justify-self: start;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.beta-badge.approved { color: #caffd8; background: rgba(98, 208, 131, .14); }
.beta-badge.pending { color: #ffe0b8; background: rgba(255, 154, 61, .14); }
.beta-badge.denied { color: #ffc8c3; background: rgba(255, 106, 95, .14); }
.bot-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.bot-user img,
.bot-guild img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #190702;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(255, 90, 31, 0.22);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  box-shadow: none;
}
.btn.discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 16px 36px rgba(88, 101, 242, 0.2);
}
.btn.tiny {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}
.btn.big {
  min-height: 58px;
  padding: 16px 24px;
  font-size: 16px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.bot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -16px 0 36px;
}
.bot-stat,
.card,
.bot-module,
.bot-command {
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.76);
  box-shadow: var(--shadow);
}
.bot-stat {
  padding: 18px;
  border-radius: 20px;
}
.bot-stat strong {
  display: block;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 32px;
  line-height: 1;
}
.bot-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.bot-section {
  padding: 44px 0 18px;
}
.section-title {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}
.prose {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 154, 61, 0.28);
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.1);
  color: #ffd2b8;
}
.note.ok {
  border-color: rgba(98, 208, 131, .34);
  background: rgba(98, 208, 131, .12);
  color: #caffd8;
}
.note.bad {
  border-color: rgba(255, 106, 95, .34);
  background: rgba(255, 106, 95, .12);
  color: #ffc8c3;
}

.bot-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.bot-module {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 31, 0.14), transparent 42%),
    rgba(18, 18, 18, 0.82);
}
.bot-module h3,
.bot-module p {
  margin: 0;
}
.bot-module p {
  color: var(--muted);
  line-height: 1.45;
}
.bot-module-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
  color: #190702;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.card {
  border-radius: 24px;
}
.pad {
  padding: 22px;
}
.bot-setup,
.bot-layout {
  scroll-margin-top: 96px;
}
.bot-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 18px;
}
.bot-guild-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.bot-guild {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}
.bot-guild:hover,
.bot-guild.on {
  border-color: rgba(255, 90, 31, 0.7);
  background: rgba(255, 90, 31, 0.1);
}
.bot-guild strong,
.bot-guild small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-guild small { color: var(--muted); }
.bot-guild-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #190702;
  font-weight: 900;
  font-size: 12px;
}
.bot-invite {
  width: 100%;
}

.bot-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.bot-ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 16px;
  align-items: start;
}
.bot-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bot-field {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  font-weight: 800;
}
.bot-field small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.72);
  padding: 12px 13px;
  outline: none;
}
textarea {
  min-height: 128px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: rgba(255, 90, 31, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}
input[type="color"] {
  height: 46px;
  padding: 5px;
}
.bot-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-weight: 900;
}
.bot-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.bot-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--ticket-color, #5865f2) 65%, var(--line));
  background:
    linear-gradient(90deg, var(--ticket-color, #5865f2) 5px, transparent 5px),
    rgba(5, 5, 5, 0.62);
}
.bot-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.bot-code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.64);
  overflow-wrap: anywhere;
}
.bot-command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.bot-command {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
}
.bot-command code {
  flex: none;
  color: var(--accent-2);
  font-weight: 900;
}
.bot-command span {
  color: var(--muted);
  line-height: 1.35;
}
.beta-card {
  display: grid;
  gap: 14px;
}
.beta-form {
  display: grid;
  gap: 12px;
}
.reveal {
  animation: reveal-up .58s cubic-bezier(.22, 1, .36, 1) both;
}
.reveal:nth-child(2) { animation-delay: .04s; }
.reveal:nth-child(3) { animation-delay: .08s; }
.reveal:nth-child(4) { animation-delay: .12s; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
  .bot-topbar {
    grid-template-columns: 1fr auto;
  }
  .bot-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .bot-hero,
  .hero-visual,
  .bot-layout,
  .bot-ticket-layout,
  .bot-stats,
  .bot-command-list {
    grid-template-columns: 1fr;
  }
  .bot-hero {
    min-height: auto;
    padding-top: 38px;
  }
  .hero-visual {
    min-height: 260px;
  }
  .bot-module-grid,
  .bot-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bot-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }
  .bot-module-grid,
  .bot-form-grid {
    grid-template-columns: 1fr;
  }
  .bot-hero h1 {
    font-size: 40px;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .bot-topbar {
    border-radius: 18px;
  }
}
