@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); }
#root-inner { min-height: 100vh; background: var(--bg); transition: background .2s ease; }
a { color: inherit; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--brand-primary); text-decoration: none; }
::selection { background: rgba(255,107,53,0.3); }

[data-theme="dark"]  { --mark-fingers: #F5F0E6; }
[data-theme="light"] { --mark-fingers: #141820; }

select option { background: var(--surface); color: var(--text); }

/* ---------- Logo ---------- */
.bf-logo { display: inline-flex; align-items: center; gap: 11px; }
.bf-logo svg.bf-mark { display: block; flex: 0 0 auto; }
.bf-logo-text { display: inline-flex; flex-direction: column; gap: 5px; }
.bf-logo-word { font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.bf-logo-word .dot { color: var(--brand-primary); }
.bf-bars { display: flex; gap: 8px; width: 124px; }
.bf-bars span { flex: 1; height: 5px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.bf-btn { font-family: var(--font-heading); font-weight: 500; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s ease, transform .1s ease, color .2s ease, border-color .2s ease; }
.bf-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bf-btn:not(:disabled):hover { transform: translateY(-1px); }
.bf-btn.size-sm { padding: 8px 16px; font-size: 14px; }
.bf-btn.size-md { padding: 12px 24px; font-size: 15px; }
.bf-btn.size-lg { padding: 14px 28px; font-size: 17px; }
.bf-btn.primary { background: var(--brand-primary); color: #141820; }
.bf-btn.primary:not(:disabled):hover { background: var(--warning); }
.bf-btn.secondary { background: transparent; border-color: var(--brand-primary); color: var(--orange-text); }
.bf-btn.secondary:not(:disabled):hover { background: var(--brand-primary); color: #141820; }
.bf-btn.ghost { background: transparent; color: var(--text); }
.bf-btn.ghost:not(:disabled):hover { background: var(--surface); }
.bf-btn svg { width: 1em; height: 1em; }
.bf-btn.size-sm svg { width: 17px; height: 17px; }
.bf-btn.size-md svg { width: 18px; height: 18px; }
.bf-btn.size-lg svg { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.bf-nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.bf-nav.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--border); }
.bf-nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 24px; }
.bf-nav-inner .bf-logo-word { font-size: 26px; }
.bf-nav-inner .bf-logo svg.bf-mark { height: 30px; }
.bf-nav-links { display: flex; gap: 28px; margin-left: 16px; }
.bf-nav-links a { font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: var(--text); }
.bf-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bf-theme-toggle { background: transparent; border: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 4px; }
.bf-theme-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.bf-hero { position: relative; overflow: hidden; }
.bf-hero-glow { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px; background: radial-gradient(ellipse at center, rgba(255,107,53,0.18), transparent 62%); pointer-events: none; }
.bf-hero-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 96px 32px 80px; text-align: center; }
.bf-eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 28px; font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--text-muted); }
.bf-eyebrow-pill .triangle { width: 0; height: 0; border-left: 6px solid var(--brand-primary); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.bf-hero-h1 { font-family: var(--font-heading); font-weight: 700; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); margin: 0 0 22px; }
.bf-hero-h1 .accent { color: var(--orange-text); }
.bf-hero-sub { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; }
.bf-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section heads ---------- */
.bf-section { max-width: 1200px; margin: 0 auto; padding: 88px 32px; }
.bf-section-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bf-section-band > .bf-section { padding-left: 32px; padding-right: 32px; }
.bf-section-head { max-width: 640px; margin-bottom: 44px; }
.bf-eyebrow { font-family: var(--font-heading); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 12px; }
.bf-section-h2 { font-family: var(--font-heading); font-weight: 700; font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin: 0 0 14px; }
.bf-section-sub { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- Campfires ---------- */
.bf-campfires-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bf-campfire-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color .2s ease, transform .1s ease; box-shadow: var(--shadow-sm); }
.bf-campfire-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.bf-campfire-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.bf-campfire-icon svg { width: 24px; height: 24px; }
.bf-campfire-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--text); margin: 0 0 6px; }
.bf-campfire-card p { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--text-muted); margin: 0 0 16px; }
.bf-campfire-count { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.bf-campfire-count svg { width: 15px; height: 15px; }

/* ---------- How it works ---------- */
.bf-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.bf-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bf-step-num { font-family: var(--font-mono); font-size: 14px; color: var(--brand-primary); }
.bf-step-rule { flex: 1; height: 1px; background: var(--border); }
.bf-step-head svg { width: 22px; height: 22px; color: var(--brand-primary); }
.bf-step h3 { font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--text); margin: 0 0 8px; }
.bf-step p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- Stories ---------- */
.bf-stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.bf-story { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin: 0; box-shadow: var(--shadow-sm); }
.bf-story-tri { display: inline-block; width: 0; height: 0; border-bottom: 14px solid var(--accent); border-left: 8px solid transparent; border-right: 8px solid transparent; margin-bottom: 16px; }
.bf-story blockquote { font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--text); margin: 0 0 20px; }
.bf-story figcaption { display: flex; align-items: center; gap: 12px; }
.bf-story-avatar { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--accent); color: #141820; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.bf-story-name { font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: var(--text); }
.bf-story-role { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.bf-cta-band { background: var(--gradient-flame); position: relative; overflow: hidden; }
.bf-cta-inner { max-width: 1000px; margin: 0 auto; padding: 72px 32px; text-align: center; }
.bf-marquee { font-family: var(--font-display); text-transform: uppercase; font-size: 80px; line-height: 0.92; letter-spacing: 0.01em; color: #141820; margin-bottom: 18px; }
.bf-cta-sub { font-family: var(--font-body); font-size: 18px; line-height: 1.5; color: #141820; opacity: 0.82; max-width: 520px; margin: 0 auto 30px; }
.bf-cta-btn { font-family: var(--font-heading); font-weight: 500; font-size: 17px; background: #141820; color: #F5F0E6; border: none; border-radius: var(--radius-md); padding: 14px 30px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .1s ease; }
.bf-cta-btn:hover { transform: translateY(-1px); }
.bf-cta-btn svg { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.bf-contact { background: var(--surface); border-top: 1px solid var(--border); }
.bf-contact-inner { max-width: 1000px; margin: 0 auto; padding: 88px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.bf-contact-pitch h2 { font-family: var(--font-heading); font-weight: 700; font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin: 0 0 16px; }
.bf-contact-pitch p { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0 0 28px; max-width: 380px; }
.bf-contact-meta { display: flex; flex-direction: column; gap: 14px; }
.bf-contact-meta-row { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 15px; color: var(--text-muted); }
.bf-contact-meta-row svg { width: 18px; height: 18px; color: var(--brand-primary); }
.bf-contact-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.bf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bf-field { display: flex; flex-direction: column; gap: 7px; }
.bf-field.full { grid-column: 1 / -1; }
.bf-field-label { font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--text); }
.bf-input, .bf-select { width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.bf-input:focus, .bf-select:focus { border-color: var(--brand-primary); box-shadow: var(--focus-ring); }
.bf-select-wrap { position: relative; }
.bf-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.bf-select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); display: inline-flex; }
.bf-select-chevron svg { width: 18px; height: 18px; }
.bf-textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); line-height: 1.5; }
.bf-field-hint { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.bf-input:invalid:not(:placeholder-shown) { border-color: #d14b3a; }
.bf-form-submit-row { margin-top: 24px; }
.bf-form-submit-row .bf-btn { width: 100%; justify-content: center; }
.bf-form-finep { font-family: var(--font-body); font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; text-align: center; }
.bf-contact-success { text-align: center; padding: 28px 8px; }
.bf-contact-success h3 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--text); margin: 0 0 8px; }
.bf-contact-success p { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 22px; }
.bf-contact-success strong { color: var(--text); }
.bf-honeypot { display: none; }

/* ---------- Footer ---------- */
.bf-footer { background: var(--bg); border-top: 1px solid var(--border); }
.bf-footer-grid { max-width: 1200px; margin: 0 auto; padding: 56px 32px 40px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.bf-footer-brand p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 20px 0 0; max-width: 260px; }
.bf-footer-col-title { font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.bf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bf-footer ul a { font-family: var(--font-body); font-size: 14.5px; color: var(--text-muted); }
.bf-footer-sub { max-width: 1200px; margin: 0 auto; padding: 20px 32px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.bf-footer-sub span { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); }
.bf-socials { display: flex; gap: 16px; color: var(--text-muted); }
.bf-socials a { color: inherit; display: flex; }
.bf-socials svg { width: 19px; height: 19px; }

/* ---------- Modal ---------- */
.bf-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,0.66); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bf-modal-overlay[hidden] { display: none; }
.bf-modal-card { width: 440px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.bf-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bf-modal-head h3 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--text); margin: 0; }
.bf-modal-close { background: transparent; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.bf-modal-close svg { width: 22px; height: 22px; }
.bf-modal-sub { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); margin: 0 0 22px; }
.bf-modal-label { display: block; font-family: var(--font-heading); font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.bf-modal-label .hint { color: var(--text-muted); font-weight: 400; }
.bf-modal-input { width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text); outline: none; }
.bf-modal-input:focus { border-color: var(--brand-primary); box-shadow: var(--focus-ring); }
.bf-modal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bf-chip { font-family: var(--font-heading); font-weight: 500; font-size: 13px; cursor: pointer; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.bf-chip svg { width: 14px; height: 14px; }
.bf-chip.active { background: var(--chip-bg); border-color: var(--chip-bg); color: #141820; }
.bf-modal-submit { margin-top: 26px; }
.bf-modal-submit .bf-btn { width: 100%; justify-content: center; }
.bf-modal-success { text-align: center; padding: 12px 0; }
.bf-modal-success h3 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--text); margin: 0 0 8px; }
.bf-modal-success p { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); margin: 0 0 22px; }
.bf-modal-success strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .bf-nav-links { display: none !important; }
  .bf-contact-inner { grid-template-columns: 1fr !important; gap: 36px !important; }
  .bf-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .bf-hero-h1 { font-size: 44px; }
  .bf-section-h2 { font-size: 30px; }
  .bf-marquee { font-size: 56px; }
}
