/* ==========================================================================
   AGRISYSTEM GUEST USER LANDING & WORKFLOW
   Clean, Professional, Modern AgriTech SaaS Experience
   ========================================================================== */

/* -------------------------------------------------------------
   1. Theme Variables & Universal Tokens (Light + Dark Support)
   ------------------------------------------------------------- */
:root {
  /* Light Theme SaaS Tokens */
  --nx-bg: #f8fafc;
  --nx-bg-alt: #ffffff;
  --nx-bg-card: #ffffff;
  --nx-bg-card-subtle: #f1f5f9;
  --nx-bg-card-hover: #f8fafc;
  --nx-border: #e2e8f0;
  --nx-border-hover: #3b82f6;
  --nx-border-subtle: #edf2f7;
  --nx-text: #0f172a;
  --nx-text-muted: #475569;
  --nx-text-dim: #64748b;
  --nx-emerald: #2563eb;
  --nx-emerald-light: #60a5fa;
  --nx-emerald-bg: rgba(37, 99, 235, 0.08);
  --nx-emerald-border: rgba(37, 99, 235, 0.28);
  --nx-sky: #0284c7;
  --nx-sky-bg: rgba(14, 165, 233, 0.08);
  --nx-purple: #6366f1;
  --nx-purple-bg: rgba(99, 102, 241, 0.08);
  --nx-grad: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  --nx-grad-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
  --nx-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --nx-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --nx-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --nx-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
  --nx-shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.1);
  --nx-radius-sm: 8px;
  --nx-radius-md: 12px;
  --nx-radius-lg: 16px;
  --nx-radius-xl: 20px;
  --nx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Kantumruy Pro", "Battambang", sans-serif;
  --nx-font-xs: 0.74rem;
  --nx-font-sm: 0.84rem;
  --nx-font-base: 0.95rem;
  --nx-font-md: 1.05rem;
  --nx-font-lg: 1.25rem;
  --nx-font-xl: 1.55rem;
  --nx-font-2xl: 2.15rem;
  --nx-font-hero: clamp(2.2rem, 4.2vw, 3.35rem);
}

/* Dark Theme Overrides — Luxury Deep Obsidian Slate (Soft, Eye-Friendly, Zero Glare) */
html.dark-mode,
.dark-mode,
html.dark-mode .nx-landing-wrap,
.dark-mode .nx-landing-wrap {
  --nx-bg: #090d16;
  --nx-bg-alt: #0f1523;
  --nx-bg-card: #111726;
  --nx-bg-card-subtle: #0c111d;
  --nx-bg-card-hover: #151e30;
  --nx-border: rgba(148, 163, 184, 0.12);
  --nx-border-hover: rgba(59, 130, 246, 0.45);
  --nx-border-subtle: rgba(255, 255, 255, 0.05);
  --nx-text: #e2e8f0;
  --nx-text-muted: #94a3b8;
  --nx-text-dim: #64748b;
  --nx-emerald: #3b82f6;
  --nx-emerald-light: #60a5fa;
  --nx-emerald-bg: rgba(59, 130, 246, 0.1);
  --nx-emerald-border: rgba(59, 130, 246, 0.25);
  --nx-sky: #0ea5e9;
  --nx-sky-bg: rgba(14, 165, 233, 0.08);
  --nx-purple: #818cf8;
  --nx-purple-bg: rgba(129, 140, 248, 0.08);
  --nx-grad: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  --nx-grad-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  --nx-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --nx-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.45);
  --nx-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
  --nx-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7);
  --nx-shadow-xl: 0 24px 50px rgba(0, 0, 0, 0.85);
}

/* Full-bleed alignment with base container */
.nx-landing-wrap {
  position: relative;
  overflow-x: hidden;
  background-color: var(--nx-bg);
  color: var(--nx-text);
  font-family: var(--nx-font);
  line-height: 1.6;
  padding-bottom: 5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-top: -1rem;
  width: calc(100% + 3rem);
  transition: background-color 0.25s ease, color 0.2s ease;
}

@media (max-width: 575.98px) {
  .nx-landing-wrap {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
  }
}

/* Universal Typography & Contrast Enforcement */
.nx-landing-wrap h1,
.nx-landing-wrap h2,
.nx-landing-wrap h3,
.nx-landing-wrap h4,
.nx-landing-wrap h5,
.nx-landing-wrap h6 {
  color: var(--nx-text) !important;
}

.nx-landing-wrap p,
.nx-landing-wrap .nx-sub {
  color: var(--nx-text-muted) !important;
}

.nx-landing-wrap .text-muted {
  color: var(--nx-text-muted) !important;
}

.nx-landing-wrap .text-dim {
  color: var(--nx-text-dim) !important;
}

/* Badges */
.nx-landing-wrap .badge-secondary {
  background: var(--nx-bg-card-subtle) !important;
  color: var(--nx-text-muted) !important;
  border: 1px solid var(--nx-border) !important;
}

.nx-landing-wrap .badge-success,
.nx-landing-wrap .badge-primary {
  background: var(--nx-emerald-bg) !important;
  color: var(--nx-emerald) !important;
  border: 1px solid var(--nx-emerald-border) !important;
}

