/* =========================================================
   Industries page
   ========================================================= */

/* ---- Index strip ---- */
.ind-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.ind-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.ind-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.ind-chip__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.ind-chip b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.ind-chip span {
  font-size: 13px;
  color: var(--muted);
}

.ind-chip--ghost {
  border-style: dashed;
  background: transparent;
}

/* ---- Industry section ---- */
.ind {
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.ind__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ind--flip .ind__body {
  order: 2;
}

.ind__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.ind__tag .code {
  font-family: var(--font-display);
}

.ind__body h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.025em;
}

.ind__quip {
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-style: italic;
  font-weight: 430;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
}

.ind__body > p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.ind-feats {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ind-feats li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ind-feats li i {
  color: var(--accent);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Animated panels (shared) ---- */
.ind-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 28px);
}

.ind-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.ind-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 18px;
  position: relative;
}

.ind-panel__head i {
  color: var(--accent);
}

.ind-panel__head .live-dot {
  margin-left: auto;
}

/* Count-up stats footer */
.ind-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.ind-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-softer);
}

.ind-stat span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

.ind-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink);
}

/* ---- Events: run sheet ---- */
.run-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.run-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-softer);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.ind-panel.is-live .run-row {
  opacity: 1;
  transform: none;
}

.ind-panel.is-live .run-row:nth-child(2) { transition-delay: 0.1s; }
.ind-panel.is-live .run-row:nth-child(3) { transition-delay: 0.2s; }
.ind-panel.is-live .run-row:nth-child(4) { transition-delay: 0.3s; }

.run-row__time {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent-ink);
  width: 52px;
  flex-shrink: 0;
}

.run-row__task {
  flex: 1;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

/* ---- Accounting: reconciliation ---- */
.recon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.recon-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-softer);
  font-size: 13.5px;
  color: var(--ink-2);
}

.recon-row > i {
  color: var(--muted);
  font-size: 12px;
}

.recon-row b {
  color: var(--ink);
  font-weight: 600;
}

.recon-row__tick {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 158, 99, 0.14);
  color: #2e9e63;
  font-size: 11px;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.ind-panel.is-live .recon-row__tick {
  transform: scale(1);
}

.ind-panel.is-live .recon-row:nth-child(2) .recon-row__tick { transition-delay: 0.15s; }
.ind-panel.is-live .recon-row:nth-child(3) .recon-row__tick { transition-delay: 0.3s; }
.ind-panel.is-live .recon-row:nth-child(4) .recon-row__tick { transition-delay: 0.45s; }

.recon__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.recon__progress .bar {
  flex: 1;
  width: auto;
}

.recon__progress .bar__fill {
  transform: scaleX(0);
}

.ind-panel.is-live .recon__progress .bar__fill {
  transform: scaleX(var(--fill, 1));
}

.recon__progress span {
  font-size: 13px;
  font-weight: 600;
  color: #2e9e63;
  white-space: nowrap;
}

/* ---- Video: pipeline ---- */
.pipeline__steps {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  counter-reset: pipe;
}

.pipe {
  text-align: center;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-softer);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}

.pipe i {
  font-size: 16px;
  color: var(--muted);
}

.pipe b {
  display: block;
  font-size: 12.5px;
  margin-top: 6px;
  color: var(--ink);
}

.pipe small {
  font-size: 11px;
  color: var(--muted);
}

.ind-panel.is-live .pipe.is-done,
.ind-panel.is-live .pipe.is-active {
  opacity: 1;
}

.ind-panel.is-live .pipe.is-done i,
.ind-panel.is-live .pipe.is-active i {
  color: var(--accent);
}

.ind-panel.is-live .pipe.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ind-panel.is-live .pipe:nth-child(2) { transition-delay: 0.1s; }
.ind-panel.is-live .pipe:nth-child(3) { transition-delay: 0.2s; }
.ind-panel.is-live .pipe:nth-child(4) { transition-delay: 0.3s; }
.ind-panel.is-live .pipe:nth-child(5) { transition-delay: 0.4s; }

.pipeline__line {
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
  margin-top: 14px;
}

.pipeline__fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 1.4s var(--ease);
}

.ind-panel.is-live .pipeline__fill {
  width: var(--p, 50%);
}

.ind-version {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.ind-version b {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Proven bridge ---- */
.proven {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.proven__card {
  padding: 24px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.proven__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proven__card i {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 12px;
}

.proven__card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.proven__card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .ind__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ind--flip .ind__body {
    order: -1;
  }
}

@media (max-width: 560px) {
  .ind-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .recon-row {
    grid-template-columns: 1fr auto auto;
  }

  .recon-row .recon-row__pay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .run-row,
  .recon-row__tick,
  .pipe,
  .pipeline__fill,
  .recon__progress .bar__fill {
    transition: none !important;
  }
}
