/* =================== ROOT / RESET =================== */

em { font-style: normal; color: var(--accent); }

/* =================== TYPOGRAPHY =================== */

/* Override: this page's section headers sit a little tighter than the shared 56px. */
.section-head { margin-bottom: 48px; }

/* =================== BUTTONS =================== */

/* =================== TOPBAR =================== */

/* =================== HEADER =================== */

/* Nav */


/* =================== PAGE HERO =================== */
.page-hero {
  position: relative;
  background: var(--dark);
  padding: 80px 0 90px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(13, 92, 245, 0.30), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(30, 167, 255, 0.15), transparent 45%);
}
.page-hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 70px 70px;
}
.page-hero__inner { position: relative; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color .25s var(--t); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb i { font-size: 0.65rem; }
.breadcrumb span { color: rgba(255,255,255,0.85); }

.page-hero__content { max-width: 680px; margin-bottom: 52px; }
.page-hero__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-hero__title em { color: var(--accent-2); font-style: normal; }
.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
}
.page-hero__content .section-eyebrow { color: var(--accent-2); }
.page-hero__content .section-eyebrow .line { background: var(--accent-2); }

.hero__meta { display: flex; align-items: center; gap: 0; }
.hero__meta-item { padding: 0 40px 0 0; }
.hero__meta-item:first-child { padding-left: 0; }
.hero__meta-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #ffffff;
  line-height: 1;
  display: block;
}
.hero__meta-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__meta-div {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  margin-right: 40px;
}

/* =================== SOLUTIONS EXPLORER =================== */
.explorer {
  padding: 100px 0;
  background: var(--bg-2);
  position: relative;
}
.explorer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 92, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 92, 245, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.explorer .container { position: relative; }

/* Search */
.explorer__search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px 22px;
  min-width: 320px;
  transition: border-color .25s var(--t), box-shadow .25s var(--t);
}
.explorer__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.explorer__search i { color: var(--accent); font-size: 0.9rem; }
.explorer__search input {
  border: none;
  outline: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  padding: 12px 0;
  width: 100%;
}
.explorer__search input::placeholder { color: var(--text-mute); }

/* Layout: rail sits above the panel as a filter-pill bar (matches products_index.css
   .filter-bar / .filter-pill), rather than a sidebar next to it. */
.explorer__layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.explorer__rail-wrap { position: relative; }
/* Hidden on desktop — the rail itself is the visible control there; the toggle only takes
   over once the rail's pills no longer fit comfortably on one row (see the mobile block
   below, same pattern as .category-filter__toggle on the products page). */
.explorer__rail-toggle { display: none; }

/* Left rail -> pill bar, same shape as .filter-bar on the products category page */
.explorer__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
}
.rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .3s var(--t);
  white-space: nowrap;
}
.rail__item:hover { color: var(--accent); }
.rail__item.active {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(13, 92, 245, 0.32);
}
/* Icon shrinks to a plain glyph inline with the label -- the pill has no room for the
   card-style icon tile the rail used to carry. */
.rail__icon {
  width: auto; height: auto;
  background: none;
  color: var(--accent);
  font-size: 0.9rem;
  border-radius: 0;
  transition: color .3s var(--t);
}
.rail__item.active .rail__icon { background: none; color: #ffffff; }
.rail__text { display: flex; flex-direction: column; gap: 2px; }
.rail__name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rail__item.active .rail__name { color: #ffffff; }
/* Per-industry application count and the trailing chevron were card affordances --
   the pill bar (see products .filter-pill) carries neither. */
.rail__meta, .rail__arrow { display: none; }

/* Right panel */
.explorer__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  min-height: 480px;
}
.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.panel__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.panel__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0;
  max-width: 640px;
}
.panel__count {
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
  padding-top: 6px;
}

/* Segment cards */
.seg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.seg-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-2);
  transition: all .35s var(--t);
  animation: segIn .45s var(--t) both;
}
@keyframes segIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.seg-card:hover {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(13,92,245,0.12);
  transform: translateY(-4px);
}
.seg-card__head { margin-bottom: 20px; }
.seg-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}
.seg-card__products {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.seg-card__products i { color: var(--accent); font-size: 0.78rem; margin-top: 4px; }
/* Product/ingredient names are the term someone actually searches ("API powder", "dry syrup
   powder") -- an accent-soft highlight (same token as .cat-card__tag) pulls the eye to that
   mapping between industry segment and product, instead of it reading as regular dim body text. */
.seg-card__products-value {
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.seg-card__label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.seg-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-card__chips + .seg-card__label { margin-top: 16px; }
/* Category chips (whole ProductCategory picks) use the accent-soft fill so they read as a
   distinct, higher-level grouping from the individual product chips below them. */
.chip--category {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-dark);
}
.chip--category i { color: var(--accent-dark); }
.chip--category:hover i { color: #ffffff; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: all .25s var(--t);
}
.seg-card:hover .chip { border-color: var(--line); }
.chip i { font-size: 0.62rem; color: var(--text-mute); transition: color .25s var(--t); }
.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}
.chip:hover i { color: #ffffff; }

/* Empty state */
.seg-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mute);
}
.seg-empty i { font-size: 2.6rem; color: var(--line-strong); margin-bottom: 16px; }
.seg-empty p { font-size: 0.95rem; }

