/* biabahub.com — rspack-style build-tool orange theme */
:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-light: #fed7aa;
  --bg: #fffaf7;
  --bg-alt: #fff5ee;
  --bg-dark: #1c1917;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --border: #e7e5e4;
  --border-light: #f5f5f4;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(234,88,12,.08);
  --shadow-lg: 0 8px 32px rgba(234,88,12,.13);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,250,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}

.nav-links a:hover { color: var(--brand); background: var(--bg-alt); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-outline {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-primary {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
}

.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }

/* ---- Hero ---- */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(249,115,22,.13) 0%, transparent 80%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 24px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
}

.hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--brand);
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(234,88,12,.3);
  transition: transform .15s, box-shadow .15s;
}

.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(234,88,12,.4); }

.btn-hero-sec {
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color .18s, background .18s;
}

.btn-hero-sec:hover { border-color: var(--brand); background: var(--bg-alt); }

/* ---- Quick feature bar ---- */
.feat-bar {
  padding: 40px 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.feat-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feat-item {
  text-align: center;
  padding: 16px 12px;
}

.feat-item .fi-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feat-item .fi-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.feat-item .fi-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Section commons ---- */
.section {
  padding: 80px 24px;
}

.section-alt { background: var(--bg-alt); }

.section-center { text-align: center; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; }

/* ---- Performance section (benchmark style) ---- */
.perf-section { background: #fff; }

.perf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.perf-table tr { border-bottom: 1px solid var(--border-light); }
.perf-table tr:last-child { border-bottom: none; }

.perf-table td { padding: 16px 0; vertical-align: middle; }

.perf-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 180px;
  flex-shrink: 0;
}

.perf-bar-wrap {
  flex: 1;
  background: var(--border-light);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.perf-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  transition: width 0.6s ease;
}

.perf-bar.bar-good { background: linear-gradient(90deg, #f97316, #fb923c); }
.perf-bar.bar-mid  { background: #d1d5db; }
.perf-bar.bar-slow { background: #e5e7eb; }

.perf-val {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100px;
  text-align: right;
}

.perf-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.perf-row:last-child { border-bottom: none; }

/* ---- Feature grid ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}

.feat-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); }

.feat-card .fc-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feat-card .fc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feat-card .fc-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Ecosystem / Platform cards ---- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.eco-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .15s;
}

.eco-card:hover { border-color: var(--brand); transform: translateY(-2px); }

.eco-card .ec-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eco-card .ec-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.eco-card .ec-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.eco-card .ec-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ec-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ---- Stats band ---- */
.stats-band {
  background: linear-gradient(135deg, #1c1917, #292524);
  color: #fff;
  padding: 56px 24px;
}

.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .si-num {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #f97316;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .si-label {
  font-size: 0.85rem;
  color: #a8a29e;
  line-height: 1.4;
}

/* ---- Who is using ---- */
.using-section {
  text-align: center;
  padding: 72px 24px;
  background: #fff;
}

.using-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.using-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.using-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.using-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.cta-section .cs-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section .cs-sub {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-white {
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  border: none;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-cta-outline {
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand);
  transition: transform .2s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
}

.faq-item.open .faq-a { display: block; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark);
  color: #a8a29e;
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #292524;
}

.footer-brand .fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .fb-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }

.footer-brand .fb-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand .fb-desc {
  font-size: 0.8rem;
  color: #78716c;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d6d3d1;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.85rem;
  color: #78716c;
  transition: color .18s;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: #57534e;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  color: #57534e;
  transition: color .18s;
}

.footer-links a:hover { color: var(--brand); }

/* ---- Inline FAQ script ---- */
.faq-item { cursor: pointer; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .feat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }
  .hero { padding: 48px 16px 40px; }
  .section { padding: 52px 16px; }
  .feat-bar-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-btns, .cta-btns { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-sec, .btn-cta-white, .btn-cta-outline { width: 100%; max-width: 320px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .using-logos { gap: 8px; }
  .perf-row { flex-wrap: wrap; }
  .perf-label { width: 100%; margin-bottom: 4px; }
  .perf-val { width: auto; }
}
