/**
 * ====================================================================================================
 *   NIGAMA CONNECT ADMIN PORTAL — EXECUTIVE HOME PAGE STYLES (v5)
 *   File: css/v5/home.css
 *   Architecture: Luxury Glassmorphic System with 60° 3D CAD Stage & Cursor Motion Graphics
 * ====================================================================================================
 */
/* Mobile Sidebar Backdrop Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Touch device handling: prevent sticky hover transforms on cards */
@media (hover: none) {
  .nc-motion-card {
    transform: none !important;
  }
  .nc-motion-card::before {
    display: none !important;
  }
}

/* Content Wrapper inside .main-content */
.nc-home-workspace {
  width: 100%;
  padding: 1.5rem 2.25rem 4rem;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Glow Mesh */
.nc-home-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(15, 163, 217, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
}

.nc-home-section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. HERO CARD & 60-DEGREE 3D ANIMATED CAD LOGO EMBLEM
   ────────────────────────────────────────────────────────────────────────── */
.nc-home-hero-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(8, 15, 36, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 3.5rem 2.5rem 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(15, 163, 217, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.nc-home-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, #10B981, transparent);
}

/* 3D CAD EMBLEM STAGE (ALLOWS FULL 60-DEGREE TILT) */
.nc-guide-3d-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 310px;
  margin: 0 auto 1.75rem;
  perspective: 900px;
  user-select: none;
  cursor: grab;
}

.nc-guide-3d-emblem-wrap:active {
  cursor: grabbing;
}

.nc-cad-stage {
  position: relative;
  width: 320px;
  height: 260px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.nc-cad-grid-bed {
  position: absolute;
  inset: -36px;
  background-image: 
    linear-gradient(to right, rgba(15, 163, 217, 0.22) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(15, 163, 217, 0.22) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-radius: 32px;
  transform: translateZ(0px);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, transparent 85%);
  border: 1px solid rgba(15, 163, 217, 0.25);
  box-shadow: 0 0 30px rgba(15, 163, 217, 0.15) inset;
}

.nc-cad-emblem-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 228px;
  height: 228px;
  margin-top: -114px;
  margin-left: -114px;
  transform-style: preserve-3d;
}

.nc-cad-emblem-shadow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
  transform: translateZ(6px);
  filter: blur(18px);
}

.nc-cad-emblem-layer {
  position: absolute;
  inset: 0;
  border-radius: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-cad-layer-base {
  background: #0369A1;
  transform: translateZ(24px);
  border: 4px solid #0284C7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.nc-cad-layer-mid {
  background: #0284C7;
  transform: translateZ(52px);
  border: 3.5px solid #38BDF8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.nc-cad-layer-top {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  transform: translateZ(84px);
  border: 3.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.75), inset 0 2px 8px rgba(255, 255, 255, 0.65);
}

.nc-cad-emblem-img {
  width: 156px;
  height: 156px;
  border-radius: 36px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
  transform: translateZ(40px);
}

/* Hero Badge & Typography */
.nc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.nc-hero-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 auto 1.2rem;
  max-width: 960px;
  color: #FFFFFF;
}

.nc-hero-title span.nc-gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #0FA3D9 45%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nc-hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--nc-text-secondary, #94A3B8);
  max-width: 820px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.nc-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.nc-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #0FA3D9 0%, #0284C7 100%);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(15, 163, 217, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.nc-btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 163, 217, 0.65);
}

.nc-btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.nc-btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Store Row */
.nc-hero-store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nc-store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.35rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.nc-store-badge-btn:hover {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nc-store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nc-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nc-store-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  line-height: 1.1;
}

.nc-store-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. SECTION HEADERS
   ────────────────────────────────────────────────────────────────────────── */
.nc-home-section {
  margin-bottom: 4rem;
}

.nc-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.75rem;
}

.nc-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(15, 163, 217, 0.1);
  border: 1px solid rgba(15, 163, 217, 0.3);
  color: #38BDF8;
  margin-bottom: 0.9rem;
}

.nc-section-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #FFFFFF;
}

