/* ============================================================
   INDUSTRIES PAGES - Frontora AI V2-Pre
   Shared between /industries/ hub and /industries/{slug}/ sub-pages
   ============================================================ */

.ind-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ind-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--neutral-900);
}

.ind-h1-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ind-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--neutral-900);
}

.ind-section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ind-section-sub {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}

/* ===== HERO (HUB) ===== */
.ind-hero {
  position: relative;
  padding: clamp(70px, 10vw, 110px) 0 clamp(50px, 6vw, 80px);
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
  overflow: hidden;
  text-align: center;
}

.ind-hero-inner { max-width: 880px; margin: 0 auto; }

.ind-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--neutral-700);
  margin: 0 auto 28px;
  max-width: 660px;
}

.ind-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== WHY (HUB) ===== */
.ind-why {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.ind-why-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ind-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18);
}

.ind-why-card-highlight {
  border-color: var(--brand-500);
  background: linear-gradient(180deg, white 0%, rgba(16,185,129,0.03) 100%);
}

.ind-why-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 16px -4px rgba(16,185,129,0.4);
}

.ind-why-icon svg { width: 24px; height: 24px; }

.ind-why-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--neutral-900);
  line-height: 1.25;
}

.ind-why-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
}

/* ===== INDUSTRY GRID (HUB) ===== */
.ind-grid-section {
  background: var(--neutral-0);
  padding: clamp(60px, 8vw, 100px) 0;
  scroll-margin-top: 80px;
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.ind-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ind-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18);
}

.ind-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ind-card-icon svg { width: 22px; height: 22px; }
.ind-card-icon i { font-size: 22px; }

.ind-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0;
  line-height: 1.25;
}

.ind-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
  flex: 1;
}

.ind-card-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ind-phrase {
  display: inline-flex;
  padding: 4px 9px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.ind-phrase-more {
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
}

.ind-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-700);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-200);
}

.ind-card-cta svg { transition: transform 0.2s ease; }
.ind-card:hover .ind-card-cta svg { transform: translateX(3px); }

.ind-grid-note {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--neutral-600);
}

.ind-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--brand-700);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ind-link-btn:hover { color: var(--brand-500); }

/* ===== HOW (HUB) ===== */
.ind-how {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.ind-how-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.ind-how-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.ind-how-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--neutral-900);
}

.ind-how-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
}

/* ============================================================
   SUB-PAGE STYLES
   ============================================================ */

.ind-detail-hero {
  padding: clamp(60px, 8vw, 90px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
}

.ind-detail-hero-inner { max-width: 880px; margin: 0 auto; }

.ind-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.15s ease;
}

.ind-back-link:hover { color: var(--brand-700); }

.ind-detail-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--neutral-900);
}

.ind-detail-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--neutral-700);
  margin: 0 0 28px;
  max-width: 700px;
  font-weight: 500;
}

.ind-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sample dialog */
.ind-detail-dialog {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-dialog-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.12);
}

.ind-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 18px;
}

.ind-dialog-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind-dialog-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ind-dialog-meta strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}

.ind-dialog-meta span {
  font-size: 12px;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ind-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
  animation: ind-blink 1.4s ease-in-out infinite;
}

@keyframes ind-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

.ind-dialog-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ind-msg {
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 13px;
  max-width: 85%;
}

.ind-msg strong {
  font-weight: 700;
  margin-right: 4px;
}

.ind-msg-caller {
  background: var(--neutral-100);
  color: var(--neutral-800);
  align-self: flex-start;
}

.ind-msg-mia {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
  color: var(--neutral-800);
  align-self: flex-end;
  border: 1px solid rgba(16,185,129,0.2);
}

.ind-msg-mia strong { color: var(--brand-700); }

