/**
 * BlackRat Builder — frontend styles (theme-compatible glass / red).
 */

:root {
  --brb-bg: #050505;
  --brb-surface: #121212;
  --brb-text: #ffffff;
  --brb-muted: #a1a1aa;
  --brb-red: #ff1744;
  --brb-border: rgba(255, 255, 255, 0.09);
  --brb-radius: 16px;
  --brb-font: Inter, system-ui, sans-serif;
  --brb-display: Manrope, Inter, sans-serif;
}

.brb-hero,
.brb-section,
.brb-card,
.brb-cta,
.brb-features,
.brb-stats,
.brb-faq,
.brb-buttons,
.brb-blog-grid {
  font-family: var(--brb-font);
  color: var(--brb-muted);
  box-sizing: border-box;
}

.brb-hero *,
.brb-section *,
.brb-card *,
.brb-cta *,
.brb-features *,
.brb-stats *,
.brb-faq *,
.brb-buttons *,
.brb-blog-grid * {
  box-sizing: border-box;
}

.brb-hero {
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 23, 68, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--brb-border);
  border-radius: 24px;
  margin: 0 0 1.5rem;
}

.brb-eyebrow {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brb-muted);
  margin: 0 0 0.75rem;
}

.brb-title {
  font-family: var(--brb-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brb-text);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.brb-desc {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.brb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.brb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brb-btn:hover {
  transform: translateY(-1px);
}

.brb-btn--primary {
  background: var(--brb-red);
  color: #fff !important;
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.25);
}

.brb-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brb-border);
  color: var(--brb-text) !important;
}

.brb-section {
  padding: 1.5rem;
  border-radius: var(--brb-radius);
  margin: 0 0 1.5rem;
  border: 1px solid var(--brb-border);
}

.brb-section--glass-1 { background: rgba(255, 255, 255, 0.025); }
.brb-section--glass-2 { background: rgba(255, 255, 255, 0.045); }
.brb-section--glass-3 {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 23, 68, 0.2);
}

.brb-card {
  padding: 1.5rem;
  border-radius: var(--brb-radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--brb-border);
  margin: 0 0 1.25rem;
}

.brb-card__title {
  font-family: var(--brb-display);
  font-weight: 800;
  color: var(--brb-text);
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.brb-card__body {
  margin: 0;
  line-height: 1.7;
}

.brb-cta {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 23, 68, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 23, 68, 0.28);
  margin: 1.5rem 0;
}

.brb-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.brb-feature {
  padding: 1.15rem;
  border-radius: var(--brb-radius);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--brb-border);
}

.brb-feature__title {
  color: var(--brb-text);
  font-weight: 700;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.brb-feature__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.brb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.brb-stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: var(--brb-radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--brb-border);
}

.brb-stat__value {
  display: block;
  font-family: var(--brb-display);
  font-weight: 800;
  color: var(--brb-red);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brb-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--brb-muted);
}

.brb-faq {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.brb-faq__item {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #0d0d0d;
  border: 1px solid var(--brb-border);
}

.brb-faq__q {
  margin: 0 0 0.4rem;
  color: var(--brb-text);
  font-weight: 700;
  font-size: 1rem;
}

.brb-faq__a {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.brb-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 0 0 1.5rem;
}

.brb-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--brb-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brb-border);
}

.brb-blog-card__media img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.brb-blog-card__body {
  padding: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.brb-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brb-muted);
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.22);
}

.brb-blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.brb-blog-card__title a {
  color: var(--brb-text) !important;
  text-decoration: none !important;
}

.brb-blog-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.brb-blog-card__link {
  color: var(--brb-red) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.brb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--brb-border);
  border-radius: var(--brb-radius);
}

html[data-theme="day"] .brb-hero,
html[data-theme="day"] .brb-section,
html[data-theme="day"] .brb-card,
html[data-theme="day"] .brb-cta,
html[data-theme="day"] .brb-feature,
html[data-theme="day"] .brb-stat,
html[data-theme="day"] .brb-faq__item,
html[data-theme="day"] .brb-blog-card {
  background: #fff;
  border-color: #e4e4e7;
  color: #52525b;
}

html[data-theme="day"] .brb-title,
html[data-theme="day"] .brb-card__title,
html[data-theme="day"] .brb-feature__title,
html[data-theme="day"] .brb-faq__q,
html[data-theme="day"] .brb-blog-card__title a {
  color: #18181b !important;
}
