:root {
  --emerald-950: #042817;
  --emerald-925: #052f1d;
  --emerald-900: #06402b;
  --emerald-800: #087f4d;
  --emerald-700: #0a9c5f;
  --gold: #d4af37;
  --gold-soft: #f4d978;
  --off-white: #f9f9f4;
  --paper: #fffdf4;
  --ink: #082016;
  --muted: #6f7d73;
  --line: rgba(212, 175, 55, 0.24);
  --shadow: 0 28px 80px rgba(4, 40, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--emerald-950);
  color: var(--off-white);
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.nxp-site {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(10, 156, 95, 0.22), transparent 36rem),
    var(--emerald-950);
}

.nxp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.85rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(249, 249, 244, 0.09);
  background: rgba(4, 40, 23, 0.78);
  backdrop-filter: blur(18px);
}

body[data-role="admin"] .nxp-header {
  gap: clamp(0.45rem, 1vw, 0.85rem);
}

.nxp-app-shell {
  padding-top: 0;
}

.nxp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--off-white);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.nxp-logo strong {
  color: var(--gold);
}

.nxp-logo-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(249, 249, 244, 0.04);
  box-shadow: 0 12px 32px rgba(2, 19, 12, 0.24), 0 0 0 1px rgba(212, 175, 55, 0.32);
  overflow: hidden;
}

.nxp-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.nxp-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  min-width: 0;
}

body[data-role="admin"] .nxp-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.42rem, 0.9vw, 0.82rem);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

body[data-role="admin"] .nxp-nav::-webkit-scrollbar {
  display: none;
}

.nxp-nav a {
  position: relative;
  color: rgba(249, 249, 244, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body[data-role="admin"] .nxp-nav a {
  flex: 0 0 auto;
  font-size: clamp(0.68rem, 0.86vw, 0.78rem);
  letter-spacing: 0;
}

body[data-role="admin"] .nxp-header-cta {
  min-height: 38px;
  padding: 0.65rem 0.95rem;
  font-size: 0.78rem;
}

.nxp-nav a:hover,
.nxp-nav a.active {
  color: var(--gold-soft);
}

.nxp-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.nxp-header-cta,
.nxp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nxp-header-cta,
.nxp-btn-primary {
  color: #102014;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.24);
}

.nxp-btn-ghost {
  color: var(--off-white);
  border-color: rgba(249, 249, 244, 0.28);
  background: rgba(249, 249, 244, 0.08);
}

.nxp-btn-ghost.dark {
  color: var(--emerald-950);
  border-color: rgba(4, 40, 23, 0.2);
  background: rgba(4, 40, 23, 0.05);
}

.nxp-header-cta:hover,
.nxp-btn:hover {
  transform: translateY(-2px);
}

.nxp-hero {
  position: relative;
  min-height: 100svh;
  padding: 8rem clamp(1rem, 4vw, 4.5rem) 4rem;
  display: grid;
  align-items: center;
}

.nxp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.95), rgba(4, 40, 23, 0.72), rgba(4, 40, 23, 0.5)),
    url("https://images.unsplash.com/photo-1598514983318-2f64f8f4796c?auto=format&fit=crop&w=2100&q=85") center/cover;
  transform: scale(1.02);
}

.nxp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(0deg, var(--emerald-950), transparent);
}