.nx-landing-wrap .badge-info {
  background: var(--nx-sky-bg) !important;
  color: var(--nx-sky) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

/* Button & Link Contrast Protection */
.nx-landing-wrap .btn-outline-success,
.nx-landing-wrap .btn-outline-primary {
  color: var(--nx-emerald) !important;
  border-color: var(--nx-emerald) !important;
  background: transparent !important;
}

.nx-landing-wrap .btn-outline-success:hover,
.nx-landing-wrap .btn-outline-primary:hover {
  background: var(--nx-emerald) !important;
  border-color: var(--nx-emerald) !important;
  color: #ffffff !important;
}

.nx-landing-wrap .btn-primary {
  background: var(--nx-emerald) !important;
  border-color: var(--nx-emerald) !important;
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   2. Clean Ambient Animated Background & Aurora System
   ------------------------------------------------------------- */
.nx-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 1300px;
  background-image: radial-gradient(circle, var(--nx-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 20%, rgba(0,0,0,0.5) 65%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, rgba(0,0,0,0.5) 65%, transparent 95%);
  animation: nxGridDrift 80s linear infinite;
}

@keyframes nxGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 0 640px; }
}

html.dark-mode .nx-bg-grid,
.dark-mode .nx-bg-grid {
  opacity: 0.16;
}

.nx-aurora-ambient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.nx-aurora {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform, opacity;
}

.nx-hero-glow,
.nx-aurora-1 {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: 92vw;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  opacity: 0.65;
  animation: nxAuroraFlow1 24s ease-in-out infinite alternate;
}

.nx-aurora-2 {
  position: absolute;
  top: 18%;
  right: -6%;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  opacity: 0.55;
  animation: nxAuroraFlow2 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.nx-aurora-3 {
  position: absolute;
  top: 52%;
  left: -8%;
  width: 600px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 70%);
  opacity: 0.45;
  animation: nxAuroraFlow3 32s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes nxAuroraFlow1 {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.65; }
  50% { transform: translateX(-46%) translateY(25px) scale(1.08); opacity: 0.5; }
  100% { transform: translateX(-54%) translateY(-15px) scale(0.95); opacity: 0.65; }
}

@keyframes nxAuroraFlow2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 35px) scale(1.12); }
  100% { transform: translate(25px, -20px) scale(0.92); }
}

@keyframes nxAuroraFlow3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.14); }
  100% { transform: translate(-20px, 20px) scale(0.94); }
}

html.dark-mode .nx-aurora-1,
.dark-mode .nx-aurora-1 {
  opacity: 0.38;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
}

html.dark-mode .nx-aurora-2,
.dark-mode .nx-aurora-2 {
  opacity: 0.32;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
}

html.dark-mode .nx-aurora-3,
.dark-mode .nx-aurora-3 {
  opacity: 0.28;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 70%);
}

/* -------------------------------------------------------------
   3. Typography & Badges
   ------------------------------------------------------------- */
.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--nx-emerald-bg);
  border: 1px solid var(--nx-emerald-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nx-emerald);
  margin-bottom: 24px;
  box-shadow: var(--nx-shadow-xs);
  transition: all 0.2s ease;
}

.nx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-emerald);
  box-shadow: 0 0 10px var(--nx-emerald);
  animation: nxPulse 2s infinite ease-in-out;
}

@keyframes nxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.nx-gradient-text {
  background: var(--nx-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nx-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nx-emerald);
  margin-bottom: 12px;
}

.nx-section-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--nx-emerald);
  border-radius: 2px;
}

.nx-title {
  font-size: var(--nx-font-hero);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--nx-text);
  margin-bottom: 18px;
}

.nx-sub {
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  color: var(--nx-text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.68;
}

/* Specialized Khmer Typography Alignment */
:lang(km), [lang="km"] {
  line-height: 1.55;
}
:lang(km) .nx-title, [lang="km"] .nx-title {
  line-height: 1.34;
  letter-spacing: normal;
}
:lang(km) .nx-sub, [lang="km"] .nx-sub {
  line-height: 1.8;
  letter-spacing: normal;
}

/* -------------------------------------------------------------
   4. High-Performance Action Buttons
   ------------------------------------------------------------- */
.nx-btn-primary {
  background: var(--nx-grad);
  border: none;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--nx-radius-md);
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none !important;
}

.nx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  color: #ffffff !important;
}

.nx-btn-outline {
  background: var(--nx-bg-alt);
  border: 1px solid var(--nx-border);
  color: var(--nx-text) !important;
  font-weight: 600;
  border-radius: var(--nx-radius-md);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--nx-shadow-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none !important;
}

.nx-btn-outline:hover {
  border-color: var(--nx-emerald);
  background: var(--nx-emerald-bg);
  color: var(--nx-emerald) !important;
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow-sm);
}

.nx-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--nx-font-sm);
  color: var(--nx-text-muted);
  margin-top: 12px;
  margin-bottom: 2rem;
}

.nx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.nx-trust-item i {
  color: var(--nx-emerald);
  font-size: 0.88rem;
}

/* -------------------------------------------------------------
   4.5. 3D Interactive AI Agronomy Scanner & Hologram Showcase
   ------------------------------------------------------------- */
.nx-3d-showcase-container {
  position: relative;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-xl);
  box-shadow: var(--nx-shadow-xl);
  overflow: hidden;
  margin: 1.5rem auto 2.5rem;
  max-width: 1040px;
  padding: 22px 20px 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nx-3d-showcase-container:hover {
  border-color: var(--nx-emerald-border);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}

.nx-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.nx-3d-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nx-border-subtle);
}

.nx-3d-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  font-size: var(--nx-font-xs);
  font-weight: 600;
  color: var(--nx-text);
}

