/* NORDVEX LABS — Phase 1 brand system */
:root {
  --nv-primary: #14283f;
  --nv-secondary: #168c91;
  --nv-secondary-dark: #0f6a6e;
  --nv-bg: #f4f7f9;
  --nv-white: #ffffff;
  --nv-text: #243447;
  --nv-muted: #5b6b7c;
  --nv-line: #d7e0e8;
  --nv-radius: 14px;
  --nv-shadow: 0 12px 40px rgba(20, 40, 63, 0.08);
  --nv-max: 1120px;
  --nv-font: "DM Sans", "Segoe UI", sans-serif;
  --nv-display: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nv-font);
  color: var(--nv-text);
  background: var(--nv-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.nv-container {
  width: min(100% - 2.5rem, var(--nv-max));
  margin-inline: auto;
}

.nv-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nv-secondary);
}

.nv-section {
  padding: 4.5rem 0;
}

.nv-section--tight {
  padding: 3rem 0;
}

.nv-section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.nv-section__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--nv-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  color: var(--nv-primary);
  letter-spacing: -0.02em;
}

.nv-section__head p {
  margin: 0;
  color: var(--nv-muted);
}

/* Header */
.nv-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nv-header.is-scrolled {
  border-bottom-color: var(--nv-line);
  box-shadow: 0 8px 24px rgba(20, 40, 63, 0.04);
}

.nv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.nv-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nv-logo img {
  height: 34px;
  width: auto;
}

.nv-nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-nav__links a {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nv-text);
  border-radius: 999px;
}

.nv-nav__links a:hover,
.nv-nav__links a.is-active {
  color: var(--nv-primary);
  background: rgba(22, 140, 145, 0.08);
}

.nv-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nv-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nv-line);
  border-radius: 10px;
  background: var(--nv-white);
  cursor: pointer;
}

.nv-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--nv-primary);
  position: relative;
}

.nv-menu-toggle span::before,
.nv-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--nv-primary);
}

.nv-menu-toggle span::before {
  top: -5px;
}

.nv-menu-toggle span::after {
  top: 5px;
}

.nv-drawer {
  display: none;
  position: fixed;
  inset: 74px 0 0;
  background: rgba(20, 40, 63, 0.35);
  z-index: 39;
}

.nv-drawer.is-open {
  display: block;
}

.nv-drawer__panel {
  background: var(--nv-white);
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid var(--nv-line);
}

.nv-drawer__panel a {
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  font-weight: 550;
}

.nv-drawer__panel a:hover {
  background: var(--nv-bg);
}

/* Buttons */
.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nv-btn:hover {
  transform: translateY(-1px);
}

.nv-btn--primary {
  background: var(--nv-secondary);
  color: var(--nv-white);
}

.nv-btn--primary:hover {
  background: var(--nv-secondary-dark);
}

.nv-btn--dark {
  background: var(--nv-primary);
  color: var(--nv-white);
}

.nv-btn--ghost {
  background: transparent;
  border-color: var(--nv-line);
  color: var(--nv-primary);
}

.nv-btn--ghost:hover {
  border-color: var(--nv-secondary);
  color: var(--nv-secondary);
}

.nv-btn--white {
  background: var(--nv-white);
  color: var(--nv-primary);
}

.nv-btn.is-disabled,
.nv-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Hero */
.nv-hero {
  padding: 2.5rem 0 1rem;
}

.nv-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

.nv-hero__copy {
  padding: 1.25rem 0 0.5rem;
}

.nv-hero__copy h1 {
  margin: 0 0 1rem;
  font-family: var(--nv-display);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--nv-primary);
  max-width: 14ch;
}

.nv-hero__copy p {
  margin: 0 0 1.5rem;
  color: var(--nv-muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.nv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nv-hero__media {
  border-radius: calc(var(--nv-radius) + 6px);
  overflow: hidden;
  min-height: 280px;
  background: var(--nv-primary);
  box-shadow: var(--nv-shadow);
}

.nv-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Cards / grids */
.nv-grid-4,
.nv-grid-3,
.nv-grid-2 {
  display: grid;
  gap: 1rem;
}

.nv-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  overflow: hidden;
}

.nv-card__media {
  aspect-ratio: 4 / 3;
  background: var(--nv-primary);
}

.nv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.nv-card__body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--nv-display);
  font-size: 1.08rem;
  color: var(--nv-primary);
}

.nv-card__body p {
  margin: 0;
  color: var(--nv-muted);
  font-size: 0.95rem;
}

.nv-card--link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nv-card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--nv-shadow);
}

.nv-feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--nv-white);
  border: 1px solid var(--nv-line);
  border-radius: 12px;
}