.nxp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.nxp-hero-copy h1 {
  max-width: 880px;
  margin: 1rem 0 1.15rem;
  font-size: clamp(2.35rem, 5.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.nxp-dashboard-hero h1 {
  max-width: 980px;
  margin: 1rem 0 1.15rem;
  font-size: clamp(2.15rem, 5.2vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.nxp-hero-copy p,
.nxp-dashboard-hero p,
.nxp-section-head p,
.nxp-split p {
  max-width: 720px;
  color: rgba(249, 249, 244, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.nxp-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nxp-kicker.dark {
  color: var(--emerald-900);
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(6, 64, 43, 0.16);
}

.nxp-actions,
.nxp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.nxp-trust-row {
  margin-top: 1.4rem;
  color: rgba(249, 249, 244, 0.7);
  font-size: 0.84rem;
  font-weight: 800;
}

.nxp-trust-row span {
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem;
}

.nxp-command-card,
.nxp-terminal-card,
.nxp-price-card,
.nxp-feature-card,
.nxp-glass-form {
  border: 1px solid rgba(249, 249, 244, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(249, 249, 244, 0.16), rgba(249, 249, 244, 0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.nxp-command-card {
  min-height: 560px;
  padding: 1.4rem;
  display: grid;
  gap: 1.25rem;
}

.nxp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(249, 249, 244, 0.7);
}

.nxp-card-top strong {
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(212, 175, 55, 0.12);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nxp-orbit {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(4, 40, 23, 0.7), rgba(6, 64, 43, 0.42));
  overflow: hidden;
}

.nxp-orbit::before,
.nxp-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 50%;
}

.nxp-orbit::before {
  width: 210px;
  height: 210px;
}

.nxp-orbit::after {
  width: 310px;
  height: 310px;
}

.nxp-orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--emerald-950);
  font-weight: 1000;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.35);
}

.nxp-orbit span {
  position: absolute;
  z-index: 2;
  transform: rotate(calc(var(--i) * 90deg)) translateX(118px) rotate(calc(var(--i) * -90deg));
  border-radius: 999px;
  min-width: 64px;
  max-width: 82px;
  padding: 0.42rem 0.58rem;
  background: rgba(249, 249, 244, 0.12);
  color: var(--off-white);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.nxp-card-metrics,
.nxp-investor-grid,
.nxp-pricing-grid,
.nxp-admin-grid,
.nxp-dashboard-grid,
.nxp-feature-grid {
  display: grid;
  gap: 1rem;
}

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

.nxp-card-metrics div,
.nxp-investor-grid div {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  padding: 1.05rem;
  background: rgba(4, 40, 23, 0.32);
}

.nxp-card-metrics b,
.nxp-investor-grid strong {
  display: block;
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.nxp-card-metrics span,
.nxp-investor-grid span {
  color: rgba(249, 249, 244, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.nxp-ticker {
  overflow: hidden;
  border-block: 1px solid rgba(212, 175, 55, 0.24);
  background: #061e14;
}

.nxp-ticker div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.95rem 1rem;
  animation: nxp-marquee 28s linear infinite;
}

.nxp-ticker span {
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes nxp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nxp-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4.5rem);
}

.nxp-section-light {
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.16), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

.nxp-section-head {
  max-width: 980px;
  margin: 0 auto 3rem;
  text-align: center;
}

.nxp-section-head.compact {
  margin-bottom: 1.5rem;
}

.nxp-section-head h2,
.nxp-split h2 {
  margin: 1rem auto;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.nxp-section-head p {
  margin-inline: auto;
  color: #526057;
}

.nxp-feature-grid {
  max-width: 1220px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nxp-about-principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.nxp-feature-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(4, 40, 23, 0.08);
  color: var(--ink);
}

.nxp-feature-card span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--emerald-950);
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
  padding: 0.2rem;
}

.nxp-feature-card .nxp-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nxp-feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.nxp-feature-card p,
.nxp-price-card p,
.nxp-terminal-card p {
  color: #526057;
  line-height: 1.65;
}

.nxp-dark-panel {
  background:
    linear-gradient(135deg, rgba(4, 40, 23, 0.96), rgba(6, 64, 43, 0.92)),
    url("https://images.unsplash.com/photo-1513985131190-16a51faf53a6?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.nxp-split {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.nxp-investor-grid {
  grid-template-columns: repeat(2, 1fr);
}

.nxp-table-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 22px;
  border: 1px solid rgba(4, 40, 23, 0.09);
  box-shadow: 0 22px 60px rgba(4, 40, 23, 0.09);
  -webkit-overflow-scrolling: touch;
}

.nxp-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.88);
}

.nxp-table th,
.nxp-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(4, 40, 23, 0.08);
  vertical-align: top;
}

.nxp-table th {
  color: var(--emerald-900);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nxp-table td {
  color: #26362d;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nxp-dashboard-hero {
  min-height: 64svh;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1rem, 4vw, 4.5rem) 4rem;
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.96), rgba(4, 40, 23, 0.66)),
    url("https://images.unsplash.com/photo-1605000797499-95a51c5269ae?auto=format&fit=crop&w=1800&q=85") center/cover;
}