.nx-3d-fps-badge {
  background: var(--nx-emerald-bg);
  color: var(--nx-emerald);
  border: 1px solid var(--nx-emerald-border);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.nx-3d-crop-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nx-3d-pill-btn {
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  color: var(--nx-text-muted);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: var(--nx-font-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-3d-pill-btn:hover {
  background: var(--nx-emerald-bg);
  border-color: var(--nx-emerald-border);
  color: var(--nx-emerald);
  transform: translateY(-1px);
}

.nx-3d-pill-btn.active {
  background: var(--nx-emerald);
  border-color: var(--nx-emerald);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* 3D Viewport & Perspective Stage */
.nx-3d-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 380px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
}

.nx-3d-viewport:active {
  cursor: grabbing;
}

.nx-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.1, 0.5, 0.2, 1);
  transform: rotateX(12deg) rotateY(0deg);
}

/* 3D Holographic Floor & Radar Grid */
.nx-3d-floor {
  position: absolute;
  width: 440px;
  height: 440px;
  bottom: -60px;
  left: 50%;
  margin-left: -220px;
  transform: rotateX(75deg) translateZ(-50px);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.22) 0%, rgba(99, 102, 241, 0.1) 45%, transparent 70%),
              radial-gradient(circle, var(--nx-border) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
  transform-style: preserve-3d;
  pointer-events: none;
}

.nx-3d-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.5);
  animation: nxSpinClockwise 28s linear infinite;
}

.nx-3d-radar-ring.r2 {
  width: 190px;
  height: 190px;
  border: 1.5px solid rgba(59, 130, 246, 0.6);
  animation: nxSpinCounter 18s linear infinite;
}

.nx-3d-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.38) 0deg, transparent 75deg, transparent 360deg);
  animation: nxSpinClockwise 5s linear infinite;
}

/* 3D Gyroscope Orbital Rings */
.nx-3d-gyro {
  position: absolute;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.nx-3d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.nx-ring-outer {
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
  border: 2px dashed rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  animation: nxGyroOuter 16s linear infinite;
}

.nx-ring-mid {
  width: 230px;
  height: 230px;
  margin-left: -115px;
  margin-top: -115px;
  border: 2px solid rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.38);
  animation: nxGyroMid 11s linear infinite reverse;
}

.nx-ring-inner {
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  border: 1.5px dotted rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  animation: nxGyroInner 7s linear infinite;
}

@keyframes nxGyroOuter {
  0% { transform: rotateX(68deg) rotateY(18deg) rotateZ(0deg); }
  100% { transform: rotateX(68deg) rotateY(18deg) rotateZ(360deg); }
}

@keyframes nxGyroMid {
  0% { transform: rotateX(50deg) rotateY(-32deg) rotateZ(0deg); }
  100% { transform: rotateX(50deg) rotateY(-32deg) rotateZ(360deg); }
}

@keyframes nxGyroInner {
  0% { transform: rotateX(30deg) rotateY(45deg) rotateZ(0deg); }
  100% { transform: rotateX(30deg) rotateY(45deg) rotateZ(360deg); }
}

@keyframes nxSpinClockwise {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes nxSpinCounter {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* 3D Plant Leaf & AI Neural Core */
.nx-3d-core-box {
  position: relative;
  width: 220px;
  height: 260px;
  transform-style: preserve-3d;
  transform: translateZ(25px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-3d-core-glow {
  position: absolute;
  width: 140px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.35) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 80%);
  filter: blur(20px);
  pointer-events: none;
  animation: nxPulse 2.8s infinite ease-in-out;
}

.nx-3d-leaf-svg {
  width: 200px;
  height: 240px;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.45));
  animation: nxCoreFloat 4s ease-in-out infinite alternate;
}

@keyframes nxCoreFloat {
  0% { transform: translateY(-4px) scale(0.98); }
  100% { transform: translateY(4px) scale(1.02); }
}

.nx-node-pulse {
  animation: nxPulseNode 2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes nxPulseNode {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}

.nx-target-hotspot {
  animation: nxHotspotFlash 1.4s infinite ease-in-out;
}

.nx-target-ripple {
  animation: nxRippleExpand 1.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 185px 160px;
}

@keyframes nxHotspotFlash {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 6px #f59e0b); }
}

@keyframes nxRippleExpand {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Vertical Scanning Laser Beam */
.nx-3d-laser {
  position: absolute;
  left: -15px;
  width: 250px;
  height: 24px;
  top: 15px;
  pointer-events: none;
  animation: nxLaserSweep 3.2s ease-in-out infinite alternate;
}

.nx-3d-laser.laser-pulse {
  animation: nxLaserBurst 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nx-3d-laser-line {
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #60a5fa 20%, #38bdf8 50%, #60a5fa 80%, transparent);
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #60a5fa;
}

.nx-3d-laser-glare {
  width: 100%;
  height: 22px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.3) 0%, transparent 100%);
  filter: blur(4px);
}

@keyframes nxLaserSweep {
  0% { top: 15px; opacity: 0.85; }
  100% { top: 215px; opacity: 0.85; }
}

@keyframes nxLaserBurst {
  0% { top: 10px; opacity: 1; transform: scaleY(2); }
  50% { top: 220px; opacity: 1; transform: scaleY(3); }
  100% { top: 110px; opacity: 0.85; transform: scaleY(1); }
}

/* Floating 3D Telemetry Cards (Layered in Z-Depth) */
.nx-3d-card {
  position: absolute;
  width: 250px;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  padding: 14px 16px;
  box-shadow: var(--nx-shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  z-index: 5;
}

.nx-3d-card:hover {
  border-color: var(--nx-emerald);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.nx-3d-card-left {
  left: 20px;
  transform: translateZ(55px) rotateY(14deg);
}

.nx-3d-card-right {
  right: 20px;
  transform: translateZ(65px) rotateY(-14deg);
}

.nx-3d-card-left:hover {
  transform: translateZ(75px) rotateY(10deg) scale(1.02);
}

.nx-3d-card-right:hover {
  transform: translateZ(80px) rotateY(-10deg) scale(1.02);
}

.nx-3d-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--nx-font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-text-dim);
  margin-bottom: 6px;
}

.nx-3d-card-title {
  font-size: var(--nx-font-base);
  font-weight: 700;
  color: var(--nx-text);
  line-height: 1.25;
  margin-bottom: 10px;
}

.nx-3d-card-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--nx-bg-card-subtle);
  border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border-subtle);
  margin-bottom: 8px;
}

