/* ===== Bizz Automation — Design System ===== */

:root {
  --charcoal: #1A1A1A;
  --gold: #D4A017;
  --gold-light: #E9C766;
  --teal: #003D4A;
  --teal-light: #0A5C6C;
  --grey-light: #F2F2F2;
  --white: #FFFFFF;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--charcoal);
}

h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 1.75rem; font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-alt { background: var(--grey-light); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.2rem;
  color: #4a4a4a;
  max-width: 640px;
}
.section-dark .lede { color: #d9d9d9; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--gold-light); color: var(--charcoal); }

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { border-color: var(--gold); color: var(--charcoal); }

.section-dark .btn-outline { border-color: var(--white); color: var(--white); }
.section-dark .btn-outline:hover { border-color: var(--gold); color: var(--white); }

/* ---- Header / Nav ---- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eaeaea;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 52px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
nav.main-nav a.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.mobile-nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  background: linear-gradient(180deg, #ffffff 0%, var(--grey-light) 100%);
}
.hero-honeycomb {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 640px;
  max-width: 70%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
}
.hero-copy { max-width: 680px; }
.hero h1 { margin-bottom: 22px; }
.hero .cta-row { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---- Grids / Cards ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #e9e9e9;
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.card .icon-hex {
  width: 48px; height: 48px;
  margin-bottom: 18px;
}

.hex-frame {
  width: 280px;
  height: 280px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--gold);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  padding: 5px;
  flex-shrink: 0;
}
.hex-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header.left { margin: 0 0 56px; text-align: left; }

/* ---- Method steps ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid #e6e6e6;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Impact score dims ---- */
.dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dim {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--gold);
}

/* ---- Values ---- */
.values-grid { grid-template-columns: repeat(5, 1fr); row-gap: 32px; }
.value-item { text-align: center; }
.value-dot {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
  margin: 0 auto 16px;
}

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid #e9e9e9;
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 0.85rem; color: #777; margin-top: 10px; }
.form-success {
  display: none;
  background: #eef8ee;
  border: 1px solid #b9dfb9;
  color: #256029;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.form-success.visible { display: block; }

/* ---- Contact info blocks ---- */
.contact-info {
  display: grid;
  gap: 20px;
}
.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info .item .label { font-weight: 600; color: var(--teal); }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--charcoal);
  color: #cfcfcf;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
footer.site-footer a { color: #cfcfcf; }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #999;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }

/* ---- Hero punch headline ---- */
.hero-punch {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-punch .line-charcoal { display: block; color: var(--charcoal); }
.hero-punch .line-gold { display: block; color: var(--gold); }

/* ---- Icon circle (shared by outcome cards, pain list, diagram) ---- */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.icon-circle svg { width: 26px; height: 26px; }

/* ---- Is This You? checklist ---- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--charcoal);
}
.check-item .check-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-item .check-dot svg { width: 14px; height: 14px; }

/* ---- Use-case ticker ---- */
.ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.ticker span:not(:last-child)::after {
  content: "|";
  margin-left: 18px;
  color: #ccc;
}

/* ---- Problems -> Digital Worker -> Technology diagram ---- */
.solution-diagram {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
}

.problem-column h4,
.technology-column h4 {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.diagram-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diagram-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.technology-column .diagram-item { flex-direction: row; }

.box-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--grey-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}
.box-icon svg { width: 22px; height: 22px; }

.diagram-item .icon-circle { flex-shrink: 0; }
.diagram-item small { display: block; color: #888; font-weight: 400; font-size: 0.78rem; }

.connector {
  flex: 1;
  height: 0;
  border-top: 2px dashed #cfcfcf;
  min-width: 20px;
  position: relative;
}
.connector-right::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border: 4px solid transparent;
  border-left-color: #cfcfcf;
}
.connector-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  border: 4px solid transparent;
  border-right-color: #cfcfcf;
}

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

.digital-worker {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--white);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.worker-icon { width: 56px; height: 56px; color: var(--charcoal); margin-bottom: 10px; }
.digital-worker h3 { font-family: Poppins, sans-serif; font-size: 1.2rem; margin: 0 0 8px; }
.gold-underline { width: 36px; height: 3px; background: var(--gold); margin: 0 auto 12px; }
.worker-checks { list-style: none; padding: 0; margin: 0; font-size: 0.8rem; color: #555; text-align: left; }
.worker-checks li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.worker-checks li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---- Result banner ---- */
.result-banner { background: var(--charcoal); padding: 32px 0; }
.result-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}
.result-banner-inner h4 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin: 0;
  flex-shrink: 0;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
}
.result-item svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }


/* ---- Business results / outcomes row ---- */
.outcome-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.outcome-item .icon-circle { margin: 0 auto 14px; }
.outcome-item h4 { font-size: 0.95rem; }

/* ---- Bizz Method flow (homepage teaser) ---- */
.method-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.method-step {
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.method-arrow { color: var(--gold); font-size: 1rem; }

/* ---- Tech stack table ---- */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.95rem;
}
.tech-table th,
.tech-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #e6e6e6;
}
.tech-table th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  background: var(--grey-light);
}
.tech-table td { color: #444; }
.tech-table td:first-child { font-weight: 500; color: var(--charcoal); white-space: nowrap; }

/* ---- Guiding principles ---- */
.principle-list { display: flex; flex-direction: column; gap: 18px; max-width: 640px; margin: 0 auto; }
.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--charcoal);
}
.principle-item .principle-icon { flex-shrink: 0; color: var(--gold); width: 20px; height: 20px; margin-top: 3px; }
.principle-item .principle-icon svg { width: 100%; height: 100%; }

/* ---- Hive ecosystem diagram ---- */
.hive-diagram {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 16px auto 0;
}
.hive-center,
.hive-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}
.hive-center {
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  z-index: 3;
}
.hive-center img { width: 100%; height: auto; }
.hive-node {
  width: auto;
  max-width: 78px;
  font-size: 0.68rem;
  color: var(--charcoal);
  z-index: 2;
  padding: 2px;
}
.hive-node.worker {
  width: 90px;
  height: 90px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.58rem;
  max-width: none;
  padding: 6px;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  z-index: 1;
}
@media (max-width: 680px) {
  .hive-diagram { max-width: 340px; margin-top: 12px; }
  .hive-center { width: 60px; height: 60px; }
  .hive-node { max-width: 52px; font-size: 0.44rem; }
  .hive-node.worker { width: 56px; height: 56px; font-size: 0.4rem; padding: 2px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .dims { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .solution-diagram { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .connector { display: none; }
  .hero-punch { font-size: 2.4rem; }
}

@media (max-width: 680px) {
  h1 { font-size: 2rem; }
  section { padding: 60px 0; }
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open nav.main-nav {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid #eaeaea;
    gap: 20px;
  }
  .grid-3, .grid-2, .values-grid, .dims { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-outline, .nav-cta .btn-primary { display: none; }
  .nav-wrap.open nav.main-nav .mobile-nav-cta { display: inline-block; margin-top: 4px; }
  .check-grid { grid-template-columns: 1fr; }
  .outcome-row { grid-template-columns: 1fr; }
  .result-banner-inner { flex-direction: column; align-items: flex-start; }
  .digital-worker { width: 220px; height: 220px; }
}