body[data-role="admin"] .nxp-dashboard-hero {
  min-height: 46svh;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

body[data-role="admin"] .nxp-dashboard-hero h1 {
  max-width: 900px;
}

body[data-role="admin"] .nxp-section {
  width: 100%;
  overflow: hidden;
}

body[data-role="admin"] .nxp-dashboard-grid,
body[data-role="admin"] .nxp-admin-grid {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

body[data-role="admin"] .nxp-dashboard-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

body[data-role="admin"] .nxp-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body[data-role="admin"] .nxp-terminal-card,
body[data-role="admin"] .nxp-feature-card {
  min-width: 0;
}

.nxp-dashboard-hero.buyer {
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.96), rgba(4, 40, 23, 0.68)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.nxp-dashboard-hero.admin {
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.96), rgba(4, 40, 23, 0.68)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.nxp-dashboard-hero.seo {
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.96), rgba(4, 40, 23, 0.62)),
    url("https://images.unsplash.com/photo-1560493676-04071c5f467b?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.nxp-dashboard-hero > div {
  max-width: 980px;
}

.nxp-dashboard-grid {
  grid-template-columns: 1fr 0.75fr;
  background: var(--paper);
}

.nxp-glass-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.nxp-glass-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--emerald-950);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nxp-glass-form input,
.nxp-glass-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(4, 40, 23, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #fbfff8;
  color: var(--ink);
  outline: none;
}

.nxp-glass-form textarea {
  min-height: 112px;
  resize: vertical;
}

.nxp-terminal-card {
  padding: 1.35rem;
  color: var(--off-white);
  background: linear-gradient(145deg, var(--emerald-950), var(--emerald-900));
}

.nxp-terminal-card span,
.nxp-price-card span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nxp-terminal-card code {
  display: block;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.2);
  white-space: normal;
}

.nxp-terminal-card p {
  color: rgba(249, 249, 244, 0.74);
}

.nxp-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
}

.nxp-price-card {
  padding: 1.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(4, 40, 23, 0.08);
}

.nxp-price-card.featured {
  color: var(--off-white);
  background: linear-gradient(145deg, var(--emerald-900), var(--emerald-950));
  border-color: rgba(212, 175, 55, 0.3);
}

.nxp-price-card h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.nxp-terminal-card h2,
.nxp-feature-card h3 {
  overflow-wrap: anywhere;
}

.nxp-price-card.featured p {
  color: rgba(249, 249, 244, 0.75);
}

.nxp-blur {
  filter: blur(3px);
  user-select: none;
}

.nxp-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
}

.nxp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: #031c10;
  color: rgba(249, 249, 244, 0.72);
}

.nxp-footer strong {
  color: var(--off-white);
}

.nxp-footer p {
  margin: 0.35rem 0 0;
}

.nxp-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.nxp-footer span {
  border: 1px solid rgba(249, 249, 244, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .nxp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-wrap: wrap;
  }

  .nxp-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .nxp-hero-grid,
  .nxp-split,
  .nxp-dashboard-grid,
  .nxp-pricing-grid {
    grid-template-columns: 1fr;
  }

  .nxp-command-card {
    min-height: auto;
  }

  .nxp-feature-grid,
  .nxp-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nxp-about-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nxp-header {
    align-items: flex-start;
  }

  .nxp-header-cta {
    display: none;
  }

  .nxp-hero {
    padding-top: 4rem;
    min-height: auto;
  }

  .nxp-hero-copy h1,
  .nxp-dashboard-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1.04;
  }

  .nxp-card-metrics,
  .nxp-investor-grid,
  .nxp-feature-grid,
  .nxp-admin-grid,
  .nxp-glass-form {
    grid-template-columns: 1fr;
  }

  .nxp-orbit {
    min-height: 260px;
  }

  .nxp-orbit span {
    transform: rotate(calc(var(--i) * 90deg)) translateX(88px) rotate(calc(var(--i) * -90deg));
    min-width: 58px;
    max-width: 70px;
    font-size: 0.62rem;
  }

  .nxp-footer {
    display: grid;
  }

  .nxp-footer div:last-child {
    justify-content: flex-start;
  }
}

.nxp-app-shell {
  padding-top: 0;
}

.nxp-menu-button {
  display: none;
  border: 1px solid rgba(249, 249, 244, 0.2);
  border-radius: 999px;
  background: rgba(249, 249, 244, 0.08);
  color: var(--off-white);
  padding: 0.65rem 0.85rem;
  font-weight: 900;
}