.nx-3d-metric-box {
  display: flex;
  flex-direction: column;
}

.nx-3d-metric-box .lbl {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--nx-text-dim);
}

.nx-3d-metric-box .val {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
}

.nx-3d-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  padding: 2px 0;
}

.nx-3d-waveform .bar {
  flex: 1;
  background: var(--nx-emerald);
  border-radius: 2px;
  animation: nxWavePulse 1.2s infinite ease-in-out;
}

.nx-3d-waveform .bar:nth-child(2) { animation-delay: 0.15s; background: var(--nx-sky); }
.nx-3d-waveform .bar:nth-child(3) { animation-delay: 0.3s; }
.nx-3d-waveform .bar:nth-child(4) { animation-delay: 0.45s; background: var(--nx-sky); }
.nx-3d-waveform .bar:nth-child(5) { animation-delay: 0.6s; }
.nx-3d-waveform .bar:nth-child(6) { animation-delay: 0.75s; }
.nx-3d-waveform .bar:nth-child(7) { animation-delay: 0.9s; background: var(--nx-sky); }
.nx-3d-waveform .bar:nth-child(8) { animation-delay: 1.05s; }

@keyframes nxWavePulse {
  0%, 100% { height: 3px; opacity: 0.4; }
  50% { height: 13px; opacity: 1; }
}

.nx-3d-card-prescription {
  padding: 8px 10px;
  background: var(--nx-emerald-bg);
  border: 1px solid var(--nx-emerald-border);
  border-radius: var(--nx-radius-sm);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-3d-card-prescription .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--nx-emerald);
  text-transform: uppercase;
}

.nx-3d-card-prescription .val {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--nx-text);
  line-height: 1.35;
}

.nx-3d-card-action {
  margin-top: 6px;
}

.nx-3d-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 12px;
  background: var(--nx-grad);
  color: #ffffff !important;
  border-radius: var(--nx-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-3d-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.nx-3d-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--nx-border-subtle);
  margin-top: 4px;
}

.nx-3d-hint {
  font-size: var(--nx-font-xs);
  color: var(--nx-text-dim);
  display: inline-flex;
  align-items: center;
}

.nx-3d-rescan-btn {
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  color: var(--nx-text);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: var(--nx-font-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nx-3d-rescan-btn:hover {
  background: var(--nx-emerald-bg);
  border-color: var(--nx-emerald-border);
  color: var(--nx-emerald);
  transform: scale(1.03);
}

/* -------------------------------------------------------------
   5. Simulated Dashboard Window Mockup (Clean & High-End)
   ------------------------------------------------------------- */
.nx-dwrap {
  background: var(--nx-bg-alt);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-xl);
  box-shadow: var(--nx-shadow-xl);
  overflow: hidden;
  margin: 1.5rem auto 0;
  max-width: 1040px;
  text-align: left;
  transition: border-color 0.3s ease;
}

.nx-dtbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--nx-bg-card-subtle);
  border-bottom: 1px solid var(--nx-border);
  font-size: 0.8rem;
  color: var(--nx-text-dim);
}

.nx-dtbar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-dd {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.nx-dtbar-url {
  background: var(--nx-bg-alt);
  border: 1px solid var(--nx-border);
  border-radius: 9999px;
  padding: 3px 14px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--nx-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nx-dtbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--nx-emerald);
}

.nx-dgrid {
  display: block;
  min-height: 440px;
}

.nx-dside {
  display: none;
}

.nx-dside-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-text-dim);
  padding: 6px 10px 10px;
}

.nx-dsi {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--nx-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--nx-text-muted);
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nx-dsi:hover {
  background: var(--nx-bg-alt);
  color: var(--nx-text);
  border-color: var(--nx-border);
}

.nx-dsi.on {
  background: var(--nx-emerald-bg);
  border-color: var(--nx-emerald-border);
  color: var(--nx-emerald);
}

.nx-dside-foot {
  margin-top: auto;
  padding: 12px 10px 6px;
  border-top: 1px solid var(--nx-border);
  font-size: 0.74rem;
  color: var(--nx-text-dim);
}

.nx-dmain {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--nx-bg);
}

