:root {
  --bg: #0d1b2a;
  --surface: #16283b;
  --surface-raised: #1c3349;
  --border: #253d54;
  --accent: #2f8fff;
  --accent-dim: #1a5fc4;
  --text: #eef3f2;
  --text-muted: #8fa3a6;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: #0a0a0a;
}
.brand-mark-sm { width: 22px; height: 22px; border-radius: 6px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.header-nav a:not(.btn) {
  color: var(--text-muted);
}
.header-nav a:not(.btn):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #06131f;
  font-weight: 600;
}
.btn-primary:hover { background: #58a6ff; }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* Flash */
.flash-wrap { padding-top: 16px; }
.flash {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47,143,255,0.22), rgba(47,143,255,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: 46px;
  letter-spacing: -0.5px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 20px 0 32px;
}
.hero-ctas { display: flex; gap: 14px; }

/* Mock discord embed */
.discord-mock {
  background: #1a1d24;
  border: 1px solid #2b2f38;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
}
.discord-mock .msg-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.discord-mock .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover;
  background: #0a0a0a;
}
.discord-mock .author-name { font-weight: 600; color: #fff; }
.discord-mock .author-tag {
  background: #5865f2; color: #fff; font-size: 10px;
  padding: 1px 5px; border-radius: 3px; margin-left: 4px;
}
.discord-mock .embed {
  border-left: 3px solid var(--accent);
  background: #22252d;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
}
.discord-mock .embed h4 { font-size: 15px; color: #fff; margin-bottom: 6px; }
.discord-mock .embed .field-label { color: #7fb2ff; font-weight: 600; font-size: 12px; margin-top: 10px; }
.discord-mock .embed .field-value { color: #c4c6cf; font-size: 13px; }
.discord-mock code {
  background: #2b2e37; padding: 1px 5px; border-radius: 4px; font-size: 12.5px;
}

/* Sections */
section { padding: 72px 0; }
.pricing-section { padding: 72px 0 88px; }
.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 16px; }

/* Pricing */
.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
}
.pricing-toggle a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-toggle a.active {
  background: var(--accent);
  color: #06131f;
  font-weight: 600;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .18s ease, border-color .18s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
}
.plan-card.featured {
  border: 1px solid var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.plan-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 12px 32px rgba(47,143,255,0.18);
}
.plan-card.plan-free {
  border-style: dashed;
}
.plan-card.plan-free:hover {
  border-style: dashed;
}
.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #06131f;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.no-payment-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.plan-card .plan-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }
.plan-tagline { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.plan-card .plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 600; margin: 14px 0 2px; }
.plan-card .plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.plan-body { flex: 1; }
.builds-on {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.plan-feature-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plan-feature-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.plan-feature-list li:first-child { border-top: none; }
.cmd-groups { margin-bottom: 22px; }
.cmd-group { margin-bottom: 14px; }
.cmd-group:last-child { margin-bottom: 0; }
.cmd-group-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.cmd-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmd-chip {
  font-family: monospace;
  font-size: 11.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}
.plan-card.featured .cmd-chip { border-color: #2c4a67; }

/* FAQ */
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 12px 0 0;
  max-width: 62ch;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 46px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Checkout / forms */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pay-method {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 14px;
}
.pay-method strong { display: block; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.pay-value { font-size: 12.5px; color: var(--accent); word-break: break-all; margin-top: 6px; }
.eta-note {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

/* Status table */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.badge-pending { background: #3a2e14; color: #f2b84b; }
.badge-approved { background: #12233a; color: var(--accent); }
.badge-claimed { background: #16283b; color: var(--text-muted); border: 1px solid var(--border); }
.badge-rejected { background: #3a1414; color: #f27b7b; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-inner a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .header-nav { gap: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
