/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-center.section-sub { max-width: 580px; margin-left: auto; margin-right: auto; }

/* ===== HERO: FULL SCREEN ===== */
.hero {
  position: relative;
  height: 100vh;    /* fallback for browsers without svh */
  height: 100svh;   /* small viewport height: no jump/cut-off when the mobile
                       browser toolbar slides in and out */
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* Ticker inside hero */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  padding: 13px 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.hero-ticker-track .msep { color: var(--blue); font-size: 9px; }

.hero-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #7faeff;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 440px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTORS ===== */
/* Centered sectors text */
.sectors-center { text-align: center; }
.sectors-center.section-sub { max-width: 580px; margin-left: auto; margin-right: auto; }

.sectors { padding: 80px 0; }
.sectors-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
  transform: none !important;
}
.sector-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: default;
  background: var(--white);
}
.sector-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(65, 105, 225, 0.07);
}

.sector-card-inner {
  display: flex;
  align-items: flex-start;

/* reveal stagger — replaces per-element inline --delay styles */
.sector-card:nth-child(2) { --delay: 0.12s; }
.sector-card:nth-child(3) { --delay: 0.24s; }
  gap: 18px;
}

.sector-icon-wrap {
  width: 44px;
  height: 44px;
  background: #eef2ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.sector-icon-wrap svg { width: 20px; height: 20px; }

.sector-text { flex: 1; min-width: 0; }

.sector-card h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.sector-card p { font-size: 13px; color: #777; line-height: 1.65; }

/* ===== BATTLE CARDS ===== */
.battlecards { padding: 80px 0 40px; background: var(--white); }

.bc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin: 36px 0 32px;
}
.bc-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #767676;
  background: none;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
  flex: 1;
  text-align: center;
}
.bc-tab:hover { color: var(--blue); }
.bc-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.bc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  min-height: 200px;
}

/* Individual battle card */
.battlecard {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.bc-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.bc-process-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}
.bc-dept-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bc-comparison { display: grid; grid-template-columns: 1fr 1fr; }

.bc-manual {
  padding: 20px;
  border-right: 1px solid #f0f0f0;
  background: #fffafa;
}
.bc-ai {
  padding: 20px;
  background: #fafffe;
}

.bc-side-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.bc-manual .bc-side-label { color: #ef4444; }
.bc-ai .bc-side-label { color: #22c55e; }

.bc-x { font-size: 11px; }
.bc-check { font-size: 11px; }

.bc-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 14px;
  min-height: 54px;
}

.bc-time {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bc-time-manual { color: #ef4444; }
.bc-time-ai { color: #22c55e; }

.bc-saved {
  padding: 12px 20px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bc-saved-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bc-saved-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Summary bar */
.bc-summary {
  margin-top: 28px;
  padding: 32px 40px;
  background: var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.bc-total-block {
  display: flex;
  /* centre, not baseline: baseline alignment let the 13px label's two-line box
     hang 13px below the 56px number, adding dead space under the number and
     pushing it off-centre inside the summary bar */
  align-items: center;
  gap: 14px;
}
.bc-total-num {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  text-transform: uppercase;
}
.bc-total-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 140px;
}
.bc-summary-right { text-align: right; }
.bc-industry-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.bc-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  max-width: 280px;
  line-height: 1.5;
  margin-left: auto;
}

/* ===== PROCESS: CARDS STACK ON SCROLL =====
   Cards sit in normal flow and stick a little lower than the previous one, so
   as you scroll each card slides up and covers the last — 1 disappears under 2,
   2 under 3, and so on. Pure CSS: no pinning, no extra scroll length beyond the
   cards' own heights, and it reverses cleanly when you scroll back up. */
.process {
  position: relative;
  background: var(--white);
  padding: 70px 0 0;   /* top padding is the breather; no bottom padding */
}

.process .container { margin-bottom: 56px; }

/* centre the heading and the sub-paragraph */
.process .section-title,
.process .section-sub { text-align: center; }
.process .section-sub { margin-left: auto; margin-right: auto; }

.process-stack {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.process-step {
  position: sticky;
  /* each card parks 14px lower than the one before, so the stack visibly fans */
  top: calc(88px + var(--i, 0) * 14px);
  min-height: 275px;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  background: var(--white);
  /* lift the covering card off the one beneath it */
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.06);
}

/* cascade index per card — replaces per-element inline --i styles */
.process-step:nth-child(1) { --i: 0; }
.process-step:nth-child(2) { --i: 1; }
.process-step:nth-child(3) { --i: 2; }
.process-step:nth-child(4) { --i: 3; }
.process-step:nth-child(5) { --i: 4; }
.process-step:nth-child(6) { --i: 5; }

.ps-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ps-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
  min-width: 48px;
}
.ps-icon {
  width: 38px;
  height: 38px;
  background: #eef2ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.ps-icon svg { width: 18px; height: 18px; }
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.process-step p { font-size: 14px; color: #666; line-height: 1.7; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--white);
  padding: 64px 0;
}
/* 3 stats on desktop (breakpoints below override to 1 column on phones) */
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 32px;
}
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 8px;
}

/* ===== AGENT CATALOGUE ===== */
.agent-catalogue {
  background: var(--white);
  padding: 80px 0;
}

.ac-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin: 36px 0 32px;
}
.ac-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #767676;
  background: none;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
  flex: 1;
  text-align: center;
}
.ac-tab:hover { color: var(--blue); }
.ac-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.agent-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.agent-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.agent-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}
.agent-card:hover::before { opacity: 1; }

