/* ─────────────────────────────────────────────────────────────────────────
   INDUSTRY PAGE STYLES
───────────────────────────────────────────────────────────────────────── */

/* ── PAGE HEADER ── */
#ind-hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#ind-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(109,40,217,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 95% 65%, rgba(29,78,216,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(124,58,237,0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
#ind-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }
#ind-hero .wrap { position: relative; z-index: 3; width: 100%; }

.ind-breadcrumb {
  position: absolute;
  top: 5.5rem;
  left: 0;
  right: 0;
  z-index: 4;
}
.ind-breadcrumb .wrap { padding: 0 var(--px); max-width: var(--w); margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb a { font-size: 0.75rem; font-weight: 500; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--grey); }
.breadcrumb-sep { color: var(--dim); font-size: 0.7rem; }
.breadcrumb-cur { font-size: 0.75rem; color: var(--grey); font-weight: 500; }

.ind-kicker { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.8rem; opacity: 0; animation: up 0.6s ease forwards 0.2s; }
.ind-kicker::before { content: ''; width: 1.8rem; height: 2px; background: var(--p-hi); border-radius: 2px; }
.ind-kicker span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); }

.ind-title { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; max-width: 16ch; color: var(--white); opacity: 0; animation: up 0.9s ease forwards 0.3s; }
.ind-title em { font-style: normal; color: var(--p-hi); }

.ind-desc { max-width: 52ch; font-size: 1rem; font-weight: 300; color: var(--grey); line-height: 1.8; margin-top: 2rem; opacity: 0; animation: up 0.8s ease forwards 0.45s; }

/* ── STICKY FN-NAV ── */
#fn-nav {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: rgba(7,7,26,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.fn-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.fn-nav-inner::-webkit-scrollbar { display: none; }
.fn-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fn-pill:hover { color: var(--white); background: rgba(124,58,237,0.06); }
.fn-pill.active { color: var(--white); border-bottom-color: var(--p-hi); background: rgba(124,58,237,0.08); }
.fn-pill-n { font-size: 0.62rem; font-weight: 700; color: var(--p-hi); }

/* ── PAIN SECTIONS ── */
.pain-section {
  border-bottom: 1px solid var(--line);
}
.pain-inner {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.pain-intro {
  margin-bottom: 3.5rem;
  max-width: 520px;
}

.pain-fn-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--p-xs);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 100px;
  padding: 0.22rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-hi);
  margin-bottom: 1rem;
}
.pain-fn-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--p-hi); flex-shrink: 0; }

.pain-ghost-n {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px var(--dim);
  color: transparent;
  margin-bottom: 0.4rem;
  user-select: none;
}

.pain-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.pain-title em { font-style: normal; color: var(--p-hi); }

.pain-context {
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.75;
  max-width: 48ch;
}

/* Split card */
.pain-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 920px;
}

.split-col-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.split-col-label.broken { color: #EF4444; }
.split-col-label.built  { color: var(--p-hi); }

/* Problems column */
.problem-list-dark { list-style: none; display: flex; flex-direction: column; }
.problem-item-dark {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.problem-item-dark:last-child { border-bottom: none; }
.prob-x-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.prob-x-icon svg { width: 0.6rem; height: 0.6rem; stroke: #EF4444; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.prob-title { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; line-height: 1.3; }
.prob-desc  { font-size: 0.8rem; color: var(--grey); font-weight: 300; line-height: 1.6; }

/* Solution column */
.split-solution { display: flex; flex-direction: column; gap: 1rem; }
.sol-headline-dark { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.delivers-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.delivers-list li {
  font-size: 0.83rem;
  color: var(--grey);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
}
.delivers-list li::before { content: '✓'; color: var(--p-hi); font-size: 0.72rem; flex-shrink: 0; padding-top: 0.1rem; font-weight: 700; }
.pain-cta-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p-hi);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.pain-cta-link:hover { border-color: var(--p-hi); }

@media (max-width: 860px) {
  .pain-split { grid-template-columns: 1fr; max-width: 100%; }
  .pain-intro  { max-width: 100%; }
}

/* ── INDUSTRY SWITCHER ── */
#ind-switcher {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.switcher-head { margin-bottom: 2.5rem; }
.switcher-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); margin-bottom: 0.5rem; }
.switcher-sub { font-size: 0.88rem; color: var(--grey); font-weight: 300; }

.switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.switcher-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: background 0.2s;
}
.switcher-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--p);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.switcher-card:hover { background: rgba(124,58,237,0.05); }
.switcher-card:hover::after { transform: scaleX(1); }
.switcher-card.current { background: rgba(124,58,237,0.08); pointer-events: none; }
.switcher-card.current::after { transform: scaleX(1); background: var(--p-hi); }
.switcher-name { font-size: 0.88rem; font-weight: 700; color: var(--white); }
.switcher-card.current .switcher-name { color: var(--p-hi); }
.switcher-pain { font-size: 0.76rem; color: var(--grey); font-weight: 300; line-height: 1.5; }
.switcher-arrow { font-size: 0.72rem; color: var(--dim); margin-top: 0.3rem; transition: color 0.2s; }
.switcher-card:hover .switcher-arrow { color: var(--p-hi); }

@media (max-width: 800px) { .switcher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .switcher-grid { grid-template-columns: 1fr; } }

/* ── INDUSTRIES GRID (for index page) ── */
.ind-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.ind-note { max-width: 34ch; font-size: 0.88rem; color: var(--grey); font-weight: 300; line-height: 1.65; text-align: right; }
@media (max-width: 680px) { .ind-hd { flex-direction: column; align-items: flex-start; } .ind-note { text-align: left; } }

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ind-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.2s;
  position: relative;
}
.ind-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--p);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ind-card:hover { background: rgba(124,58,237,0.05); }
.ind-card:hover::after { transform: scaleX(1); }

.ind-name { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.ind-pain { font-size: 0.81rem; color: var(--grey); font-weight: 300; line-height: 1.6; flex: 1; }

.ind-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ind-tag {
  font-size: 0.65rem; font-weight: 600;
  color: var(--p-hi);
  background: var(--p-xs);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
}

.ind-arrow { font-size: 0.73rem; font-weight: 600; color: var(--dim); transition: color 0.2s; }
.ind-card:hover .ind-arrow { color: var(--p-hi); }

@media (max-width: 800px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ind-grid { grid-template-columns: 1fr; } }

/* loading fade */
#page-content { opacity: 1; }
