/* ── BrandBuilder9000 — Main Stylesheet ──────────────────────────────────── */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bb-red:      #E8201A;
  --bb-blue:     #1B9BD1;
  --bb-dark:     #0F1623;
  --bb-dark2:    #1A2235;
  --bb-gray:     #F4F5F7;
  --bb-border:   #E2E6EC;
  --bb-text:     #1A1A2E;
  --bb-muted:    #64748B;
  --bb-white:    #FFFFFF;
  --bb-font-display: 'Barlow Condensed', sans-serif;
  --bb-font-body:    'Barlow', sans-serif;
  --bb-radius:   8px;
  --bb-shadow:   0 4px 24px rgba(15,22,35,0.10);
  --bb-shadow-lg:0 12px 48px rgba(15,22,35,0.16);
}

html { scroll-behavior: smooth; }

body.bb9-body {
  font-family: var(--bb-font-body);
  color: var(--bb-text);
  background: var(--bb-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.bb9-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.bb9-container--narrow { max-width: 760px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.bb9-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--bb-radius);
  font-family: var(--bb-font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease; white-space: nowrap;
}
.bb9-btn--red {
  background: var(--bb-red); color: var(--bb-white);
  border-color: var(--bb-red);
}
.bb9-btn--red:hover {
  background: #C41814; border-color: #C41814;
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,32,26,0.35);
}
.bb9-btn--ghost {
  background: transparent; color: var(--bb-white);
  border-color: rgba(255,255,255,0.35);
}
.bb9-btn--ghost:hover {
  border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08);
}
.bb9-btn--lg { padding: 16px 32px; font-size: 16px; }
.bb9-btn--full { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.bb9-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,22,35,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.bb9-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.bb9-nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.bb9-nav__logo { flex-shrink: 0; line-height: 0; }
.bb9-nav__logo img { height: 38px; width: auto; }
.bb9-nav__links {
  display: flex; gap: 28px; align-items: center; margin-left: auto;
}
.bb9-nav__links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.bb9-nav__links a:hover { color: var(--bb-white); }
.bb9-nav__cta { margin-left: 16px; padding: 10px 20px; font-size: 14px; }
.bb9-nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.bb9-nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--bb-white); border-radius: 2px; transition: all 0.3s;
}
.bb9-nav__mobile {
  display: none; flex-direction: column; gap: 0;
  background: var(--bb-dark2); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px 20px;
}
.bb9-nav__mobile a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 15px;
  font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bb9-nav__mobile a:last-child { border-bottom: none; margin-top: 12px; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.bb9-hero {
  position: relative; padding: 140px 0 80px;
  background: var(--bb-dark); overflow: hidden; min-height: 90vh;
  display: flex; align-items: center;
}
.bb9-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
}
.bb9-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27,155,209,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,155,209,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
}
/* Red accent glow */
.bb9-hero::after {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,32,26,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.bb9-hero__inner { position: relative; z-index: 1; }
.bb9-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(27,155,209,0.12); border: 1px solid rgba(27,155,209,0.3);
  color: var(--bb-blue); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.bb9-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bb-blue); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.bb9-hero__headline {
  font-family: var(--bb-font-display); font-size: clamp(64px, 10vw, 110px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.01em;
  color: var(--bb-white); margin-bottom: 28px; text-transform: uppercase;
}
.bb9-text--red   { color: var(--bb-red); }
.bb9-text--white { color: var(--bb-white); }
.bb9-hero__sub {
  font-size: 18px; color: rgba(255,255,255,0.65); max-width: 540px;
  line-height: 1.65; margin-bottom: 36px; font-weight: 400;
}
.bb9-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.bb9-hero__price {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; margin-bottom: 48px;
}
.bb9-price__setup   { color: rgba(255,255,255,0.9); font-weight: 600; }
.bb9-price__divider { color: rgba(255,255,255,0.3); font-size: 20px; }
.bb9-price__monthly { color: rgba(255,255,255,0.55); }

/* Stats */
.bb9-hero__stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--bb-radius); padding: 20px 32px;
  max-width: 580px;
}
.bb9-stat { flex: 1; text-align: center; }
.bb9-stat strong {
  display: block; font-family: var(--bb-font-display);
  font-size: 30px; font-weight: 700; color: var(--bb-white); line-height: 1;
}
.bb9-stat span { font-size: 12px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.bb9-stat__div { width: 1px; height: 40px; background: rgba(255,255,255,0.1); margin: 0 8px; }

/* ── Trust Bar ───────────────────────────────────────────────────────────── */
.bb9-trust {
  background: var(--bb-red); padding: 14px 0;
}
.bb9-trust__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9);
}
.bb9-trust__brand { font-weight: 700; color: var(--bb-white); }
.bb9-trust__div { color: rgba(255,255,255,0.4); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.bb9-section { padding: 96px 0; }
.bb9-section--dark { background: var(--bb-dark); }
.bb9-section--gray { background: var(--bb-gray); }

.bb9-section__header { text-align: center; margin-bottom: 64px; }
.bb9-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--bb-red); margin-bottom: 12px;
}
.bb9-eyebrow--light { color: var(--bb-blue); }
.bb9-section__title {
  font-family: var(--bb-font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--bb-text); text-transform: uppercase; margin-bottom: 16px;
}
.bb9-section--dark .bb9-section__title { color: var(--bb-white); }
.bb9-section__sub {
  font-size: 17px; color: var(--bb-muted); max-width: 560px; margin: 0 auto;
}

