/* ==========================================================================
   Texvian IT — HOME 02: TECH COMPANY (page-specific)
   Phase 1 scope: hero only. Built from the same Phase 1 tokens/components
   as home.css (Home 01) — no new colors, fonts, spacing or radii are
   introduced. This file exists separately (rather than folding into
   home.css) so Home 01 and Home 02 can be swapped, edited or removed
   independently without risk to one another, matching how multi-homepage
   ThemeForest templates are normally organized.

   Visual distinction from Home 01's hero (light, two-column, device-
   mockup) is achieved by: a full-bleed, always-dark hero (independent of
   the light/dark theme toggle, same pattern already used by the footer
   and CTA banner) with a centered layout, an abstract network/graph
   visualization instead of a UI mockup, and a transparent header that
   dissolves into the hero until the page is scrolled.
   ========================================================================== */

.nx-hero2 {
  position: relative;
  overflow: hidden;
  background: var(--nx-ink-900);
  padding-top: calc(var(--nx-header-height) + clamp(2.5rem, 2rem + 2vw, 5rem));
  padding-bottom: clamp(3rem, 2.4rem + 3vw, 6rem);
}

[data-bs-theme="dark"] .nx-hero2 {
  background: var(--nx-ink-950);
}

/* ---------------- Decorative background ---------------- */
.nx-hero2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nx-hero2__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 0%, transparent 75%);
}

.nx-hero2__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(560px 420px at 12% 12%, color-mix(in srgb, var(--nx-signal-600) 32%, transparent), transparent 70%),
    radial-gradient(520px 380px at 88% 22%, color-mix(in srgb, var(--nx-circuit-600) 26%, transparent), transparent 70%),
    radial-gradient(600px 440px at 50% 100%, color-mix(in srgb, var(--nx-signal-700) 22%, transparent), transparent 70%);
}

.nx-hero2__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.nx-hero2__network circle {
  fill: var(--nx-signal-400);
}

.nx-hero2__network circle.is-accent {
  fill: var(--nx-circuit-400);
}

.nx-hero2__network line {
  stroke: rgba(125, 151, 255, 0.22);
  stroke-width: 1;
}

.nx-hero2__network .nx-hero2__pulse {
  animation: nx-pulse 3.2s ease-in-out infinite;
}

/* ---------------- Content ---------------- */
.nx-hero2__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.nx-hero2__eyebrow {
  justify-content: center;
  color: var(--nx-circuit-400);
}

.nx-hero2__title {
  color: var(--nx-white);
  font-size: var(--nx-fs-h1);
  margin-block: var(--nx-space-5);
}

.nx-hero2__lead {
  color: var(--nx-slate-300);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--nx-space-7);
}

.nx-hero2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-3);
}

/* ---------------- Stats ---------------- */
.nx-hero2__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-3);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

.nx-hero2__stat {
  display: inline-flex;
  align-items: baseline;
  gap: var(--nx-space-2);
  padding: var(--nx-space-3) var(--nx-space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nx-radius-pill);
  backdrop-filter: blur(6px);
}

.nx-hero2__stat-value {
  font-family: var(--nx-font-display);
  font-weight: var(--nx-fw-bold);
  font-size: var(--nx-fs-lg);
  color: var(--nx-white);
  line-height: 1;
}

.nx-hero2__stat-label {
  font-size: var(--nx-fs-xs);
  color: var(--nx-slate-300);
  white-space: nowrap;
}

/* ---------------- Floating chips ---------------- */
.nx-hero2__chip {
  position: absolute;
  z-index: 1;
  display: none;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) var(--nx-space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--nx-radius-pill);
  color: var(--nx-white);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.nx-hero2__chip .bi {
  color: var(--nx-circuit-400);
}

/* Only shown at wider viewports, positioned relative to the hero section
   itself (not a narrower inner column) so they never collide with the
   centered content regardless of viewport width — verified empirically
   after the Home 01 hero-chip clipping/overlap issues in earlier phases. */
@media (min-width: 1200px) {
  .nx-hero2__chip {
    display: inline-flex;
  }

  .nx-hero2__chip--1 {
    top: 14%;
    left: 6%;
    animation-delay: 0ms;
  }

  .nx-hero2__chip--2 {
    top: 20%;
    right: 6%;
    animation-delay: 500ms;
  }

  .nx-hero2__chip--3 {
    bottom: 14%;
    left: 8%;
    animation-delay: 1000ms;
  }
}

@media (max-width: 575.98px) {
  .nx-hero2__stats {
    flex-direction: column;
    align-items: stretch;
  }

  .nx-hero2__stat {
    justify-content: center;
  }
}