.row.g-2 {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}
.row.g-2 > [class*="col-"] {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* -------------------------------------------------------------
   6. Modern Metric Stat Pills
   ------------------------------------------------------------- */
.nx-stpill {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  padding: 14px 16px;
  box-shadow: var(--nx-shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nx-stpill:hover {
  transform: translateY(-2px);
  border-color: var(--nx-border-hover);
  box-shadow: var(--nx-shadow-sm);
}

.nx-stpill-val {
  font-size: var(--nx-font-xl);
  font-weight: 800;
  color: var(--nx-text);
  line-height: 1.15;
}

.nx-stpill-lbl {
  font-size: var(--nx-font-xs);
  font-weight: 600;
  color: var(--nx-text-muted);
  margin-top: 4px;
}

.nx-stpill-badge {
  font-size: var(--nx-font-xs);
  font-weight: 600;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* -------------------------------------------------------------
   7. Live Diagnosis Activity Feed
   ------------------------------------------------------------- */
.nx-activity-box {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  padding: 16px;
  box-shadow: var(--nx-shadow-xs);
  display: flex;
  flex-direction: column;
}

.nx-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-activity-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nx-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nx-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border-subtle);
  border-radius: var(--nx-radius-sm);
  font-size: 0.82rem;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.nx-activity-item:hover {
  border-color: var(--nx-border);
  background: var(--nx-bg-alt);
}

.nx-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nx-activity-text {
  flex: 1;
  color: var(--nx-text);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.4;
}

.nx-activity-time {
  font-size: 0.72rem;
  color: var(--nx-text-dim);
  white-space: nowrap;
}

/* -------------------------------------------------------------
   8. Live AI Crop Chat Preview (Clean UI)
   ------------------------------------------------------------- */
.nx-chat-box {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  padding: 16px;
  box-shadow: var(--nx-shadow-xs);
  display: flex;
  flex-direction: column;
  height: 340px;
}

.nx-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-chat-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nx-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nx-chat-body {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.nx-cbbl {
  max-width: 88%;
  padding: 9px 14px;
  border-radius: var(--nx-radius-md);
  font-size: 0.84rem;
  line-height: 1.5;
}

.nx-cbus {
  align-self: flex-end;
  background: var(--nx-grad);
  color: #ffffff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nx-cbai {
  align-self: flex-start;
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  color: var(--nx-text);
  border-bottom-left-radius: 2px;
}

.nx-typing {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  align-self: flex-start;
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  width: fit-content;
}

.nx-tdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-emerald);
  animation: nxBounce 1.2s infinite ease-in-out;
}

.nx-tdot:nth-child(2) { animation-delay: 0.2s; }
.nx-tdot:nth-child(3) { animation-delay: 0.4s; }

@keyframes nxBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.nx-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.nx-chip {
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  color: var(--nx-text-muted);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nx-chip:hover {
  background: var(--nx-emerald-bg);
  border-color: var(--nx-emerald-border);
  color: var(--nx-emerald);
  transform: translateY(-1px);
}

.nx-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.nx-chat-input {
  flex: 1;
  background: var(--nx-bg-card-subtle);
  border: 1px solid var(--nx-border);
  color: var(--nx-text);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s ease;
}

.nx-chat-input:focus {
  border-color: var(--nx-emerald);
  background: var(--nx-bg-alt);
  box-shadow: 0 0 0 3px var(--nx-emerald-bg);
}

.nx-chat-input::placeholder {
  color: var(--nx-text-dim);
}

.nx-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--nx-emerald);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nx-chat-send:hover {
  background: var(--nx-emerald-light);
  transform: scale(1.05);
}

/* -------------------------------------------------------------
   9. Step Cards ("How AgriSystem Works")
   ------------------------------------------------------------- */
.nx-card {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 26px 24px;
  height: 100%;
  box-shadow: var(--nx-shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.nx-card-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--nx-emerald);
  background: var(--nx-emerald-bg);
  border: 1px solid var(--nx-emerald-border);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
  width: fit-content;
}

.nx-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--nx-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------
   10. Interactive Crop Showcase & Report Box
   ------------------------------------------------------------- */
.nx-sample-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nx-sample-pill {
  border: 1px solid var(--nx-border);
  border-radius: 9999px;
  padding: 8px 18px;
  background: var(--nx-bg-card);
  color: var(--nx-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--nx-shadow-xs);
}

.nx-sample-pill:hover,
.nx-sample-pill.active {
  border-color: var(--nx-emerald);
  background: var(--nx-emerald-bg);
  color: var(--nx-emerald);
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow-sm);
}

.nx-report-card {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 24px;
  box-shadow: var(--nx-shadow-md);
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.nx-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-report-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--nx-emerald-bg);
  border: 1px solid var(--nx-emerald-border);
  color: var(--nx-emerald);
  display: inline-block;
  margin-bottom: 6px;
}

.nx-report-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nx-text);
  margin-bottom: 0;
}

.nx-confidence-meter {
  text-align: right;
}

.nx-conf-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nx-emerald);
  line-height: 1;
}

.nx-conf-bar-wrap {
  width: 90px;
  height: 6px;
  background: var(--nx-border);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.nx-conf-bar {
  height: 100%;
  background: var(--nx-emerald);
  border-radius: 9999px;
}

.nx-rx-box {
  background: var(--nx-emerald-bg);
  border: 1px solid var(--nx-emerald-border);
  border-radius: var(--nx-radius-md);
  padding: 16px;
  margin-top: 14px;
}

.nx-rx-title {
  font-weight: 700;
  color: var(--nx-emerald);
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------------
   11. Pricing Section (Clean & Symmetrical)
   ------------------------------------------------------------- */
.nx-ptog-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: var(--nx-shadow-xs);
  margin-bottom: 2.5rem;
}

.nx-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.nx-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nx-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--nx-border);
  transition: 0.3s ease;
  border-radius: 24px;
}