.nc-section-desc {
  font-size: 1.02rem;
  color: var(--nc-text-secondary, #94A3B8);
  line-height: 1.6;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. MOTION GRAPHICS CARD SYSTEM (DYNAMIC CURSOR SPOTLIGHT & 3D TILT)
   ────────────────────────────────────────────────────────────────────────── */

/* Common Card Base for Motion Graphics */
.nc-motion-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dynamic Radial Spotlight Beam following cursor */
.nc-motion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
  z-index: 2;
}

.nc-motion-card:hover::before {
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────────────────────
   4. ABOUT THE APPLICATION (ECOSYSTEM GRID)
   ────────────────────────────────────────────────────────────────────────── */
.nc-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nc-app-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.nc-app-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(15, 163, 217, 0.12);
}

.nc-app-card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nc-app-card:hover .nc-app-card-icon-wrap {
  transform: translateY(-6px) scale(1.15) rotate(6deg);
  box-shadow: 0 10px 20px rgba(15, 163, 217, 0.35);
}

.nc-app-card-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #FFFFFF;
}

.nc-app-card-text {
  font-size: 0.94rem;
  color: var(--nc-text-secondary, #94A3B8);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.nc-app-card-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-accent, #0FA3D9);
}

/* ──────────────────────────────────────────────────────────────────────────
   ADMIN PANEL ALL-FEATURES & OPERATIONS DIRECTORY STYLES
   ────────────────────────────────────────────────────────────────────────── */
.nc-domain-group {
  margin-bottom: 3.5rem;
}

.nc-domain-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #38BDF8;
}

.nc-domain-heading-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nc-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

.nc-domain-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
}

.nc-domain-desc {
  font-size: 0.92rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

.nc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.nc-feature-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 19, 43, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nc-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nc-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(15, 163, 217, 0.16);
}

.nc-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nc-feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(15, 163, 217, 0.1);
  border: 1px solid rgba(15, 163, 217, 0.25);
  color: #38BDF8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nc-feature-card:hover .nc-feature-icon-box {
  transform: translateY(-4px) scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(15, 163, 217, 0.35);
}

.nc-feature-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

.nc-feature-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.nc-feature-route {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.nc-feature-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.nc-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nc-feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.nc-feature-bullet-item svg {
  color: #10B981;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.nc-feature-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
  margin-top: auto;
}

.nc-feature-action-btn svg {
  transition: transform 0.25s ease;
}

.nc-feature-action-btn:hover {
  background: linear-gradient(135deg, rgba(15, 163, 217, 0.25) 0%, rgba(2, 132, 199, 0.25) 100%);
  border-color: #38BDF8;
  color: #38BDF8;
}

.nc-feature-action-btn:hover svg {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────────────────────
   5. WHAT WE CAN DO IN THIS ADMIN PANEL (CAPABILITIES GRID)
   ────────────────────────────────────────────────────────────────────────── */
.nc-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.nc-cap-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2.25rem;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.nc-cap-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(15, 163, 217, 0.18);
}

.nc-cap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.nc-cap-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: rgba(15, 163, 217, 0.1);
  border: 1px solid rgba(15, 163, 217, 0.25);
  color: #38BDF8;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nc-cap-card:hover .nc-cap-icon-box {
  transform: translateY(-6px) scale(1.15) rotate(6deg);
  box-shadow: 0 10px 25px rgba(15, 163, 217, 0.4);
}

.nc-cap-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.nc-cap-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #FFFFFF;
}

.nc-cap-desc {
  font-size: 0.94rem;
  color: var(--nc-text-secondary, #94A3B8);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.nc-cap-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.nc-cap-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #CBD5E1;
}

.nc-cap-feature-item svg {
  color: #10B981;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nc-cap-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nc-cap-action-btn:hover {
  background: linear-gradient(135deg, rgba(15, 163, 217, 0.25) 0%, rgba(2, 132, 199, 0.25) 100%);
  border-color: #38BDF8;
  color: #38BDF8;
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────────────────────
   6. SECURITY FEATURES (THE 7 PILLARS)
   ────────────────────────────────────────────────────────────────────────── */
.nc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.nc-pillar-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  backdrop-filter: blur(14px);
}

.nc-pillar-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.15);
}