/* ==========================================================================
   PHASE 2A
   ========================================================================== */

/* ==========================================================================
   16. ABOUT / TECHNOLOGY COMPANY
   ========================================================================== */

.nx-tc-about__visual {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
}

.nx-tc-capability-card {
  display: flex;
  align-items: center;
  gap: var(--nx-space-4);
  padding: var(--nx-space-5);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
  max-width: 92%;
  transition: var(--nx-transition-base), transform var(--nx-duration-base) var(--nx-ease-emphasized);
}

.nx-tc-capability-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nx-shadow-md);
}

.nx-tc-capability-card--offset {
  margin-left: auto;
}

.nx-tc-capability-card__icon {
  --size: 52px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-md);
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-size: 1.35rem;
}

.nx-tc-capability-card__title {
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-primary);
  margin-bottom: 2px;
}

.nx-tc-capability-card__text {
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-secondary);
  margin-bottom: 0;
}

.nx-tc-about__badge {
  display: flex;
  align-items: center;
  gap: var(--nx-space-4);
  max-width: 92%;
  margin-left: auto;
  padding: var(--nx-space-5);
  background: var(--nx-ink-900);
  border-radius: var(--nx-radius-lg);
  color: var(--nx-white);
}

[data-bs-theme="dark"] .nx-tc-about__badge {
  background: var(--nx-ink-950);
}

.nx-tc-about__badge-value {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-h3);
  font-weight: var(--nx-fw-bold);
  color: var(--nx-white);
  line-height: 1;
  flex-shrink: 0;
}

.nx-tc-about__badge-text {
  font-size: var(--nx-fs-xs);
  color: var(--nx-slate-300);
  margin-bottom: 0;
}

.nx-tc-value-list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
  margin-bottom: var(--nx-space-7);
}

.nx-tc-value-point {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-3);
}

.nx-tc-value-point__icon {
  --size: 28px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nx-secondary-soft);
  color: var(--nx-secondary-hover);
  font-size: 0.8rem;
  margin-top: 2px;
}

.nx-tc-value-point__title {
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-primary);
  margin-bottom: 2px;
}

.nx-tc-value-point__text {
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-secondary);
  margin-bottom: 0;
}

@media (max-width: 767.98px) {

  .nx-tc-capability-card,
  .nx-tc-about__badge {
    max-width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   17. CORE SERVICES
   ========================================================================== */

.nx-tc-service-card {
  position: relative;
  height: 100%;
  padding: var(--nx-space-6);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  transition: var(--nx-transition-base), transform var(--nx-duration-base) var(--nx-ease-emphasized);
}

.nx-tc-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--nx-border-color-strong);
  box-shadow: var(--nx-shadow-md);
}

.nx-tc-service-card__num {
  position: absolute;
  top: -0.15em;
  right: var(--nx-space-4);
  font-family: var(--nx-font-display);
  font-size: 4.5rem;
  font-weight: var(--nx-fw-bold);
  line-height: 1;
  color: var(--nx-border-color);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

[data-bs-theme="dark"] .nx-tc-service-card__num {
  opacity: 0.35;
}

.nx-tc-service-card__icon {
  position: relative;
  z-index: 1;
  --size: 56px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-md);
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-size: 1.5rem;
  margin-bottom: var(--nx-space-5);
  transition: var(--nx-transition-base);
}

.nx-tc-service-card:hover .nx-tc-service-card__icon {
  background: var(--nx-primary);
  color: var(--nx-primary-contrast);
}

.nx-tc-service-card__title {
  position: relative;
  z-index: 1;
  font-size: var(--nx-fs-h5);
  margin-bottom: var(--nx-space-3);
}

.nx-tc-service-card__text {
  position: relative;
  z-index: 1;
  color: var(--nx-text-secondary);
  margin-bottom: var(--nx-space-5);
}

.nx-tc-service-card__link {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   18. TECHNOLOGY / SOLUTIONS
   ========================================================================== */

.nx-tc-solutions .nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-8);
}

.nx-tc-solutions .nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) var(--nx-space-5);
  border-radius: var(--nx-radius-pill);
  border: 1px solid var(--nx-border-color);
  background: var(--nx-surface);
  color: var(--nx-text-secondary);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  transition: var(--nx-transition-base);
}

.nx-tc-solutions .nav-link:hover {
  border-color: var(--nx-border-color-strong);
  color: var(--nx-text-primary);
}

.nx-tc-solutions .nav-link.active {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
  color: var(--nx-primary-contrast);
}

