:root {
  --bb-bg: #ffffff;
  --bb-surface: #f3f4f6;
  --bb-text: #111827;
  --bb-muted: #6b7280;
  --bb-primary: #f7931a;
  --bb-cyan: #00e5ff;
  --bb-silver: #c0c0c0;
}

html.dark-mode {
  --bb-bg: #0b0f17;
  --bb-surface: #121826;
  --bb-text: #f3f4f6;
  --bb-muted: #94a3b8;
}

body {
  background: var(--bb-bg);
  color: var(--bb-text);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

main,
.wp-site-blocks {
  min-height: 100vh;
}

a {
  color: var(--bb-primary);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.is-layout-constrained {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ========================================
   HEADER
======================================== */

.bb-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9998;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

html:not(.dark-mode) .bb-header {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

body.admin-bar .bb-header {
  top: 32px;
}

.bb-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bb-logo {
  color: var(--bb-text);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bb-primary-nav {
  margin-left: auto;
}

.bb-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-menu a {
  color: var(--bb-text);
  font-size: 0.95rem;
  opacity: 0.88;
}

.bb-menu a:hover {
  opacity: 1;
}

.bb-main {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (max-width: 782px) {
  body.admin-bar .bb-header {
    top: 46px;
  }
}

/* ========================================
   THEME TOGGLE
======================================== */

.bb-theme-toggle {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 999px;

  background: var(--bb-surface);
  color: var(--bb-text);

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.bb-theme-toggle:hover {
  transform: scale(1.05);
}

/* ========================================
   CONTENT
======================================== */

.bb-card {
  background: var(--bb-surface);

  border-radius: 20px;

  padding: 32px;

  margin-bottom: 32px;

  border: 1px solid rgba(255,255,255,0.06);
}

html:not(.dark-mode) .bb-card {
  border: 1px solid rgba(0,0,0,0.06);
}

.bb-card h2 {
  margin-top: 0;
  margin-bottom: 12px;

  font-size: 2rem;
  line-height: 1.1;
}

.bb-card p {
  color: var(--bb-muted);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

  .bb-header-inner {
    min-height: 64px;
  }

  .bb-card {
    padding: 24px;
    border-radius: 18px;
  }

  .bb-card h2 {
    font-size: 1.5rem;
  }

}

html,
body {
  overflow-x: hidden;
}

/* ========================================
   HOMEPAGE
======================================== */

.bb-home {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ========================================
   HERO
======================================== */

.bb-hero {
  padding-top: 48px;
}

.bb-hero-content {
  max-width: 860px;
}

.bb-kicker {
  color: var(--bb-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.bb-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.bb-hero-text {
  font-size: 1.2rem;
  color: var(--bb-muted);
  max-width: 720px;
}

.bb-hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */

.bb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 26px;

  border-radius: 14px;

  font-weight: 600;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.bb-button:hover {
  transform: translateY(-2px);
}

.bb-button-primary {
  background: var(--bb-primary);
  color: #fff;
}

.bb-button-secondary {
  background: var(--bb-surface);
  color: var(--bb-text);
}

/* ========================================
   SECTIONS
======================================== */

.bb-section {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.bb-section-header h2 {
  margin-top: 8px;
}

/* ========================================
   GRID
======================================== */

.bb-grid {
  display: grid;
  gap: 28px;
}

.bb-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ========================================
   FEATURE SECTION
======================================== */

.bb-feature {
  background: var(--bb-surface);

  border-radius: 28px;

  padding: 48px;

  border: 1px solid rgba(255,255,255,0.06);

  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

html:not(.dark-mode) .bb-feature {
  border: 1px solid rgba(0,0,0,0.06);
}

/* ========================================
   PREMIUM CTA
======================================== */

.bb-premium-cta {
  text-align: center;
  align-items: center;

  padding: 72px 32px;

  background: linear-gradient(
    135deg,
    rgba(247,147,26,0.14),
    rgba(0,229,255,0.08)
  );

  border-radius: 32px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 1024px) {

  .bb-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {

  .bb-home {
    gap: 72px;
  }

  .bb-hero h1 {
    line-height: 1;
  }

  .bb-grid-3 {
    grid-template-columns: 1fr;
  }

  .bb-feature {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .bb-premium-cta {
    padding: 48px 24px;
  }

}

/* ========================================
   POST CARDS
======================================== */

.bb-post-card {
  overflow: hidden;
  padding: 0;
}

.bb-post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bb-post-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.bb-post-card:hover .bb-post-card-image img {
  transform: scale(1.04);
}

.bb-post-card-content {
  padding: 28px;
}

.bb-post-card h3 {
  margin-top: 0;
  margin-bottom: 14px;

  font-size: 1.4rem;
  line-height: 1.15;
}

.bb-post-card p {
  margin-bottom: 0;
}