.nx-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .nx-slider {
  background: var(--nx-emerald);
}

input:checked + .nx-slider:before {
  transform: translateX(20px);
}

.nx-price-card {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-xl);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--nx-shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.nx-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lg);
  border-color: var(--nx-border-hover);
}

.nx-price-card.featured {
  border-color: var(--nx-emerald);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.16);
}

.nx-price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--nx-emerald);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nx-price-amt {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--nx-text);
  line-height: 1.1;
  margin-top: 10px;
  margin-bottom: 4px;
}

.nx-price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--nx-text);
}

.nx-price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-price-list li i.fa-check {
  color: var(--nx-emerald);
  font-size: 0.85rem;
}

.nx-price-list li i.fa-times {
  color: var(--nx-text-dim);
  font-size: 0.85rem;
}

.nx-price-list li.muted {
  color: var(--nx-text-dim);
}

/* -------------------------------------------------------------
   12. Modern Clean FAQ Accordion
   ------------------------------------------------------------- */
.nx-faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.nx-faq-item {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--nx-shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-faq-item:hover {
  border-color: var(--nx-border-hover);
}

.nx-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--nx-text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nx-faq-btn i.fa-chevron-down {
  font-size: 0.85rem;
  color: var(--nx-text-dim);
  transition: transform 0.25s ease;
}

.nx-faq-btn[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--nx-emerald);
}

.nx-faq-body {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--nx-text-muted);
}

/* -------------------------------------------------------------
   13. Call-To-Action Banner
   ------------------------------------------------------------- */
.nx-cta-banner {
  background: var(--nx-grad-subtle);
  border: 1px solid var(--nx-emerald-border);
  border-radius: var(--nx-radius-xl);
  padding: 48px 36px;
  box-shadow: var(--nx-shadow-md);
  position: relative;
  overflow: hidden;
}



.nx-google-btn {
  background: var(--nx-bg-card-subtle) !important;
  border: 1px solid var(--nx-border) !important;
  color: var(--nx-text) !important;
  border-radius: var(--nx-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nx-google-btn:hover {
  background: var(--nx-bg-card-hover) !important;
  border-color: var(--nx-border-hover) !important;
  color: var(--nx-text) !important;
}

/* Project Details & Team Cards Theming */
#nxProjectDetail .fm-team-card {
  background: var(--nx-bg-card) !important;
  border: 1px solid var(--nx-border) !important;
  box-shadow: var(--nx-shadow-sm);
  color: var(--nx-text) !important;
}

#nxProjectDetail .fm-team-card:hover {
  border-color: var(--nx-emerald) !important;
  box-shadow: var(--nx-shadow-md);
}

#nxProjectDetail .fm-team-label h2,
#nxProjectDetail .fm-team-name {
  color: var(--nx-text) !important;
}

#nxProjectDetail .fm-team-task {
  color: var(--nx-text-muted) !important;
}

#nxProjectDetail .fm-team-task-box {
  background: var(--nx-bg-card-subtle) !important;
  border: 1px solid var(--nx-border) !important;
}

#nxProjectDetail .fm-team-task-label {
  color: var(--nx-emerald) !important;
}

#nxProjectDetail .fm-team-facts li {
  color: var(--nx-text-muted) !important;
}

#nxProjectDetail .fm-team-facts i {
  color: var(--nx-emerald) !important;
}

#nxProjectDetail .fm-team-link {
  color: var(--nx-emerald) !important;
}

#nxProjectDetail .fm-team-link:hover {
  color: var(--nx-emerald-light) !important;
}

#nxProjectDetail .fm-team-divider {
  background: var(--nx-border) !important;
}

/* Topbar Guest Auth Button Theming */
.fm-topbar-signin-btn {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: transparent !important;
  transition: all 0.2s ease;
}

.fm-topbar-signin-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

html.dark-mode .fm-topbar-signin-btn,
.dark-mode .fm-topbar-signin-btn {
  border-color: #60a5fa !important;
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.12) !important;
}

html.dark-mode .fm-topbar-signin-btn:hover,
.dark-mode .fm-topbar-signin-btn:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