/* ── How It Works ────────────────────────────────────────────────────────── */
.bb9-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0; align-items: start;
}
.bb9-step {
  background: var(--bb-white); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius); padding: 28px 24px;
  box-shadow: var(--bb-shadow); position: relative;
}
.bb9-step__num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bb-red); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: var(--bb-white);
  flex-shrink: 0;
}
.bb9-step__body h3 {
  font-size: 17px; font-weight: 700; color: var(--bb-text); margin-bottom: 8px;
}
.bb9-step__body p { font-size: 14px; color: var(--bb-muted); line-height: 1.6; }
.bb9-step__connector {
  width: 40px; display: flex; align-items: flex-start; padding-top: 44px;
}
.bb9-step__connector::before {
  content: ''; display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--bb-red), var(--bb-blue));
  border-radius: 2px;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.bb9-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bb9-feature {
  padding: 32px 28px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--bb-radius);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s, background 0.25s;
}
.bb9-feature:hover {
  border-color: rgba(232,32,26,0.35);
  background: rgba(232,32,26,0.04);
}
.bb9-feature__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(232,32,26,0.12); display: flex; align-items: center;
  justify-content: center; color: var(--bb-red); margin-bottom: 18px;
}
.bb9-feature h3 {
  font-size: 17px; font-weight: 700; color: var(--bb-white); margin-bottom: 10px;
}
.bb9-feature p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; }
.bb9-feature p strong { color: rgba(255,255,255,0.8); }

/* ── Templates ───────────────────────────────────────────────────────────── */
.bb9-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bb9-tpl {
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius);
  overflow: hidden; transition: box-shadow 0.25s, transform 0.25s;
}
.bb9-tpl:hover { box-shadow: var(--bb-shadow-lg); transform: translateY(-4px); }