/* =================== STATS STRIP =================== */
.stats-strip {
  background: var(--dark);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(13, 92, 245, 0.25), transparent 60%),
    repeating-linear-gradient(45deg,
      transparent, transparent 30px,
      rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 60px);
  pointer-events: none;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.stat { text-align: left; border-left: 3px solid var(--accent); padding-left: 24px; }
.stat__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 8px;
  color: #ffffff;
}
.stat__num::after { content: "+"; font-size: 3rem; color: var(--accent-2); }
.stat--no-plus .stat__num::after { content: ""; }
.stat__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}

/* =================== APPROACH =================== */
.approach {
  padding: 100px 0;
  background: var(--bg);
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.approach__step {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--t);
}
.approach__step::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--t);
}
.approach__step:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(13,92,245,0.10);
}
.approach__step:hover::after { transform: scaleX(1); }

.approach__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 12px;
  transition: color .3s var(--t);
}
.approach__step:hover .approach__num { color: var(--accent); opacity: 0.3; }

.approach__icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 18px;
  transition: all .3s var(--t);
}
.approach__step:hover .approach__icon { background: var(--accent); color: #ffffff; }

.approach__step h4 { font-size: 1.05rem; margin-bottom: 12px; line-height: 1.3; }
.approach__step p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; }

/* =================== CTA =================== */
.cta { position: relative; padding: 130px 0; overflow: hidden; }
.cta__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #0d5cf5 100%);
}
.cta__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 70px 70px;
}
.cta__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta__title em { color: var(--accent-2); }
.cta__desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 44px;
}
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =================== FOOTER =================== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.75);
  padding-top: 90px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 50px; padding-bottom: 70px;
}

.footer__brand { flex: 0 1 240px; min-width: 200px; }
.footer__col { flex: 1 1 0; min-width: 140px; }
.footer__brand p { color: rgba(255,255,255,0.65); margin: 22px 0; font-size: 0.95rem; line-height: inherit; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #ffffff; transition: all .3s var(--t);
}
.footer__social a:hover { background: var(--accent); color: #ffffff; transform: translateY(-4px); }
/* `position: relative` + `padding-bottom` are load-bearing: pages/shared.css adds the 28px
   accent underline as `.footer__col h5::after`, absolutely positioned against this box. */
.footer__col h5 {
  font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 20px;
  color: #ffffff; position: relative; padding-bottom: 12px;
  font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: none;
}

.footer__col ul li a {
  color: rgba(255,255,255,0.65); font-size: 0.92rem;
  transition: all .25s var(--t); display: inline-flex; align-items: center; gap: 6px;
}

.footer__contact p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 16px; line-height: inherit; }
.footer__contact a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 10px;
  transition: none;
}
.footer__contact a i { color: var(--accent-2); width: 18px; flex-shrink: initial; }
.footer__contact a:hover { color: #ffffff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: normal; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* =================== BACK TO TOP =================== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--accent); color: #ffffff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s var(--t); z-index: 99;
  box-shadow: 0 10px 30px rgba(13, 92, 245, 0.4);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* =================== SCROLL REVEAL =================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--t), transform .65s var(--t); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { flex-wrap: wrap; gap: 40px; }
  .footer__brand { flex: 1 1 100%; }
  .footer__col { flex: 1 1 calc(50% - 20px); min-width: 200px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; border-top: 1px solid var(--line);
    padding: 20px; box-shadow: 0 10px 30px rgba(11, 30, 63, 0.08);
  }
  .nav.open ul { flex-direction: column; gap: 0; }
  .nav.open a { display: flex; width: 100%; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { display: none; }
  .hero__meta { flex-wrap: wrap; gap: 24px; }
  .hero__meta-div { display: none; }
  .hero__meta-item { padding: 0; }

  /* Pill bar wraps at this width, same as .filter-pill on the products category page. */
  .rail__item { padding: 11px 18px; }
  .rail__name { font-size: 0.82rem; }
}
@media (max-width: 720px) {
  .section-head { align-items: stretch; }
  .explorer__search { min-width: 0; width: 100%; }
  .seg-grid { grid-template-columns: 1fr; }
  .panel__head { flex-direction: column; gap: 12px; }
  .explorer__panel { padding: 24px; }

  /* Industry rail collapses behind a select-style toggle instead of listing every industry —
     with several industries, the pill bar otherwise wraps one pill per line and pushes the
     application panel far down the screen (same fix as .category-filter on products). */
  .explorer__rail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
  }
  .explorer__rail-toggle i { color: var(--text-dim); transition: transform .25s var(--t); flex-shrink: 0; }
  .explorer__rail-wrap.open .explorer__rail-toggle i { transform: rotate(180deg); }
  .explorer__rail-wrap.open .explorer__rail-toggle { border-color: var(--accent); color: var(--accent); }

  .explorer__rail {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    padding: 8px;
    border-radius: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(11, 30, 63, 0.16);
  }
  .explorer__rail-wrap.open .explorer__rail { display: flex; }
  .rail__item { width: 100%; }
}
@media (max-width: 640px) {
  .approach__grid { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__grid { flex-direction: column; }
  .footer__brand, .footer__col { flex: 1 1 auto; width: 100%; min-width: 0; }
  .topbar { display: none; }
  .cta__actions { flex-direction: column; align-items: center; }
}
