/* SuperBot — marketing site */

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222633;
  --border: #2a2f3f;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --accent: #57f287;
  --gold: #f1c40f;
  --purple: #9b59b6;
  --red: #ed4245;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-card); color: var(--text); }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto;
  height: 500px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.25), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.15);
  color: #aeb8ff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff, #aeb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.stat span { color: var(--muted); font-size: 0.9rem; }

.hero-card {
  background: linear-gradient(160deg, var(--bg-card), #12151e);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.preview-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #2b2d31;
}

.preview-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #1e1f22;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4e5058;
}

.preview-body { padding: 1.25rem; }

.embed-preview {
  background: #313338;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 1rem;
}

.embed-preview h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.embed-preview p { color: #dbdee1; font-size: 0.9rem; }

.game-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

/* Sections */
section { padding: 4rem 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.command-group { margin-bottom: 2rem; }

.command-group h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.cmd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

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

.cmd code {
  color: var(--accent);
  font-weight: 700;
}

.cmd span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.cmd-list-detailed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cmd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
}

.cmd-card .cmd-name {
  margin: 0;
  font-weight: 700;
}

.cmd-card .cmd-name code {
  color: var(--accent);
  font-size: 0.95rem;
}

.cmd-card .cmd-desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cmd-card .cmd-example {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft, #b8bcc8);
  line-height: 1.5;
}

.cmd-card .cmd-example code {
  color: #f5d76e;
  word-break: break-word;
}

.cta {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(155, 89, 182, 0.15));
  border: 1px solid var(--border);
}

.cta h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; }

.legal {
  padding: 3rem 0 5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h1, .legal h2 { color: var(--text); margin: 1.5rem 0 0.75rem; }
.legal p, .legal li { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.nav-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.lang-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-top { padding-top: 3rem; }
.section-spaced { margin-top: 3rem; }
.section-tight { padding: 2rem 0 3rem; }
.cta-spaced { margin: 3rem 0; }
.muted { color: var(--muted); margin-top: 0.5rem; }

.hero-compact { padding: 3.5rem 0 2rem; }
.lead-center { max-width: 56ch; margin: 0 auto; text-align: center; }
.hero-actions-center { justify-content: center; }

.eyebrow-gold {
  background: rgba(241, 196, 15, 0.15);
  color: #f5d76e;
}

.pro-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(241, 196, 15, 0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
}

.pricing-card-featured {
  border-color: rgba(241, 196, 15, 0.45);
  background: linear-gradient(160deg, rgba(241, 196, 15, 0.08), var(--bg-card));
  box-shadow: 0 20px 50px rgba(241, 196, 15, 0.08);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
}

.pricing-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.plan-period {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.plan-features li {
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-features li.muted-line { opacity: 0.65; }
.plan-features code { color: var(--accent); }
.plan-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.plan-note code { color: var(--gold); }

.btn-block { width: 100%; }

.steps {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li { margin-bottom: 1rem; }
.steps strong { color: var(--text); }
.steps code { color: var(--accent); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card-pro {
  border-color: rgba(241, 196, 15, 0.3);
  background: linear-gradient(160deg, rgba(241, 196, 15, 0.06), var(--bg-card));
}

.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.payment-notice {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(241, 196, 15, 0.35);
  background: rgba(241, 196, 15, 0.08);
  color: #f5d76e;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .hero { padding-top: 3rem; }
}

/* Dashboard */
.dashboard-main { padding-bottom: 4rem; }
.dashboard-card {
  max-width: 560px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-toolbar-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.dash-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  min-width: 220px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 5rem;
}
.dash-cat-btn {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}
.dash-cat-btn.active, .dash-cat-btn:hover {
  border-color: var(--brand);
  background: var(--bg-card-hover);
}
.dash-msg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.dash-msg-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.dash-textarea {
  width: 100%;
  margin: 0.75rem 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
  resize: vertical;
}
.dash-msg-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dash-avatar { border-radius: 50%; vertical-align: middle; margin-right: 0.35rem; }
.error-text { color: var(--red); margin-top: 1rem; }
.hidden { display: none !important; }

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.dash-guild-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}
.dash-sidebar-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.dash-guild-list { display: flex; flex-direction: column; gap: 0.35rem; }
.dash-guild-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  color: var(--text);
  cursor: pointer;
}
.dash-guild-item:hover, .dash-guild-item.active {
  background: var(--bg-card-hover);
  border-color: var(--border);
}
.dash-guild-item.active { border-color: var(--brand); }
.dash-guild-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.dash-guild-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 1rem;
}
.dash-guild-name {
  flex: 1;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-guild-tag {
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
}
.dash-workspace { min-width: 0; }
.dash-empty { padding: 2rem 0; text-align: center; }
.dash-main-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dash-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font: inherit;
}
.dash-tab-btn.active, .dash-tab-btn:hover {
  color: var(--text);
  border-color: var(--brand);
}
.dash-tab-panel { min-width: 0; }
.dash-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  max-width: 640px;
}
.dash-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.dash-field > span { font-weight: 600; font-size: 0.92rem; }
.dash-field-locked { opacity: 0.72; }
.dash-hint { margin: 0; font-size: 0.85rem; }
.dash-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-readonly {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}
.dash-readonly-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.dash-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  max-width: 120px;
}
.dash-toggle-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.dash-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}
.dash-level-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.dash-level-role { flex: 1; min-width: 160px; }
.dash-pro-banner { margin: 0 0 1rem; font-size: 0.9rem; }
.dash-form-status { margin-top: 0.75rem; }

@media (max-width: 800px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dash-guild-sidebar { position: static; max-height: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
}