/* Template preview mockups */
.bb9-tpl__preview {
  height: 220px; padding: 12px; position: relative; overflow: hidden;
}
.bb9-tpl__preview--professional { background: #1B2A4A; }
.bb9-tpl__preview--personal     { background: #0A0A0A; }
.bb9-tpl__preview--shop         { background: #FAF6EF; }

.bb9-tpl__mockup {
  width: 100%; height: 100%; border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column; gap: 4px;
}

/* Mockup nav */
.bb9-mock__nav {
  height: 12px; background: rgba(255,255,255,0.15);
  border-radius: 2px; flex-shrink: 0;
}
.bb9-mock__nav--dark   { background: rgba(0,0,0,0.5); }
.bb9-mock__nav--cream  { background: rgba(196,98,45,0.2); }

/* Mockup hero */
.bb9-mock__hero {
  flex: 1; background: rgba(255,255,255,0.06); border-radius: 2px;
  padding: 8px; display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.bb9-mock__hero--dark  { background: rgba(255,255,255,0.03); }
.bb9-mock__hero--split { flex-direction: row; padding: 0; gap: 0; }

.bb9-mock__headline       { height: 10px; background: rgba(255,255,255,0.6); border-radius: 2px; width: 70%; }
.bb9-mock__headline--light{ background: rgba(255,255,255,0.8); }
.bb9-mock__sub            { height: 6px; background: rgba(255,255,255,0.25); border-radius: 2px; width: 90%; }
.bb9-mock__sub--light     { background: rgba(255,255,255,0.4); }
.bb9-mock__btn            { height: 8px; background: #B8922A; border-radius: 2px; width: 35%; margin-top: 4px; }
.bb9-mock__btn--blue      { background: #1E6DFF; }

/* Professional cards mockup */
.bb9-mock__cards {
  display: flex; gap: 3px; flex-shrink: 0;
}
.bb9-mock__card {
  flex: 1; height: 28px; background: rgba(255,255,255,0.08); border-radius: 2px;
}

/* Personal brand ticker + gallery */
.bb9-mock__ticker {
  height: 10px; background: #1E6DFF; border-radius: 2px; flex-shrink: 0;
}
.bb9-mock__gallery {
  display: flex; gap: 3px; flex-shrink: 0;
}
.bb9-mock__gitem {
  flex: 1; height: 32px; background: rgba(255,255,255,0.1); border-radius: 2px;
}

/* Shop split hero + products */
.bb9-mock__split-text {
  flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.bb9-mock__split-img {
  width: 40%; background: rgba(196,98,45,0.25);
}
.bb9-mock__products {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex-shrink: 0;
}
.bb9-mock__product {
  height: 24px; background: rgba(196,98,45,0.12); border-radius: 2px;
}

/* Template info */
.bb9-tpl__info { padding: 20px 22px 24px; }
.bb9-tpl__info h3 {
  font-size: 16px; font-weight: 700; color: var(--bb-text); margin-bottom: 8px;
}
.bb9-tpl__info p {
  font-size: 13px; color: var(--bb-muted); line-height: 1.6; margin-bottom: 14px;
}
.bb9-tpl__palettes { display: flex; gap: 6px; align-items: center; }
.bb9-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1); display: inline-block;
  cursor: default;
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.bb9-pricing-wrap { display: flex; justify-content: center; }
.bb9-pricing-card {
  background: var(--bb-white); border: 2px solid var(--bb-red);
  border-radius: 12px; padding: 40px 44px; max-width: 500px; width: 100%;
  box-shadow: 0 0 0 6px rgba(232,32,26,0.06), var(--bb-shadow-lg);
  position: relative;
}
.bb9-pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--bb-red); color: var(--bb-white);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.bb9-pricing-card__top { text-align: center; margin-bottom: 32px; }
.bb9-pricing-card__name {
  font-family: var(--bb-font-display); font-size: 32px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--bb-text);
  margin-bottom: 16px;
}
.bb9-pricing-card__price {
  display: flex; align-items: flex-start; justify-content: center; gap: 4px;
}
.bb9-price__currency {
  font-size: 28px; font-weight: 700; color: var(--bb-text); padding-top: 8px;
}
.bb9-price__amount {
  font-family: var(--bb-font-display); font-size: 80px; font-weight: 900;
  color: var(--bb-text); line-height: 1;
}
.bb9-price__period {
  font-size: 14px; color: var(--bb-muted); align-self: flex-end; padding-bottom: 12px;
}
.bb9-pricing-card__then {
  font-size: 15px; color: var(--bb-muted); margin-top: 6px;
}
.bb9-pricing-card__then strong { color: var(--bb-text); }

.bb9-pricing-card__features {
  list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px;
}
.bb9-pricing-card__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--bb-text); line-height: 1.5;
}
.bb9-pricing-card__features li svg { flex-shrink: 0; margin-top: 2px; }

.bb9-pricing-card__guarantee {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--bb-muted); margin-top: 14px;
  text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.bb9-faq { border: 1px solid var(--bb-border); border-radius: var(--bb-radius); overflow: hidden; }
.bb9-faq__item { border-bottom: 1px solid var(--bb-border); }
.bb9-faq__item:last-child { border-bottom: none; }
.bb9-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: none;
  font-family: var(--bb-font-body); font-size: 16px; font-weight: 600;
  color: var(--bb-text); cursor: pointer; text-align: left;
  transition: background 0.2s;
}
.bb9-faq__q:hover { background: var(--bb-gray); }
.bb9-faq__q[aria-expanded="true"] { color: var(--bb-red); }
.bb9-faq__icon { flex-shrink: 0; transition: transform 0.3s ease; }
.bb9-faq__q[aria-expanded="true"] .bb9-faq__icon { transform: rotate(180deg); }
.bb9-faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.bb9-faq__a.open { max-height: 300px; padding: 0 24px 20px; }
.bb9-faq__a p { font-size: 15px; color: var(--bb-muted); line-height: 1.7; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.bb9-cta {
  background: var(--bb-dark); padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.bb9-cta__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232,32,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,32,26,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bb9-cta__inner { position: relative; z-index: 1; }
.bb9-cta__title {
  font-family: var(--bb-font-display); font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--bb-white);
  margin-bottom: 20px;
}
.bb9-cta__sub {
  font-size: 17px; color: rgba(255,255,255,0.55);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.65;
}
.bb9-cta__fine {
  font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 16px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.bb9-footer { background: var(--bb-dark2); padding: 64px 0 0; }
.bb9-footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bb9-footer__brand img { height: 32px; margin-bottom: 14px; }
.bb9-footer__brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; }
.bb9-footer__links h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.bb9-footer__links { display: flex; flex-direction: column; }
.bb9-footer__links a {
  color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px;
  padding: 5px 0; transition: color 0.2s;
}
.bb9-footer__links a:hover { color: var(--bb-white); }
.bb9-footer__cta p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.bb9-footer__bottom {
  padding: 16px 24px; text-align: center;
}
.bb9-footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── Reveal animation ────────────────────────────────────────────────────── */
.bb9-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bb9-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bb9-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bb9-step__connector { display: none; }
  .bb9-features { grid-template-columns: repeat(2, 1fr); }
  .bb9-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .bb9-nav__links, .bb9-nav__cta { display: none; }
  .bb9-nav__burger { display: flex; }
  .bb9-nav__mobile.open { display: flex; }

  .bb9-hero { padding: 120px 0 60px; min-height: auto; }
  .bb9-hero__stats { flex-wrap: wrap; padding: 16px 20px; }
  .bb9-stat__div { display: none; }
  .bb9-stat { min-width: 45%; }

  .bb9-templates { grid-template-columns: 1fr; }
  .bb9-features  { grid-template-columns: 1fr; }
  .bb9-footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .bb9-pricing-card { padding: 36px 24px; }
  .bb9-section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bb9-reveal { opacity: 1; transform: none; transition: none; }
  .bb9-dot { animation: none; }
}