.nv-feature-list strong {
  display: block;
  color: var(--nv-primary);
}

.nv-feature-list span {
  color: var(--nv-muted);
  font-size: 0.93rem;
}

.nv-step {
  counter-increment: nvstep;
  position: relative;
  padding-left: 3rem;
}

.nv-step::before {
  content: counter(nvstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--nv-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.nv-steps {
  counter-reset: nvstep;
  display: grid;
  gap: 1rem;
}

/* Products */
.nv-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nv-toolbar input,
.nv-toolbar select,
.nv-form input,
.nv-form select,
.nv-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--nv-line);
  border-radius: 12px;
  background: var(--nv-white);
  color: var(--nv-text);
}

.nv-form textarea {
  min-height: 120px;
  resize: vertical;
}

.nv-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.nv-product-card__img {
  aspect-ratio: 1;
  background: #e7eef3;
}

.nv-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}

.nv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 140, 145, 0.1);
  color: var(--nv-secondary-dark);
  font-size: 0.78rem;
  font-weight: 650;
}

.nv-chip--muted {
  background: var(--nv-bg);
  color: var(--nv-muted);
}

.nv-empty {
  padding: 2rem;
  text-align: center;
  color: var(--nv-muted);
  background: var(--nv-white);
  border: 1px dashed var(--nv-line);
  border-radius: var(--nv-radius);
}

.nv-detail {
  display: grid;
  gap: 1.5rem;
}

.nv-detail__media {
  border-radius: var(--nv-radius);
  overflow: hidden;
  background: #e7eef3;
  border: 1px solid var(--nv-line);
}

.nv-detail__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.nv-sku-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--nv-white);
  border: 1px solid var(--nv-line);
  border-radius: 12px;
  overflow: hidden;
}

.nv-sku-table th,
.nv-sku-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--nv-line);
  font-size: 0.95rem;
}

.nv-sku-table th {
  background: var(--nv-bg);
  color: var(--nv-muted);
  font-weight: 650;
}

.nv-sku-table tr:last-child td {
  border-bottom: 0;
}

.nv-notice {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(20, 40, 63, 0.05);
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.nv-panel {
  background: var(--nv-white);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  padding: 1.35rem;
}

.nv-panel h3 {
  margin-top: 0;
  color: var(--nv-primary);
  font-family: var(--nv-display);
}

.nv-form {
  display: grid;
  gap: 0.85rem;
}

.nv-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-primary);
}

.nv-form__row {
  display: grid;
  gap: 0.85rem;
}

.nv-form__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nv-muted);
  font-weight: 400;
}

.nv-form__status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--nv-secondary-dark);
}

.nv-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.nv-band {
  background: var(--nv-primary);
  color: #fff;
  border-radius: calc(var(--nv-radius) + 4px);
  padding: 2rem 1.5rem;
}

.nv-band h2 {
  margin: 0 0 0.6rem;
  font-family: var(--nv-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.nv-band p {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38rem;
}

.nv-band .nv-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Page hero compact */
.nv-page-hero {
  padding: 2.5rem 0 1rem;
}

.nv-page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--nv-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--nv-primary);
  letter-spacing: -0.02em;
}

.nv-page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--nv-muted);
}

/* Footer */
.nv-footer {
  margin-top: 3rem;
  background: var(--nv-primary);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

.nv-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.nv-footer a:hover {
  color: #fff;
}

.nv-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.nv-footer__brand strong {
  display: block;
  color: #fff;
  font-family: var(--nv-display);
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.nv-footer__cols {
  display: grid;
  gap: 1.25rem;
}

.nv-footer__cols h4 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nv-footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.nv-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nv-float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
}

.nv-float-wa.is-ready {
  display: inline-flex;
}

/* Legal stubs */
.nv-prose {
  max-width: 46rem;
}

.nv-prose h2 {
  color: var(--nv-primary);
  font-family: var(--nv-display);
}

.nv-prose p,
.nv-prose li {
  color: var(--nv-muted);
}

@media (min-width: 720px) {
  .nv-grid-2,
  .nv-form__row,
  .nv-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .nv-toolbar {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .nv-product-grid,
  .nv-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nv-detail {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .nv-split,
  .nv-footer__grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .nv-footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .nv-nav__links {
    display: flex;
  }

  .nv-menu-toggle {
    display: none;
  }

  .nv-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    min-height: 520px;
  }

  .nv-hero__media,
  .nv-hero__media img {
    min-height: 520px;
  }

  .nv-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .nv-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nv-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .nv-steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .nv-step {
    padding-left: 0;
    padding-top: 3rem;
  }

  .nv-step::before {
    top: 0;
  }
}