.nc-pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.nc-pillar-num {
  font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nc-pillar-icon {
  font-size: 1.75rem;
  transition: transform 0.35s ease;
}

.nc-pillar-card:hover .nc-pillar-icon {
  transform: scale(1.2) rotate(6deg);
}

.nc-pillar-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.65rem;
}

.nc-pillar-desc {
  font-size: 0.9rem;
  color: var(--nc-text-secondary, #94A3B8);
  line-height: 1.6;
  margin: 0;
}

/* Security Trust Box */
.nc-security-trust-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.nc-trust-text h4 {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #FFFFFF;
}

.nc-trust-text p {
  font-size: 0.92rem;
  color: #94A3B8;
  margin: 0;
  max-width: 680px;
}

.nc-trust-badges {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nc-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #F8FAFC;
}

/* ──────────────────────────────────────────────────────────────────────────
   7. USER GUIDE SPOTLIGHT
   ────────────────────────────────────────────────────────────────────────── */
.nc-guide-spotlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(12, 40, 70, 0.85) 100%);
  border: 1px solid rgba(15, 163, 217, 0.35);
  border-radius: 24px;
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(15, 163, 217, 0.15);
}

.nc-guide-spotlight-title {
  font-family: var(--nc-font-display, 'Outfit', sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: #FFFFFF;
}

.nc-guide-spotlight-desc {
  font-size: 1.02rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
}

.nc-guide-chapters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.nc-chapter-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nc-chapter-pill:hover {
  background: rgba(15, 163, 217, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.nc-guide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nc-btn-guide-read {
  padding: 0.85rem 1.75rem;
  font-size: 0.96rem;
}

.nc-btn-guide-back {
  padding: 0.85rem 1.5rem;
  font-size: 0.96rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   8. SYSTEM TELEMETRY STRIP
   ────────────────────────────────────────────────────────────────────────── */
.nc-status-strip {
  background: rgba(8, 15, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  font-size: 0.85rem;
  margin-top: 3rem;
}

.nc-status-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nc-status-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94A3B8;
  font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
}

.nc-status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* ──────────────────────────────────────────────────────────────────────────
   9. RESPONSIVE BREAKPOINTS (TABLET & MOBILE ARCHITECTURE)
   ────────────────────────────────────────────────────────────────────────── */

/* ── TABLET BREAKPOINT (<= 1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .nc-home-workspace {
    padding: 1.25rem 1.5rem 4rem;
  }

  .nc-home-hero-card {
    padding: 2.75rem 2rem 2.25rem;
  }

  .nc-capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .nc-pillars-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
}

/* ── MOBILE BREAKPOINT (<= 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 1. Global Viewport Containment */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* 2. Top Header Mobile Polish */
  .header {
    height: 58px !important;
    padding: 0 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 950 !important;
  }

  .header-left {
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--nc-text-primary, #FFFFFF);
    flex-shrink: 0;
  }

  .page-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 155px !important;
    line-height: 1.2 !important;
  }

  .header-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .datetime-display {
    display: none !important;
  }

  .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .notification-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .profile-btn {
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    gap: 0 !important;
  }

  .profile-photo {
    width: 32px !important;
    height: 32px !important;
  }

  .profile-info {
    display: none !important;
  }

  .profile-arrow {
    display: none !important;
  }

  .notification-dropdown {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: 64px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 16px !important;
  }

  .profile-dropdown {
    position: absolute !important;
    right: 4px !important;
    top: calc(100% + 8px) !important;
    width: 200px !important;
    border-radius: 16px !important;
  }

  /* 3. Workspace Layout & Safe Area Clearance */
  .nc-home-workspace {
    padding: 1rem 0.85rem calc(var(--nc-mobile-bottom-h, 68px) + var(--nc-safe-area-bottom, 0px) + 2.75rem) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .nc-home-section-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Hero Card & CAD Logo Mobile Sizing */
  .nc-home-hero-card {
    padding: 1.85rem 1.15rem 1.65rem !important;
    border-radius: 18px !important;
    margin-bottom: 2.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .nc-guide-3d-emblem-wrap {
    height: 220px !important;
    margin: 0 auto 1.25rem !important;
    perspective: 700px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    touch-action: pan-y !important;
  }

  .nc-cad-stage {
    width: 220px !important;
    height: 180px !important;
    transform-origin: center center !important;
  }

  .nc-cad-grid-bed {
    inset: -8px !important;
    border-radius: 20px !important;
    background-size: 18px 18px !important;
    border-width: 1px !important;
  }

  .nc-cad-emblem-3d {
    width: 140px !important;
    height: 140px !important;
    margin-top: -70px !important;
    margin-left: -70px !important;
  }

  .nc-cad-emblem-shadow {
    inset: -12px !important;
    filter: blur(12px) !important;
  }

  .nc-cad-emblem-layer {
    border-radius: 32px !important;
  }

  .nc-cad-layer-base {
    transform: translateZ(14px) !important;
    border-width: 2.5px !important;
  }

  .nc-cad-layer-mid {
    transform: translateZ(32px) !important;
    border-width: 2.5px !important;
  }

  .nc-cad-layer-top {
    transform: translateZ(52px) !important;
    border-width: 2.5px !important;
  }

  .nc-cad-emblem-img {
    width: 96px !important;
    height: 96px !important;
    border-radius: 20px !important;
    transform: translateZ(24px) !important;
  }

  /* 5. Hero Typography & Fluid Sizing */
  .nc-hero-badge {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.8rem !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .nc-hero-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
    margin: 0 auto 0.85rem !important;
  }

  .nc-hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin: 0 auto 1.5rem !important;
    padding: 0 0.25rem !important;
  }

  .nc-hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .nc-btn-hero-primary,
  .nc-btn-hero-glass {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    min-height: 46px !important;
  }

  .nc-hero-store-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .nc-store-badge-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px !important;
    min-height: 48px !important;
  }

  /* 6. Section Headers & Grids */
  .nc-home-section {
    margin-bottom: 2.75rem !important;
  }

  .nc-section-header {
    margin-bottom: 1.75rem !important;
    padding: 0 0.25rem !important;
    text-align: center !important;
  }

  .nc-section-tag {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.75rem !important;
    margin-bottom: 0.7rem !important;
  }

  .nc-section-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.6rem !important;
  }

  .nc-section-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .nc-app-grid,
  .nc-capabilities-grid,
  .nc-pillars-grid,
  .nc-features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }

  .nc-feature-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .nc-domain-group {
    margin-bottom: 2.5rem !important;
  }

  .nc-domain-title {
    font-size: 1.22rem !important;
  }

  .nc-app-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .nc-app-card-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }

  .nc-app-card-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
  }

  .nc-app-card-text {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .nc-cap-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .nc-cap-icon-box {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.6rem !important;
    border-radius: 14px !important;
  }

  .nc-cap-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }

  .nc-cap-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }

  .nc-cap-features {
    gap: 0.55rem !important;
    margin-bottom: 1.35rem !important;
  }

  .nc-cap-feature-item {
    font-size: 0.82rem !important;
  }

  .nc-cap-action-btn {
    padding: 0.8rem 1.15rem !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    min-height: 44px !important;
  }

  .nc-pillar-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .nc-pillar-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }

  .nc-pillar-desc {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  /* 7. Security Trust Box */
  .nc-security-trust-box {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.15rem !important;
  }

  .nc-trust-text h4 {
    font-size: 1.15rem !important;
    margin-bottom: 0.35rem !important;
  }

  .nc-trust-text p {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  .nc-trust-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .nc-trust-chip {
    padding: 0.45rem 0.6rem !important;
    font-size: 0.74rem !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 8. User Guide Spotlight Card */
  .nc-guide-spotlight-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }

  .nc-guide-spotlight-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.65rem !important;
  }

  .nc-guide-spotlight-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .nc-guide-chapters-pills {
    gap: 0.45rem !important;
    margin: 1.1rem 0 1.35rem !important;
  }

  .nc-chapter-pill {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
  }

  .nc-guide-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .nc-btn-guide-read,
  .nc-btn-guide-back {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.92rem !important;
    min-height: 46px !important;
  }

  /* 9. Telemetry Strip */
  .nc-status-strip {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
    margin-top: 2rem !important;
  }

  .nc-status-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .nc-status-items {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }

  .nc-status-pill {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    word-break: break-all !important;
  }

  /* 10. Mobile Bottom Dock */
  .mobile-dock,
  .nc-mobile-bottom-bar,
  .nc-mobile-dock {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--nc-mobile-bottom-h, 68px) + var(--nc-safe-area-bottom, 0px)) !important;
    padding-bottom: var(--nc-safe-area-bottom, 0px) !important;
    background: rgba(8, 15, 36, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 9999 !important;
    justify-content: space-around !important;
    align-items: center !important;
  }
}