.fm-topbar-signup-btn {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.fm-topbar-signup-btn:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   15. Advanced Professional Responsive System
   Clean, adaptive visual hierarchy for Mobile (<576px), Tablet (576-991px), Desktop (>992px)
   ------------------------------------------------------------- */

/* --- Tablet & Medium Screens (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
  /* Container & Spacing */
  .nx-hero {
    padding: 3.5rem 1rem 2rem;
  }
  .nx-title {
    font-size: clamp(2rem, 3.8vw, 2.6rem);
    line-height: 1.22;
  }
  .nx-sub {
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 22px;
  }

  /* 3D Showcase Container */
  .nx-3d-showcase-container {
    padding: 18px 16px 16px;
    margin: 1.25rem auto 2.25rem;
    border-radius: var(--nx-radius-lg);
  }
  .nx-3d-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nx-3d-status-pill {
    width: 100%;
    justify-content: space-between;
  }
  .nx-3d-crop-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
  }
  .nx-3d-pill-btn {
    justify-content: center;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  /* 3D Viewport & Staged Layout */
  .nx-3d-viewport {
    height: auto;
    min-height: 0;
    padding: 24px 0 16px;
    overflow: visible;
  }
  .nx-3d-scene {
    flex-direction: column;
    align-items: center;
    transform: none !important;
    gap: 18px;
  }
  .nx-3d-core-box {
    margin: 10px auto 20px;
    transform: none;
    z-index: 2;
  }
  .nx-3d-floor {
    width: 340px;
    height: 340px;
    margin-left: -170px;
    bottom: -40px;
  }
  .nx-3d-gyro {
    width: 240px;
    height: 240px;
  }
  .nx-ring-outer {
    width: 240px;
    height: 240px;
    margin-left: -120px;
    margin-top: -120px;
  }
  .nx-ring-mid {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }
  .nx-ring-inner {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
  }
  .nx-3d-card-left,
  .nx-3d-card-right {
    position: static;
    left: auto;
    right: auto;
    transform: none !important;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    z-index: 3;
  }
  .nx-3d-card-left:hover,
  .nx-3d-card-right:hover {
    transform: translateY(-2px) !important;
  }
  .nx-3d-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 14px;
  }
  .nx-3d-hint {
    text-align: center;
  }
  .nx-3d-rescan-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Simulated SaaS Dashboard Mockup */
  .nx-dwrap {
    margin-top: 1.25rem;
    border-radius: var(--nx-radius-lg);
  }
  .nx-dgrid {
    grid-template-columns: 1fr;
  }
  .nx-dside {
    display: none;
  }
  .nx-dmain {
    padding: 18px 16px;
    gap: 14px;
  }
  .nx-chat-box {
    height: 350px;
  }
}