.nx-tc-solutions__pane-title {
  margin-bottom: var(--nx-space-3);
}

.nx-tc-solutions__pane-text {
  color: var(--nx-text-secondary);
  margin-bottom: var(--nx-space-5);
}

.nx-tc-solutions__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--nx-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-tc-solutions__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-secondary);
}

.nx-tc-solutions__list li .bi {
  color: var(--nx-secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------------- Technology chip grid ----------------
   The Technology & Solutions markup uses the shared .nx-tech-grid /
   .nx-tech-chip class names, but those rules live in home.css, which
   Home 02 does not load — so they are defined here, scoped under
   .nx-tc-solutions to keep this file self-contained and to guarantee
   zero effect on Home 01.

   Layout note: a fixed 3-column grid is used rather than Home 01's
   auto-fill/minmax, because these panes hold either 6 or 4 chips —
   auto-fill leaves the 4-chip panes with a ragged, stretched final row,
   whereas 3 columns resolves cleanly to 2x3 and a balanced 2x2. */
.nx-tc-solutions .nx-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nx-space-3);
}

.nx-tc-solutions .nx-tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--nx-space-3);
  min-height: 118px;
  padding: var(--nx-space-5) var(--nx-space-3);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-md);
  transition: var(--nx-transition-base), transform var(--nx-duration-base) var(--nx-ease-emphasized);
}

.nx-tc-solutions .nx-tech-chip:hover {
  transform: translateY(-3px);
  border-color: var(--nx-primary);
  box-shadow: var(--nx-shadow-sm);
}

.nx-tc-solutions .nx-tech-chip__icon {
  --size: 44px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-size: 1.2rem;
  transition: var(--nx-transition-base);
}

.nx-tc-solutions .nx-tech-chip:hover .nx-tech-chip__icon {
  background: var(--nx-primary);
  color: var(--nx-primary-contrast);
}

.nx-tc-solutions .nx-tech-chip__name {
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-primary);
  line-height: var(--nx-lh-heading);
}

/* Tablet: the two-column row collapses to stacked full-width panes, so
   the grid can afford to stay at 3 across without cramping. Narrow
   phones drop to 2 across to keep names on one or two lines. */
@media (max-width: 575.98px) {
  .nx-tc-solutions .nx-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nx-tc-solutions .nx-tech-chip {
    min-height: 104px;
    padding: var(--nx-space-4) var(--nx-space-2);
  }

  .nx-tc-solutions .nx-tech-chip__icon {
    --size: 38px;
    font-size: 1.05rem;
  }
}

/* On stacked (tablet/mobile) layouts the chip grid follows the text
   column, so it needs breathing room above it. */
@media (max-width: 991.98px) {
  .nx-tc-solutions .nx-tech-grid {
    margin-top: var(--nx-space-2);
  }
}

/* ==========================================================================
   19. WHY CHOOSE US (Home 02)
   ========================================================================== */

.nx-tc-why__panel {
  height: 100%;
  padding: var(--nx-space-8);
  background: var(--nx-ink-900);
  border-radius: var(--nx-radius-xl);
  color: var(--nx-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

[data-bs-theme="dark"] .nx-tc-why__panel {
  background: var(--nx-ink-950);
}

.nx-tc-why__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 75% 65% at 30% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}

.nx-tc-why__panel-value {
  position: relative;
  z-index: 1;
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-display);
  font-weight: var(--nx-fw-bold);
  line-height: 1;
  color: var(--nx-white);
  margin-bottom: var(--nx-space-2);
}

.nx-tc-why__panel-label {
  position: relative;
  z-index: 1;
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  text-transform: uppercase;
  color: var(--nx-circuit-400);
  margin-bottom: var(--nx-space-5);
}

.nx-tc-why__panel-text {
  position: relative;
  z-index: 1;
  color: var(--nx-slate-300);
  margin-bottom: var(--nx-space-6);
}

.nx-tc-why__panel-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
}

.nx-tc-why__panel-badges .badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--nx-white) !important;
  font-weight: var(--nx-fw-medium);
}

.nx-tc-benefit-card {
  height: 100%;
  padding: var(--nx-space-5);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-md);
  transition: var(--nx-transition-base), transform var(--nx-duration-base) var(--nx-ease-emphasized);
}

.nx-tc-benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--nx-border-color-strong);
  box-shadow: var(--nx-shadow-sm);
}

.nx-tc-benefit-card__icon {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-size: 1.05rem;
  margin-bottom: var(--nx-space-4);
}

.nx-tc-benefit-card__title {
  font-size: var(--nx-fs-md);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-primary);
  margin-bottom: var(--nx-space-2);
}

