:root {
  --bg: #0b0f14;
  --panel: #121923;
  --panel2: #172231;
  --text: #eef5ff;
  --muted: #b8c4d6;
  --accent: #7ee787;
  --link: #58a6ff;
  --border: #2b3a4f;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--link); }

.bcbc-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.bcbc-topbar {
  background: #081018;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bcbc-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  flex-wrap: wrap;
}

.bcbc-brand {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  margin-right: auto;
}

.bcbc-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.bcbc-nav a:hover {
  background: var(--panel2);
}

main {
  padding: 28px 0 60px;
}

.bcbc-hero,
.bcbc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.bcbc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bcbc-card h2,
.bcbc-card h3 {
  margin-top: 0;
}

.bcbc-muted {
  color: var(--muted);
}

.bcbc-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  background: #081018;
}

@media (max-width: 700px) {
  .bcbc-wrap {
    width: min(100% - 22px, var(--max));
  }

  .bcbc-nav {
    align-items: flex-start;
    padding: 10px 0;
  }

  .bcbc-brand {
    width: 100%;
  }

  .bcbc-nav a {
    padding: 7px 8px;
  }

  main {
    padding-top: 18px;
  }
}

/* Shared BCBC header/footer */
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-menu summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu nav {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-menu nav a,
.footer-links a {
  color: var(--muted);
  margin-right: 12px;
}

.site-menu nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Clean top navigation */
.top-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  .top-nav {
    justify-content: flex-start;
  }
}

/* New BCBC Technologies homepage compatibility styles */
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero {
  padding: 70px 0 42px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(126, 231, 135, .08);
  font-size: 14px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: .95;
  margin: 0 0 20px;
  letter-spacing: -.05em;
}

.lead {
  max-width: 880px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--link), var(--accent));
  color: #061014;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  display: block;
  background: linear-gradient(180deg, var(--panel), #0f151d);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  min-height: 160px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  text-decoration: none;
}

.card h2 {
  margin: 6px 0 10px;
  color: var(--text);
}

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

.card:hover {
  border-color: var(--link);
}

.mini {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-title {
  margin-top: 54px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 800px) {
  .hero {
    padding-top: 42px;
  }
}
