/* ==========================================================================
   Texvian IT — HOME 03: SOFTWARE AGENCY (page-specific)
   Built entirely from existing tokens/components (variables, typography,
   buttons, cards, badges, .nx-section, .nx-reveal). Services, stats and
   portfolio sections below intentionally reuse the shared .nx-card /
   .nx-stat-card / .nx-media-card primitives from components/cards.css
   rather than introducing parallel card systems — only the hero and the
   "how we work" list needed page-specific composition classes.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.nx-hero3 {
  position: relative;
  padding-block-start: clamp(2rem, 1.6rem + 1.5vw, 3.5rem);
  padding-block-end: var(--nx-section-space-y-sm);
  overflow: hidden;
}

.nx-hero3__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(520px 400px at 88% 12%, color-mix(in srgb, var(--nx-secondary) 16%, transparent), transparent 70%),
    radial-gradient(460px 360px at 4% 90%, color-mix(in srgb, var(--nx-primary) 12%, transparent), transparent 70%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 0%, transparent 75%);
  opacity: 0.8;
}

.nx-hero3__row {
  position: relative;
  z-index: 1;
}

.nx-hero3__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-5);
}

.nx-hero3__eyebrow-row .badge-status {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  padding: var(--nx-space-2);
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
}

.nx-hero3__eyebrow-row .badge-status::before {
  display: none;
}

.nx-hero3__title {
  font-size: var(--nx-fs-h1);
  margin-bottom: var(--nx-space-5);
  max-width: 17ch;
}

.nx-hero3__lead {
  max-width: 44ch;
  margin-bottom: var(--nx-space-6);
}

.nx-hero3__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-7);
}

.nx-hero3__trust {
  display: flex;
  align-items: center;
  gap: var(--nx-space-4);
}

.nx-hero3__trust-avatars {
  display: flex;
}

.nx-hero3__trust-avatars span {
  --size: 34px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-semibold);
  border: 2px solid var(--nx-body-bg);
  margin-left: -10px;
}

.nx-hero3__trust-avatars span img {
  --size: 34px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nx-primary-soft);
  color: var(--nx-primary);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-semibold);
  border: 2px solid var(--nx-body-bg);
  margin-left: -10px;
}

.nx-hero3__trust-avatars span:first-child {
  margin-left: 0;
}

.nx-hero3__trust-text {
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-secondary);
  margin: 0;
}

.nx-hero3__trust-text strong {
  color: var(--nx-text-primary);
}

/* ---------------- Hero visual: product build mockup ---------------- */
.nx-hero3__visual {
  position: relative;
  padding: var(--nx-space-6);
}

.nx-hero3__browser {
  position: relative;
  z-index: 1;
  background: var(--nx-ink-900);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  overflow: hidden;
}

.nx-hero3__browser-bar {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-3) var(--nx-space-4);
  background: var(--nx-ink-800);
  border-bottom: 1px solid var(--nx-ink-700);
}

.nx-hero3__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nx-ink-600);
}

.nx-hero3__browser-label {
  margin-left: var(--nx-space-2);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  color: var(--nx-slate-400);
}

.nx-hero3__browser-body {
  padding: var(--nx-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-5);
}

.nx-hero3__skel-nav {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
}

.nx-hero3__skel-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-circuit-600);
  flex-shrink: 0;
}

.nx-hero3__skel-line {
  height: 8px;
  border-radius: var(--nx-radius-pill);
  background: var(--nx-ink-700);
}

.nx-hero3__skel-line--sm {
  width: 48px;
}

.nx-hero3__skel-line--md {
  width: 84px;
}

.nx-hero3__skel-line--lg {
  width: 130px;
}

.nx-hero3__skel-nav .nx-hero3__skel-line:last-child {
  margin-left: auto;
}

.nx-hero3__skel-hero {
  height: 76px;
  border-radius: var(--nx-radius-md);
  background: linear-gradient(135deg, var(--nx-ink-700), var(--nx-ink-800));
  border: 1px solid var(--nx-ink-600);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--nx-space-3);
  padding-inline: var(--nx-space-5);
}

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

.nx-hero3__skel-card {
  height: 64px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-ink-800);
  border: 1px solid var(--nx-ink-700);
  padding: var(--nx-space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nx-hero3__skel-card .nx-hero3__skel-line {
  background: var(--nx-ink-600);
}

/* Floating "deploy" chip */
.nx-hero3__badge-deploy {
  position: absolute;
  top: 35px;
  right: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) var(--nx-space-4);
  background: var(--nx-circuit-600);
  color: var(--nx-ink-950);
  border-radius: var(--nx-radius-pill);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-semibold);
  letter-spacing: var(--nx-ls-wide);
  box-shadow: var(--nx-shadow-md);
}

/* Floating "commit" card */
.nx-hero3__badge-commit {
  position: absolute;
  left: -8%;
  bottom: 10%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-3) var(--nx-space-4);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-lg);
  max-width: 230px;
}

.nx-hero3__badge-commit-icon {
  --size: 32px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nx-green-100, #dcfce7);
  color: var(--nx-green-600);
}

.nx-hero3__badge-commit-text {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  line-height: 1.4;
  color: var(--nx-text-secondary);
}

.nx-hero3__badge-commit-text strong {
  display: block;
  color: var(--nx-text-primary);
  font-weight: var(--nx-fw-semibold);
}

@media (max-width: 767.98px) {

  .nx-hero3__badge-deploy,
  .nx-hero3__badge-commit {
    position: static;
    margin-top: var(--nx-space-4);
    max-width: none;
  }
}

/* ==========================================================================
   2. ABOUT
   ========================================================================== */

.nx-sa-about__text {
  max-width: 52ch;
  margin-bottom: var(--nx-space-7);
}

.nx-sa-principle-list {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-5);
}

.nx-sa-principle {
  display: flex;
  align-items: flex-start;
  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-md);
  transition: var(--nx-transition-base);
}

.nx-sa-principle:hover {
  border-color: var(--nx-border-color-strong);
  box-shadow: var(--nx-shadow-sm);
}

.nx-sa-principle__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;
}

.nx-sa-principle__title {
  font-size: var(--nx-fs-md);
  font-weight: var(--nx-fw-semibold);
  margin-bottom: var(--nx-space-1);
  color: var(--nx-text-primary);
}

.nx-sa-principle__text {
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-secondary);
  margin: 0;
}

/* Featured Work (portfolio) card text now lives in the shared
   components/portfolio-card.css (.nx-portfolio-tag/__title/__meta),
   since Home 05 reuses the same pattern. See that file. */