.ac-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ac-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: #767676;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.ac-divider {
  height: 1px;
  background: #f0f0f0;
  margin-bottom: 14px;
}
.ac-handles-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  margin-bottom: 8px;
}
.ac-handles {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ac-handles::-webkit-scrollbar { display: none; }

.ac-chip {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #444;
  background: #f5f6f8;
  border: 1px solid #e8e8e8;
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ac-chip-num {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border-radius: 100px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.ac-arrow {
  font-size: 18px;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  transition: transform 0.2s;
  line-height: 1;
}
.ac-arrow:hover { transform: translateX(4px); }
.ac-center {
  text-align: center;
}
.ac-center.section-sub {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}


/* ===== FOSS SECTION ===== */
.foss {
  padding: 40px 0 80px;
  background: var(--white);
}

.foss .section-title { color: var(--black); }

.foss .section-sub {
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.foss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 48px 0 40px;
}

.foss-card {
  background: #f5f6f8;
  padding: 32px 28px;
  transition: background 0.2s;
}

.foss-card:hover { background: #eef2ff; }

.foss-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(65, 105, 225, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
}
.foss-card-icon svg { width: 18px; height: 18px; }

.foss-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.foss-role {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.foss-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-headline { font-size: 36px; }
  .sectors-track { grid-template-columns: 1fr; max-width: 100%; }
  .bc-grid { grid-template-columns: 1fr; }
  .bc-summary { flex-direction: column; text-align: left; }
  .bc-summary-right { text-align: left; }
  .bc-note { margin-left: 0; }

  .stats-strip .container { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .stat-item { padding: 0 16px; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .foss-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { min-height: 0; top: calc(72px + var(--i, 0) * 10px); }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 28px; }
  .bc-comparison { grid-template-columns: 1fr; }
  .bc-manual { border-right: none; border-bottom: 1px solid #f0f0f0; }
  .bc-total-num { font-size: 40px; }
  .bc-summary { padding: 24px; }
  .stats-strip .container { grid-template-columns: 1fr; gap: 36px 0; }
  .stat-item { border-right: none !important; }
  .stat-num { font-size: 44px; }
  .agent-grid { grid-template-columns: 1fr; }
  .foss-grid { grid-template-columns: 1fr; }

  /* Tab rows: seven labels can't share a phone width — let them swipe.
     flex:1 with nowrap content has a min-content floor, which is what pushed
     the row 7px past the viewport. */
  .bc-tabs,
  .ac-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .bc-tabs::-webkit-scrollbar,
  .ac-tabs::-webkit-scrollbar { display: none; }
  .bc-tab,
  .ac-tab { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
}