.nx-tc-benefit-card__text {
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   20. TRUSTED TECHNOLOGY PARTNERS
   ========================================================================== */

.nx-tc-partners__head {
  text-align: center;
  margin-bottom: var(--nx-space-7);
}

.nx-tc-partners__head .nx-eyebrow {
  justify-content: center;
}

/* Mirrors home.css's .nx-logo-marquee / .nx-logo pattern under a Home
   02-scoped name. Duplicated intentionally (small, ~10 rules) rather
   than shared, so Home 01 and Home 02 stylesheets stay fully
   independent and removable — the same reasoning already documented at
   the top of this file for keeping home.css and home-2.css separate. */
.nx-tc-logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.nx-tc-logo-marquee .nx-marquee {
  gap: clamp(2.5rem, 2rem + 2vw, 5rem);
  align-items: center;
  padding-block: var(--nx-space-2);
}

.nx-tc-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--nx-font-mono);
  font-weight: var(--nx-fw-medium);
  font-size: var(--nx-fs-lg);
  letter-spacing: var(--nx-ls-wide);
  color: var(--nx-text-secondary);
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--nx-duration-base) var(--nx-ease-standard),
    filter var(--nx-duration-base) var(--nx-ease-standard);
  white-space: nowrap;
}

.nx-tc-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--nx-primary);
}

.nx-tc-logo .bi {
  margin-right: var(--nx-space-2);
  font-size: 0.9em;
}

/* ==========================================================================
   21. BUSINESS METRICS
   ========================================================================== */

.nx-tc-metrics__card {
  text-align: center;
}

.nx-tc-metrics__card .nx-stat-card__value {
  font-size: var(--nx-fs-h2);
}

/* ==========================================================================
   PHASE 2B
   ========================================================================== */

/* ==========================================================================
   22. INDUSTRIES
   Reuses the global .nx-card component (components/cards.css) directly —
   no page-specific card CSS needed.
   ========================================================================== */

.nx-tc-industry-card {
  width: 100%;
}

/* ==========================================================================
   23. PROCESS / WORKFLOW
   Distinct from Home 01's process timeline (circular nodes + dashed
   connector): rounded-square nodes on a solid gradient connector bar,
   matching Home 02's more geometric, enterprise-blueprint identity.
   ========================================================================== */

.nx-tc-process__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--nx-space-4);
  position: relative;
}

.nx-tc-process__track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8.5%;
  right: 8.5%;
  height: 3px;
  border-radius: var(--nx-radius-pill);
  background: linear-gradient(90deg, var(--nx-signal-600), var(--nx-circuit-600));
  opacity: 0.35;
  z-index: 0;
}

.nx-tc-process__step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.nx-tc-process__number {
  --size: 56px;
  width: var(--size);
  height: var(--size);
  margin: 0 auto var(--nx-space-4);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-md);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color-strong);
  color: var(--nx-primary);
  transition: var(--nx-transition-base);
}

.nx-tc-process__step:hover .nx-tc-process__number {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
  color: var(--nx-primary-contrast);
  transform: translateY(-3px);
}

.nx-tc-process__icon {
  font-size: 1.3rem;
}

.nx-tc-process__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-secondary);
  color: var(--nx-white);
  font-family: var(--nx-font-mono);
  font-size: 0.6rem;
  font-weight: var(--nx-fw-semibold);
  border: 2px solid var(--nx-surface);
}

.nx-tc-process__title {
  font-size: var(--nx-fs-md);
  margin-bottom: var(--nx-space-2);
}

.nx-tc-process__text {
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-secondary);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .nx-tc-process__track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--nx-space-8);
  }

  .nx-tc-process__track::before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .nx-tc-process__track {
    grid-template-columns: 1fr;
    row-gap: var(--nx-space-6);
    text-align: left;
  }

  .nx-tc-process__step {
    display: flex;
    align-items: flex-start;
    gap: var(--nx-space-4);
    text-align: left;
  }

  .nx-tc-process__number {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   25. PROJECT COST ESTIMATOR (Home 02)
   Duplicated from home.css's .nx-estimator / .nx-option-card system for
   the same page-independence reasons as above — same visual component,
   different underlying config (see cost-estimator-2.js). Home 01's
   cost-estimator.js is intentionally NOT reused directly here: its
   CONFIG hardcodes Home 01's specific options (e.g. E-commerce project
   type, a separate Design step, different timeline buckets), which
   don't match this section's specified Step 1–3 options — editing that
   shared file to fit would risk changing Home 01's estimator, which is
   out of scope. A small dedicated module reusing the same proven
   architecture avoids that risk entirely.
   ========================================================================== */

