/* Reaper Softwares — static docs site */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --border: #2a2a38;
  --text: #e8e8ed;
  --text-muted: #8888a0;
  --accent: #dc2626;
  --accent-glow: rgba(220, 38, 38, 0.25);
  --success: #22c55e;
  --warning: #f59e0b;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 { width: 500px; height: 500px; top: -200px; right: -100px; background: var(--accent-glow); }
.bg-glow-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; background: rgba(100,30,30,.15); }

.container { width: min(1100px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em; }
.logo-accent { color: var(--accent); }

.nav { display: flex; gap: .25rem; }

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s, background .2s;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--accent); }

.auth-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--success);
  background: rgba(34,197,94,.1);
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.25);
}

.auth-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.main { flex: 1; position: relative; z-index: 1; padding-bottom: 4rem; }

/* Hero */
.hero { padding: 5rem 0 4rem; }

.hero-badge {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: .95;
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
}

.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: #ef4444; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); margin-top: .5rem; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: .04em; margin-bottom: 1.5rem; }
.section-cta { margin-top: 1.5rem; }
.section-cta a { color: var(--accent); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  border-top: 3px solid var(--accent, var(--accent));
}

.product-card:hover {
  border-color: var(--accent, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.product-icon { font-size: 1.5rem; color: var(--accent, var(--accent)); }
.product-card h3 { font-size: 1rem; font-weight: 600; }
.product-card p { font-size: .85rem; color: var(--text-muted); flex: 1; }
.product-link { font-size: .8rem; color: var(--accent); font-weight: 500; }
.product-card-sm { padding: 1rem; }

/* Homepage product showcase */
.products-showcase .section-title { margin-bottom: .35rem; }

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.products-sub {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 420px;
}

.products-count {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}

.products-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.product-tile {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s;
}

.product-tile:hover {
  border-color: rgba(220,38,38,.45);
  background: #181820;
}

.product-tile:hover::before { opacity: 1; }

.product-tile--featured {
  grid-column: span 2;
  padding: 1.5rem 1.35rem;
  border-color: rgba(220,38,38,.25);
  background: linear-gradient(160deg, #1a1214 0%, var(--bg-card) 45%);
}

.product-tile--featured .product-tile-name {
  font-size: 1.35rem;
}

.product-tile--featured .product-tag {
  font-size: .8rem;
  padding: .35rem .55rem;
}

.product-tile--spoofer {
  grid-column: span 1;
}

.product-tile--spoofer:nth-last-child(1) {
  grid-column: span 1;
}

.product-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}

.product-tag {
  font-family: "Consolas", "Courier New", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.25);
  padding: .28rem .45rem;
  border-radius: 4px;
}

.product-tag--muted {
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}

.product-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-live {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34,197,94,.5);
}

.product-tile-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}

.product-tile-meta {
  font-size: .78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  flex: 1;
}

.product-tile-action {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: .65rem;
  position: relative;
  z-index: 1;
  transition: color .2s;
}

.product-tile-action::after {
  content: " →";
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity .2s, transform .2s;
}

.product-tile:hover .product-tile-action {
  color: var(--accent);
}

.product-tile:hover .product-tile-action::after {
  opacity: 1;
  transform: translateX(0);
}

.products-bento--docs {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .products-bento {
    grid-template-columns: 1fr 1fr;
  }
  .product-tile--featured {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .products-bento {
    grid-template-columns: 1fr;
  }
  .product-tile--featured {
    grid-column: span 1;
  }
}

/* Checklist grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.check-item {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.check-item.check-required { border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.05); }
.check-icon { color: var(--success); font-weight: 700; }
.check-item strong { display: block; margin-bottom: .25rem; font-size: .9rem; }
.check-item p { font-size: .82rem; color: var(--text-muted); }

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.docs-sidebar h3 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.docs-nav { display: flex; flex-direction: column; gap: .15rem; }

.docs-nav-link {
  display: block;
  padding: .45rem .65rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.docs-nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.docs-nav-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(220,38,38,.08); }
.docs-nav-sublink { padding-left: 1rem; font-size: .82rem; }
.docs-nav-group {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin: .75rem 0 .35rem;
  padding-left: .65rem;
}

.docs-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: .03em;
  margin-bottom: .75rem;
}

.docs-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 640px; }

.docs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.docs-card h2 { font-size: 1.1rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.docs-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

.badge {
  font-size: .65rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-required { background: rgba(220,38,38,.2); color: #fca5a5; }

.mt-lg { margin-top: 2rem; }

/* Prose / doc content */
.prose h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.doc-section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 1rem; }

.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .75rem; color: var(--text); }
.prose h4 { font-size: .95rem; margin: 1.25rem 0 .5rem; color: var(--text-muted); }

.prose p { margin-bottom: .85rem; color: #c8c8d4; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.25rem; color: #c8c8d4; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); }
.prose code, .prose kbd {
  font-family: "Consolas", monospace;
  font-size: .85em;
  background: rgba(255,255,255,.07);
  padding: .15rem .4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.prose kbd { font-size: .8em; }

.callout {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: .9rem;
  border-left: 3px solid;
}

.callout-important { background: rgba(220,38,38,.1); border-color: var(--accent); color: #fca5a5; }
.callout-warning { background: rgba(245,158,11,.1); border-color: var(--warning); color: #fcd34d; }
.callout a { color: inherit; text-decoration: underline; }

.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: .35rem;
}

.status-dot.green { background: var(--success); }
.status-dot.red { background: var(--accent); }
.status-dot.orange { background: var(--warning); }

ul.checklist { list-style: none; margin-left: 0; }
ul.checklist li::before { content: "☐ "; color: var(--text-muted); }

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, var(--accent));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.product-header-icon { font-size: 2rem; color: var(--accent, var(--accent)); }
.product-header h1 { margin-bottom: .25rem; font-size: 2rem; }
.product-header p { color: var(--text-muted); font-size: .9rem; margin: 0; }

.docs-footer-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.docs-footer-cta p { margin-bottom: 1rem; color: var(--text-muted); }

/* Download page */
.download-section { padding: 3rem 0; }

.download-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.download-section h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: .03em;
  margin-bottom: .75rem;
}

.download-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.step strong { display: block; margin-bottom: .2rem; }
.step p { font-size: .88rem; color: var(--text-muted); }
.step a { color: var(--accent); }

.download-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.download-panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.key-form label {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.key-form input {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  margin-bottom: 1rem;
  transition: border-color .2s;
}

.key-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
  color: #fca5a5;
  font-size: .85rem;
  margin-top: .75rem;
  padding: .65rem;
  background: rgba(220,38,38,.1);
  border-radius: 6px;
}

.download-success { text-align: center; margin-bottom: 1.25rem; }
.success-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  background: rgba(34,197,94,.15);
  color: var(--success);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.download-loading { text-align: center; padding: 2rem 0; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .download-grid { grid-template-columns: 1fr; }
  .download-panel { position: static; }
  .nav-link { padding: .4rem .6rem; font-size: .82rem; }
  .auth-badge { display: none; }
}