.nxp-sidebar {
  position: fixed;
  z-index: 30;
  top: 86px;
  left: clamp(1rem, 4vw, 4.5rem);
  width: 260px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 22px;
  background: rgba(4, 40, 23, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 1rem;
  display: none;
}

body[data-role="public"] .nxp-sidebar {
  display: none;
}

.nxp-sidebar-backdrop {
  display: none;
}

.nxp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: var(--gold-soft);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.nxp-sidebar-head button {
  display: none;
  border: 0;
  background: transparent;
  color: rgba(249, 249, 244, 0.75);
  font-weight: 900;
}

.nxp-sidebar nav {
  display: grid;
  gap: 0.4rem;
}

.nxp-sidebar a {
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: rgba(249, 249, 244, 0.76);
  font-weight: 850;
}

.nxp-sidebar a:hover,
.nxp-sidebar a.active {
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.nxp-auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  align-items: stretch;
  padding: 8rem clamp(1rem, 4vw, 4.5rem) 4rem;
  gap: 1.5rem;
  background:
    linear-gradient(90deg, rgba(4, 40, 23, 0.94), rgba(4, 40, 23, 0.72)),
    url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.nxp-auth-card,
.nxp-auth-side {
  border: 1px solid rgba(249, 249, 244, 0.14);
  border-radius: 28px;
  background: rgba(4, 40, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.nxp-auth-card h1 {
  max-width: 720px;
  margin: 1rem 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.nxp-auth-card p,
.nxp-auth-side p {
  color: rgba(249, 249, 244, 0.76);
  line-height: 1.75;
}

.nxp-auth-form,
.nxp-search-bar {
  display: grid;
  gap: 1rem;
}

.nxp-auth-form label,
.nxp-auth-form fieldset {
  display: grid;
  gap: 0.45rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.nxp-auth-form span,
.nxp-auth-form legend {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nxp-auth-form input,
.nxp-search-bar input,
.nxp-glass-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(249, 249, 244, 0.18);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.nxp-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.nxp-role-grid label {
  cursor: pointer;
}

.nxp-role-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nxp-role-grid span {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 16px;
  background: rgba(249, 249, 244, 0.08);
  color: var(--off-white);
  text-align: center;
}

.nxp-role-grid input:checked + span {
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.nxp-auth-side {
  display: grid;
  align-content: end;
}

.nxp-auth-side h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.nxp-feature-card a,
.nxp-table a {
  color: var(--emerald-900);
  font-weight: 1000;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.7);
  text-underline-offset: 0.25rem;
}

.nxp-upload-form .span-2 {
  grid-column: 1 / -1;
}

.nxp-media-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.nxp-media-preview img,
.nxp-media-preview video {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.nxp-search-bar {
  max-width: 1220px;
  margin: 0 auto 1rem;
  grid-template-columns: 1fr 1fr 0.7fr auto;
  align-items: end;
  border: 1px solid rgba(4, 40, 23, 0.08);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(4, 40, 23, 0.08);
}

.nxp-toast {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 1rem;
  color: var(--off-white);
  background: rgba(4, 40, 23, 0.94);
  box-shadow: var(--shadow);
}

.nxp-toast[hidden] {
  display: none;
}

.nxp-form-note {
  color: rgba(249, 249, 244, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.nxp-section-flush {
  padding-top: 0;
}

.nxp-product-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.nxp-product-catalog.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nxp-product-card {
  overflow: hidden;
  border: 1px solid rgba(4, 40, 23, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(4, 40, 23, 0.1);
}

.nxp-product-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.nxp-product-card > div {
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
}

.nxp-product-card span {
  color: var(--emerald-800);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nxp-product-card h2,
.nxp-product-card h3 {
  margin: 0;
  color: var(--emerald-950);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.nxp-product-card p,
.nxp-product-card li {
  color: #536158;
  line-height: 1.65;
}

.nxp-product-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.nxp-product-card a:not(.nxp-btn) {
  color: var(--emerald-900);
  font-weight: 900;
}

.nxp-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nxp-filter-strip {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: -1.2rem 0 1.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(4, 40, 23, 0.08);
  border-radius: 18px;
  background: rgba(255, 253, 244, 0.94);
  backdrop-filter: blur(12px);
}

.nxp-filter-strip a {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--emerald-900);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(4, 40, 23, 0.08);
}

.nxp-process-list {
  display: grid;
  gap: 4rem;
}

.nxp-process-card,
.nxp-split-light {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.nxp-process-card.reverse img {
  order: 2;
}

.nxp-process-card img,
.nxp-story-image {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(4, 40, 23, 0.14);
}

.nxp-process-card h2,
.nxp-split-light h2 {
  margin: 0.35rem 0 0.8rem;
  color: var(--emerald-950);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.nxp-process-card p,
.nxp-split-light p {
  color: #536158;
  line-height: 1.75;
}

.nxp-process-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.nxp-process-card li {
  position: relative;
  padding-left: 1.2rem;
  color: #536158;
  line-height: 1.55;
}

.nxp-process-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--gold);
}

.nxp-image-frame {
  position: relative;
}

.nxp-image-frame::before {
  content: "";
  position: absolute;
  inset: -0.9rem;
  border-radius: 22px;
  background: rgba(212, 175, 55, 0.18);
  transform: rotate(3deg);
}

.nxp-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 360px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.nxp-compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.nxp-compliance-grid span {
  border: 1px solid rgba(249, 249, 244, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(249, 249, 244, 0.08);
  color: var(--off-white);
  font-weight: 900;
}

.nxp-standards-link,
.nxp-read-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--gold);
  font-weight: 1000;
}

.nxp-footer-rich {
  display: block;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 4.5rem) 1.5rem;
  border-top: 1px solid rgba(249, 249, 244, 0.1);
  background: var(--emerald-950);
  color: var(--off-white);
}

.nxp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.nxp-footer-rich h3,
.nxp-footer-rich h4 {
  margin: 0 0 1rem;
}

.nxp-footer-rich h3 {
  font-size: 1.45rem;
}

.nxp-footer-rich h3 strong,
.nxp-footer-rich h4 {
  color: var(--gold);
}

.nxp-footer-rich p,
.nxp-footer-rich a {
  display: block;
  margin: 0 0 0.7rem;
  color: rgba(249, 249, 244, 0.76);
  line-height: 1.65;
}

.nxp-footer-rich a:hover {
  color: var(--gold-soft);
}

.nxp-social-row {
  display: flex;
  gap: 0.8rem;
}

.nxp-social-row a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 249, 244, 0.08);
  color: var(--off-white);
  font-weight: 1000;
}

.nxp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(249, 249, 244, 0.1);
  color: rgba(249, 249, 244, 0.58);
  font-size: 0.85rem;
}

.nxp-footer-bottom a {
  color: var(--gold-soft);
  font-weight: 800;
}

.nxp-footer-bottom a:hover {
  color: var(--off-white);
}

.nxp-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.nxp-demo-grid a {
  display: grid;
  gap: 0.25rem;
  min-height: 84px;
  padding: 0.95rem;
  border: 1px solid rgba(234, 200, 82, 0.3);
  border-radius: 16px;
  background: rgba(249, 249, 244, 0.08);
  color: var(--cream);
}

.nxp-demo-grid a:hover {
  border-color: rgba(234, 200, 82, 0.78);
  background: rgba(234, 200, 82, 0.14);
}

.nxp-demo-grid span {
  color: var(--gold-soft);
  font-weight: 900;
}

.nxp-demo-grid small {
  color: rgba(249, 249, 244, 0.66);
  font-weight: 700;
  line-height: 1.35;
}

.nxp-inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 220px;
}

.nxp-inline-form input {
  width: 92px;
  min-height: 40px;
  border: 1px solid rgba(4, 40, 23, 0.14);
  border-radius: 12px;
  padding: 0.55rem;
}

.nxp-table small {
  display: block;
  margin-top: 0.2rem;
  color: #64746a;
  font-weight: 800;
}

.nxp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.nxp-footer-simple {
  display: block;
  text-align: center;
  color: rgba(249, 249, 244, 0.78);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nxp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1220px;
  margin: 0 auto 2rem;
}

.nxp-blog-card {
  border: 1px solid rgba(4, 40, 23, 0.08);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(4, 40, 23, 0.08);
}

.nxp-blog-card img,
.nxp-article img,
.nxp-article video {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.nxp-blog-card img {
  aspect-ratio: 1.45;
  margin-bottom: 1rem;
}

.nxp-blog-card span {
  color: var(--emerald-800);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nxp-blog-card h2 {
  margin: 0.6rem 0;
  font-size: 1.35rem;
}

.nxp-article,
.nxp-comments {
  max-width: 920px;
  margin: 0 auto 2rem;
  border: 1px solid rgba(4, 40, 23, 0.08);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.nxp-article audio,
.nxp-article video {
  display: block;
  margin: 1rem 0;
}

.nxp-comment {
  border-top: 1px solid rgba(4, 40, 23, 0.1);
  padding: 1rem 0;
  color: var(--ink);
}

.nxp-mini-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.nxp-mini-form input {
  min-height: 40px;
  border: 1px solid rgba(4, 40, 23, 0.14);
  border-radius: 12px;
  padding: 0.55rem;
}

.nxp-mini-form button {
  border: 0;
  border-radius: 12px;
  padding: 0.65rem;
  color: var(--emerald-950);
  background: var(--gold);
  font-weight: 900;
}

@media (min-width: 1061px) {
  body[data-role="farmer"] .nxp-sidebar,
  body[data-role="buyer"] .nxp-sidebar,
  body[data-role="seller"] .nxp-sidebar,
  body[data-role="admin"] .nxp-sidebar,
  body[data-role="investor"] .nxp-sidebar {
    display: none;
  }
}

@media (max-width: 1060px) {
  body[data-role="public"] .nxp-sidebar {
    display: block;
  }

  body[data-role="farmer"] .nxp-sidebar,
  body[data-role="buyer"] .nxp-sidebar,
  body[data-role="seller"] .nxp-sidebar,
  body[data-role="admin"] .nxp-sidebar,
  body[data-role="investor"] .nxp-sidebar {
    display: block;
  }

  .nxp-menu-button {
    display: inline-flex;
  }

  .public-nav {
    display: none;
  }

  .nxp-sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    z-index: 120;
    width: min(84vw, 330px);
    height: 100svh;
    overflow-y: auto;
    border-radius: 0 24px 24px 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .nxp-sidebar.is-open {
    transform: translateX(0);
  }

  .nxp-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.52);
    transition: opacity 180ms ease;
  }

  .nxp-sidebar-backdrop.is-open {
    pointer-events: auto;
    opacity: 1;
  }

  .nxp-product-catalog,
  .nxp-product-catalog.compact,
  .nxp-process-card,
  .nxp-split-light {
    grid-template-columns: 1fr;
  }

  .nxp-process-card.reverse img {
    order: 0;
  }

  .nxp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.nxp-menu-open {
    overflow: hidden;
  }

  .nxp-sidebar-head button {
    display: inline-flex;
  }

  .nxp-auth-page {
    grid-template-columns: 1fr;
  }

  .nxp-role-grid,
  .nxp-search-bar {
    grid-template-columns: 1fr 1fr;
  }

  body[data-role="admin"] .nxp-dashboard-grid,
  body[data-role="admin"] .nxp-admin-grid {
    max-width: none;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  body[data-role="admin"] .nxp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  body[data-role="admin"] .nxp-section {
    overflow: visible;
  }
}

@media (max-width: 1060px) {
  .nxp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.65rem;
    min-height: 66px;
    padding: 0.65rem 0.85rem;
  }

  .nxp-logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem;
  }

  .nxp-logo span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nxp-logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .public-nav {
    display: none !important;
  }

  .nxp-menu-button,
  .nxp-header-cta {
    display: inline-flex !important;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.55rem 0.72rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .nxp-logo {
    font-size: 0.9rem;
  }

  .nxp-header-cta {
    padding-inline: 0.6rem;
  }
}

@media (max-width: 680px) {
  .nxp-role-grid,
  .nxp-demo-grid,
  .nxp-search-bar {
    grid-template-columns: 1fr;
  }

  .nxp-blog-grid {
    grid-template-columns: 1fr;
  }

  .nxp-filter-strip {
    top: 70px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nxp-product-card img,
  .nxp-process-card img,
  .nxp-story-image,
  .nxp-image-frame img {
    min-height: 220px;
    height: 220px;
  }

  .nxp-compliance-grid,
  .nxp-footer-grid {
    grid-template-columns: 1fr;
  }

  .nxp-footer-rich {
    padding-bottom: 2rem;
  }

  .nxp-auth-page {
    padding-top: 4rem;
  }

  body[data-role="admin"] .nxp-dashboard-hero {
    min-height: auto;
    padding: 6rem 1rem 2.5rem;
  }

  body[data-role="admin"] .nxp-dashboard-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body[data-role="admin"] .nxp-table {
    min-width: 680px;
  }

  body[data-role="admin"] .nxp-table th,
  body[data-role="admin"] .nxp-table td {
    padding: 0.85rem;
  }
}