/* ── ULTRA-COMPACT MOBILE BREAKPOINT (<= 480px) ──────────────────────────── */
@media (max-width: 480px) {
  .nc-home-workspace {
    padding: 0.85rem 0.65rem calc(var(--nc-mobile-bottom-h, 68px) + var(--nc-safe-area-bottom, 0px) + 2.5rem) !important;
  }

  .header {
    padding: 0 8px !important;
  }

  .page-title {
    max-width: 130px !important;
    font-size: 0.98rem !important;
  }

  .nc-home-hero-card {
    padding: 1.5rem 0.85rem 1.35rem !important;
    border-radius: 16px !important;
  }

  .nc-guide-3d-emblem-wrap {
    height: 195px !important;
    margin-bottom: 1rem !important;
  }

  .nc-cad-stage {
    width: 190px !important;
    height: 155px !important;
  }

  .nc-cad-grid-bed {
    inset: -6px !important;
    background-size: 16px 16px !important;
  }

  .nc-cad-emblem-3d {
    width: 120px !important;
    height: 120px !important;
    margin-top: -60px !important;
    margin-left: -60px !important;
  }

  .nc-cad-emblem-layer {
    border-radius: 28px !important;
  }

  .nc-cad-layer-base {
    transform: translateZ(12px) !important;
  }

  .nc-cad-layer-mid {
    transform: translateZ(26px) !important;
  }

  .nc-cad-layer-top {
    transform: translateZ(42px) !important;
  }

  .nc-cad-emblem-img {
    width: 82px !important;
    height: 82px !important;
    border-radius: 18px !important;
    transform: translateZ(18px) !important;
  }

  .nc-hero-badge {
    font-size: 0.64rem !important;
    padding: 0.3rem 0.7rem !important;
  }

  .nc-hero-title {
    font-size: 1.42rem !important;
  }

  .nc-hero-desc {
    font-size: 0.86rem !important;
  }

  .nc-section-title {
    font-size: 1.32rem !important;
  }

  .nc-app-card,
  .nc-cap-card,
  .nc-pillar-card,
  .nc-guide-spotlight-card,
  .nc-security-trust-box {
    padding: 1.15rem 0.95rem !important;
    border-radius: 14px !important;
  }

  .nc-trust-badges {
    grid-template-columns: 1fr !important;
  }
}

/* ── EXTRA SMALL MOBILE BREAKPOINT (<= 360px) ────────────────────────────── */
@media (max-width: 360px) {
  .page-title {
    max-width: 110px !important;
    font-size: 0.92rem !important;
  }

  .nc-cad-stage {
    width: 170px !important;
    height: 140px !important;
  }

  .nc-cad-emblem-3d {
    width: 110px !important;
    height: 110px !important;
    margin-top: -55px !important;
    margin-left: -55px !important;
  }

  .nc-cad-emblem-img {
    width: 74px !important;
    height: 74px !important;
  }

  .nc-hero-title {
    font-size: 1.3rem !important;
  }
}

/* ── LIGHT MODE MOBILE POLISH ────────────────────────────────────────────── */
:root[data-theme="light"] .nc-mobile-bottom-bar,
:root[data-theme="light"] .mobile-dock,
:root[data-theme="light"] .nc-mobile-dock {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

:root[data-theme="light"] .sidebar-overlay {
  background: rgba(15, 23, 42, 0.5) !important;
}