/* --- Mobile Landscape & Small Tablets (max-width: 767.98px) --- */
@media (max-width: 767.98px) {
  /* Section Spacing */
  section.py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  .nx-title {
    font-size: clamp(1.85rem, 5vw, 2.3rem);
    margin-bottom: 14px;
  }
  .nx-section-label {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  /* Activity Box & AI Chat */
  .nx-activity-box {
    padding: 14px;
  }
  .nx-chat-box {
    padding: 14px;
    height: 360px;
  }
  .nx-chips-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nx-chips-wrap::-webkit-scrollbar {
    display: none;
  }
  .nx-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Step Cards */
  .nx-card {
    padding: 22px 20px;
    margin-bottom: 0.5rem;
  }

  /* Report Card */
  .nx-report-card {
    padding: 20px 18px;
    border-radius: var(--nx-radius-md);
  }
  .nx-rx-box {
    padding: 14px;
  }

  /* Pricing Cards */
  .nx-price-card {
    padding: 26px 22px;
    border-radius: var(--nx-radius-lg);
  }
  .nx-price-amt {
    font-size: 2.15rem;
  }
  .nx-ptog-wrap {
    margin-bottom: 2rem;
  }

  /* FAQ */
  .nx-faq-btn {
    padding: 16px 18px;
    font-size: 0.92rem;
  }
  .nx-faq-body {
    padding: 0 18px 16px;
    font-size: 0.86rem;
  }

  /* CTA Banner */
  .nx-cta-banner {
    padding: 36px 24px;
    border-radius: var(--nx-radius-lg);
  }
}

/* --- Mobile Phones & Narrow Screens (max-width: 575.98px) --- */
@media (max-width: 575.98px) {
  /* Full-bleed Container Padding Alignment */
  .nx-landing-wrap {
    padding-bottom: 3.5rem;
  }
  .nx-hero {
    padding: 2.5rem 0.5rem 1.5rem;
  }
  .nx-badge {
    padding: 4px 12px;
    font-size: 0.76rem;
    gap: 6px;
    margin-bottom: 16px;
  }
  .nx-title {
    font-size: clamp(1.65rem, 5.8vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
  }
  .nx-sub {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Hero Actions — Full width stacked buttons for finger-friendly touch */
  .nx-hero-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 10px !important;
  }
  .nx-hero-actions .nx-btn-primary,
  .nx-hero-actions .nx-btn-outline {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
  }

  /* Trust Indicators Strip */
  .nx-trust-strip {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 1.5rem;
  }
  .nx-trust-item {
    font-size: 0.78rem;
  }

  /* 3D Showcase on Mobile */
  .nx-3d-showcase-container {
    padding: 14px 12px 12px;
    border-radius: var(--nx-radius-md);
    margin: 1rem auto 1.75rem;
  }
  .nx-3d-status-pill {
    padding: 3px 10px;
    font-size: 0.7rem;
  }
  .nx-3d-status-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nx-3d-fps-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* 2x2 Clean Mobile Grid for 3D Crop Pills */
  .nx-3d-crop-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .nx-3d-pill-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  /* Scaled down 3D Hologram Stage for Phones (No overflow, crisp center) */
  .nx-3d-viewport {
    padding: 14px 0 10px;
  }
  .nx-3d-floor {
    width: 260px;
    height: 260px;
    margin-left: -130px;
    bottom: -25px;
  }
  .nx-3d-radar-ring {
    width: 180px;
    height: 180px;
  }
  .nx-3d-radar-ring.r2 {
    width: 120px;
    height: 120px;
  }
  .nx-3d-radar-sweep {
    width: 140px;
    height: 140px;
  }
  .nx-3d-gyro {
    width: 190px;
    height: 190px;
  }
  .nx-ring-outer {
    width: 190px;
    height: 190px;
    margin-left: -95px;
    margin-top: -95px;
  }
  .nx-ring-mid {
    width: 155px;
    height: 155px;
    margin-left: -77.5px;
    margin-top: -77.5px;
  }
  .nx-ring-inner {
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
  }
  .nx-3d-core-box {
    width: 170px;
    height: 210px;
    margin: 5px auto 15px;
  }
  .nx-3d-leaf-svg {
    width: 160px;
    height: 195px;
  }
  .nx-3d-laser {
    width: 190px;
    left: -10px;
  }

  /* Mobile Telemetry Cards */
  .nx-3d-card-left,
  .nx-3d-card-right {
    padding: 12px 14px;
    border-radius: var(--nx-radius-sm);
  }
  .nx-3d-card-eyebrow {
    font-size: 0.72rem;
  }
  .nx-3d-card-title {
    font-size: 0.88rem;
  }
  .nx-3d-metric-box .val {
    font-size: 0.95rem;
  }
  .nx-3d-waveform {
    height: 18px;
    gap: 3px;
  }
  .nx-3d-card-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  /* Simulated SaaS Dashboard Header */
  .nx-dtbar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nx-dtbar-status {
    font-size: 0.7rem;
  }

  /* Metric Stat Pills — 2x2 Clean Grid on Phone */
  .nx-dmain {
    padding: 12px 10px;
    gap: 10px;
  }
  .nx-stpill {
    padding: 10px 10px;
    border-radius: var(--nx-radius-sm);
  }
  .nx-stpill-val {
    font-size: 1.25rem !important;
  }
  .nx-stpill-lbl {
    font-size: 0.7rem;
  }
  .nx-stpill-badge {
    font-size: 0.65rem;
    margin-top: 3px;
  }

  /* Live AI Crop Chat on Mobile */
  .nx-chat-box {
    height: 330px;
    padding: 12px 10px;
  }
  .nx-cbbl {
    max-width: 95%;
    font-size: 0.8rem;
    padding: 8px 11px;
  }
  .nx-chat-input-row {
    gap: 6px;
  }
  .nx-chat-input {
    font-size: 0.8rem;
    padding: 7px 12px;
  }
  .nx-chat-send {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* Crop Test Pills — 2x2 Clean Grid on Mobile */
  .nx-sample-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }
  .nx-sample-pill {
    padding: 8px 10px;
    font-size: 0.8rem;
    justify-content: center;
    border-radius: var(--nx-radius-sm);
  }

  /* Disease Simulation Report Card on Mobile */
  .nx-report-card {
    padding: 16px 12px;
  }
  .nx-report-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }
  .nx-report-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .nx-confidence-meter {
    flex-shrink: 0;
  }
  .nx-conf-val {
    font-size: 1.15rem;
  }
  .nx-conf-bar-wrap {
    width: 70px;
    height: 5px;
  }
  .nx-report-card .text-right {
    text-align: center !important;
    margin-top: 12px !important;
  }
  .nx-report-card .text-right .nx-btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* Pricing Section on Mobile */
  .nx-price-card {
    padding: 22px 16px;
    border-radius: var(--nx-radius-md);
  }
  .nx-price-amt {
    font-size: 1.95rem;
  }
  .nx-price-badge {
    right: 14px;
    top: -10px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .nx-price-list {
    font-size: 0.82rem;
    gap: 10px;
    margin: 16px 0 22px;
  }

  /* Team / Project Detail on Mobile */
  #nxProjectDetail .fm-team-lead {
    padding: 1.25rem 0.95rem;
  }
  #nxProjectDetail .fm-team-card {
    border-radius: var(--nx-radius-md) !important;
  }

  /* FAQ on Mobile */
  .nx-faq-btn {
    padding: 14px 14px;
    font-size: 0.86rem;
  }
  .nx-faq-body {
    padding: 0 14px 14px;
    font-size: 0.82rem;
  }

  /* CTA Banner on Mobile */
  .nx-cta-banner {
    padding: 28px 16px;
    border-radius: var(--nx-radius-md);
  }
  .nx-cta-banner h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .nx-cta-banner .nx-sub {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  .nx-cta-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 10px !important;
  }
  .nx-cta-actions .nx-btn-primary,
  .nx-cta-actions .nx-btn-outline {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   16. Dark Mode 3D Visualizer & Soft Tone Overrides
   ------------------------------------------------------------- */
html.dark-mode .nx-3d-showcase-container,
.dark-mode .nx-3d-showcase-container {
  background: var(--nx-bg-card);
  border-color: var(--nx-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

html.dark-mode .nx-3d-floor,
.dark-mode .nx-3d-floor {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.07) 45%, transparent 70%),
              radial-gradient(circle, var(--nx-border) 1px, transparent 1px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.14);
}

html.dark-mode .nx-ring-outer,
.dark-mode .nx-ring-outer {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

html.dark-mode .nx-ring-mid,
.dark-mode .nx-ring-mid {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.18);
}

html.dark-mode .nx-ring-inner,
.dark-mode .nx-ring-inner {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.15);
}

html.dark-mode .nx-3d-core-glow,
.dark-mode .nx-3d-core-glow {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 80%);
}

html.dark-mode .nx-3d-card,
.dark-mode .nx-3d-card {
  background: rgba(18, 24, 38, 0.88);
  border-color: rgba(148, 163, 184, 0.14);
}

/* Universal Smooth Theme & Hover Transitions */
.nx-landing-wrap,
.nx-dwrap,
.nx-card,
.nx-3d-showcase-container,
.nx-price-card,
.nx-faq-item,
.nx-report-card,
.nx-stpill,
.nx-activity-box,
.nx-chat-box {
  transition: background-color 0.35s ease, border-color 0.3s ease, color 0.25s ease, box-shadow 0.3s ease;
}