.nx-tc-estimator {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-xl);
  box-shadow: var(--nx-shadow-lg);
  overflow: hidden;
}

.nx-tc-estimator__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
}

@media (max-width: 991.98px) {
  .nx-tc-estimator__grid {
    grid-template-columns: 1fr;
  }
}

.nx-tc-estimator__main {
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
}

.nx-tc-estimator__stepper {
  display: flex;
  align-items: center;
  margin-bottom: var(--nx-space-8);
}

.nx-tc-estimator__stepper-item {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  color: var(--nx-text-muted);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium);
}

.nx-tc-estimator__stepper-dot {
  --size: 28px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border-color-strong);
  background: var(--nx-surface);
  color: var(--nx-text-secondary);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  transition: var(--nx-transition-base);
}

.nx-tc-estimator__stepper-item.is-active .nx-tc-estimator__stepper-dot {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
  color: var(--nx-primary-contrast);
}

.nx-tc-estimator__stepper-item.is-active {
  color: var(--nx-text-primary);
}

.nx-tc-estimator__stepper-item.is-complete .nx-tc-estimator__stepper-dot {
  background: var(--nx-success);
  border-color: var(--nx-success);
  color: var(--nx-white);
}

.nx-tc-estimator__stepper-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--nx-border-color);
  margin-inline: var(--nx-space-3);
}

@media (max-width: 575.98px) {
  .nx-tc-estimator__stepper-item span:last-child {
    display: none;
  }
}

.nx-tc-estimator__step {
  display: none;
}

.nx-tc-estimator__step.is-active {
  display: block;
  animation: nx-fade-up var(--nx-duration-base) var(--nx-ease-emphasized) both;
}

.nx-tc-estimator__step-title {
  margin-bottom: var(--nx-space-2);
}

.nx-tc-estimator__step-hint {
  color: var(--nx-text-secondary);
  margin-bottom: var(--nx-space-6);
}

.nx-tc-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nx-space-3);
}

@media (max-width: 575.98px) {
  .nx-tc-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nx-tc-option-card {
  position: relative;
}

.nx-tc-option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nx-tc-option-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-2);
  text-align: center;
  padding: var(--nx-space-4) var(--nx-space-3);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-md);
  background: var(--nx-surface);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-primary);
  cursor: pointer;
  transition: var(--nx-transition-base);
  height: 100%;
}

.nx-tc-option-card label .bi {
  font-size: 1.35rem;
  color: var(--nx-text-secondary);
  transition: var(--nx-transition-colors);
}

.nx-tc-option-card input:checked+label {
  border-color: var(--nx-primary);
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
}

.nx-tc-option-card input:checked+label .bi {
  color: var(--nx-primary);
}

.nx-tc-option-card input:focus-visible+label {
  outline: 2px solid var(--nx-primary);
  outline-offset: 2px;
}

.nx-tc-option-card__price {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-muted);
}

.nx-tc-option-card input:checked+label .nx-tc-option-card__price {
  color: var(--nx-primary);
}

.nx-tc-option-card--check label {
  position: relative;
}

.nx-tc-option-card--check label::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--nx-border-color-strong);
  background: var(--nx-surface);
}

.nx-tc-option-card--check input:checked+label::after {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.7 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L7 9.6l5.3-5.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.nx-tc-estimator__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--nx-space-8);
}

.nx-tc-estimator__summary {
  background: var(--nx-ink-900);
  color: var(--nx-white);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .nx-tc-estimator__summary {
  background: var(--nx-ink-950);
}

.nx-tc-estimator__summary-label {
  color: var(--nx-slate-300);
  margin-bottom: var(--nx-space-2);
}

.nx-tc-estimator__summary-value {
  font-family: var(--nx-font-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-weight: var(--nx-fw-bold);
  line-height: 1.1;
  margin-bottom: var(--nx-space-6);
  word-break: break-word;
}

.nx-tc-estimator__summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-6);
  padding-bottom: var(--nx-space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-grow: 1;
}

.nx-tc-estimator__summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-sm);
}

.nx-tc-estimator__summary-row dt {
  color: var(--nx-slate-400);
}

.nx-tc-estimator__summary-row dd {
  margin: 0;
  color: var(--nx-white);
  font-weight: var(--nx-fw-medium);
  text-align: right;
}

.nx-tc-estimator__summary-actions {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-tc-estimator__summary-actions .btn-outline-light {
  --bs-btn-font-size: var(--nx-fs-sm);
}