/* CheckInBo — shared styles */

:root {
  --color-blurple: #5865f2;
  --color-blurple-dark: #4752c4;
  --color-blurple-light: #7289da;
  --color-bg: #0f1117;
  --color-bg-elevated: #1a1d27;
  --color-bg-card: #222633;
  --color-border: #2e3345;
  --color-text: #e8eaef;
  --color-text-muted: #9ba1b0;
  --color-success: #3ba55d;
  --color-warning: #faa61a;
  --color-danger: #ed4245;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.2s ease;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-blurple-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--color-text-muted); }

.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-blurple), var(--color-blurple-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-blurple-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero */

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-blurple-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin: 0 auto 0.5rem;
}

/* Stats bar */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-blurple-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Section headers */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blurple-light);
  margin-bottom: 0.75rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(88, 101, 242, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* Problem / Solution */

.problem-solution {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ps-block h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ps-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ps-block li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.ps-block li::before {
  content: "→";
  color: var(--color-blurple-light);
  flex-shrink: 0;
}

/* Commands */

.commands-section {
  background: var(--color-bg);
}

.command-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--color-blurple);
  border-color: var(--color-blurple);
  color: #fff;
}

.command-panel {
  display: none;
}

.command-panel.active {
  display: block;
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.command-table th,
.command-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.command-table th {
  background: var(--color-bg-elevated);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.command-table tr:last-child td {
  border-bottom: none;
}

.command-table tr:hover td {
  background: rgba(88, 101, 242, 0.05);
}

.cmd-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(88, 101, 242, 0.15);
  color: var(--color-blurple-light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.scope-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}

.scope-channel {
  background: rgba(59, 165, 93, 0.15);
  color: var(--color-success);
}

.scope-guild {
  background: rgba(250, 166, 26, 0.15);
  color: var(--color-warning);
}

/* Use cases */

.use-cases .card {
  border-left: 3px solid var(--color-blurple);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-blurple);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.step p {
  font-size: 0.9rem;
}

/* CTA */

.cta-section {
  padding: 5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(114, 137, 218, 0.1));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 480px;
  margin: 0 auto;
}

/* Legal pages */

.legal-page {
  padding: 3rem 0 6rem;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.toc a {
  color: var(--color-text-muted);
}

.toc a:hover {
  color: var(--color-blurple-light);
}

/* Footer */

.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */

@media (max-width: 900px) {
  .ps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .command-table {
    display: block;
    overflow-x: auto;
  }

  section {
    padding: 3.5rem 0;
  }
}