/* Knowledge section */
.ind-detail-knowledge {
  background: var(--neutral-0);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.ind-knowledge-block .ind-eyebrow { margin-bottom: 14px; }
.ind-knowledge-block .ind-h2 { font-size: clamp(22px, 2.5vw, 28px); }

.ind-knowledge-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 12px 0 24px;
}

.ind-phrase-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ind-phrase-large {
  padding: 7px 14px;
  font-size: 13px;
  background: white;
  border: 1px solid var(--neutral-300);
  color: var(--neutral-800);
}

.ind-intent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-intent-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--neutral-800);
}

.ind-intent-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--brand-600);
  flex-shrink: 0;
  margin-top: 1px;
}

.ind-intent-check svg { width: 13px; height: 13px; }

/* Integrations */
.ind-detail-integrations {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.ind-integration-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ind-integration-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
}

.ind-integration-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ind-integration-icon svg { width: 16px; height: 16px; }

.ind-integration-chip strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}

.ind-integration-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--neutral-600);
}

.ind-integration-note a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== FINAL CTA ===== */
.ind-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.ind-final-cta .ind-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.ind-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.ind-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0 0 12px;
}

.ind-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.ind-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.ind-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .ind-why-grid, .ind-how-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .ind-knowledge-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ind-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ind-final-actions { align-items: center; }
}

@media (max-width: 600px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-detail-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   BASH 1564 - NUCLEAR ICON + HOVER FIX
   Using html-prefix for max specificity
   ============================================================ */

html .ind-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  margin-bottom: 4px;
}

html .ind-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  display: block;
}

/* Card on hover - ALL text stays dark, icon flips to solid emerald */
html .ind-card:hover {
  background: white;
  border-color: var(--brand-500);
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18);
  transform: translateY(-4px);
}

html .ind-card:hover .ind-card-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  transform: scale(1.05);
}

html .ind-card:hover .ind-card-icon svg {
  stroke: white;
}

html .ind-card:hover .ind-card-title {
  color: var(--neutral-900);
}

html .ind-card:hover .ind-card-desc {
  color: var(--neutral-700);
}

html .ind-card:hover .ind-phrase {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

html .ind-card:hover .ind-phrase.ind-phrase-more {
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
}

html .ind-card:hover .ind-card-cta {
  color: var(--brand-700);
}

/* ============================================================
   BASH 1565 - DEFAULT STATE TEXT COLOR FIX
   Cards are anchors (<a>) - they inherit link color (was white/transparent)
   Force dark text in default state with html-prefix specificity
   ============================================================ */

/* Card link itself - kill the default link color inheritance */
html .ind-card,
html .ind-card:link,
html .ind-card:visited {
  color: var(--neutral-900);
  text-decoration: none;
}

/* Title - dark by default */
html .ind-card .ind-card-title {
  color: var(--neutral-900);
  text-decoration: none;
}

/* Description - mid gray by default */
html .ind-card .ind-card-desc {
  color: var(--neutral-700);
  text-decoration: none;
}

/* Phrase pills - dark text on light bg by default */
html .ind-card .ind-phrase {
  background: var(--neutral-100);
  color: var(--neutral-700);
  text-decoration: none;
}

html .ind-card .ind-phrase.ind-phrase-more {
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
}

/* CTA "See how Mia handles it" - emerald by default */
html .ind-card .ind-card-cta {
  color: var(--brand-700);
  text-decoration: none;
}

/* Card icon - emerald colors by default */
html .ind-card .ind-card-icon {
  color: var(--brand-700);
}

html .ind-card .ind-card-icon svg {
  stroke: var(--brand-700);
  fill: none;
}

/* HOVER state - same dark text + flipped icon */
html .ind-card:hover {
  color: var(--neutral-900);
}

html .ind-card:hover .ind-card-title {
  color: var(--neutral-900);
}

html .ind-card:hover .ind-card-desc {
  color: var(--neutral-700);
}

html .ind-card:hover .ind-card-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
}

html .ind-card:hover .ind-card-icon svg {
  stroke: white;
}
