.niv-das-page {
  background:
    radial-gradient(circle at top left, rgba(61, 181, 82, 0.08), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(0, 139, 127, 0.08), transparent 28%),
    #f1f5f7;
}

.niv-das-page .header {
  background: transparent;
  box-shadow: none;
  padding-bottom: 20px;
}

.niv-das-page.scrolled .header {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.niv-hero-v3 {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 171, 154, 0.22), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(61, 181, 82, 0.18), transparent 24%),
    linear-gradient(135deg, #1a1a1a 0%, #111827 55%, #0f172a 100%);
  width: 100%;
  overflow: hidden;
  margin-bottom: -120px;
}

.hero-container {
  height: 100vh;
  min-height: 600px;
}

.niv-hero-inner {
  position: relative;
  z-index: 1;
  margin-top: -60px;
}

.version-badge {
  color: #3DB552;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.hero-v3-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -1.5px;
}

.hero-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

.computer-hardware {
  position: relative;
  width: 100%;
  max-width: min(900px, 75vh);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-hardware-frame {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-hardware-frame::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 12px;
  border: 4px solid #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.mock-stand {
  width: 15%;
  height: 60px;
  background: linear-gradient(to right, #333, #555, #333);
}

.mock-base {
  width: 35%;
  height: 10px;
  background: #444;
  border-radius: 10px 10px 0 0;
}

.mock-accessories {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
  align-items: flex-end;
}

.mock-keyboard {
  width: 300px;
  height: 15px;
  background: #222;
  border-radius: 5px;
  transform: perspective(500px) rotateX(20deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mock-mouse {
  position: absolute;
  left: calc(50% + 150px + 20px);
  width: 40px;
  height: 25px;
  background: #333;
  border-radius: 20px;
  transform: perspective(500px) rotateX(20deg);
}

.computer-screen {
  position: absolute;
  top: 1%;
  left: 2%;
  width: 96%;
  height: auto;
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
  border-radius: 4px;
}

.screen-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.screen-slide.active {
  opacity: 1;
}

.slider-btn {
  background: transparent;
  border: none;
  color: #3DB552;
  font-size: clamp(2rem, 3.5vw, 3rem);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 5;
  margin-top: -80px;
}

.slider-btn:hover {
  transform: scale(1.1);
  color: #3DB552;
  text-shadow: 0 0 15px rgba(61, 181, 82, 0.6);
}

.compliance-strip {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #3DB552;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  z-index: 2;
}

.compliance-strip .divider {
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .niv-hero-v3 {
    margin-bottom: -80px; 
  }
  
  .niv-hero-v3 .hero-container {
    height: auto !important;
    min-height: auto !important;
    padding: 80px 15px 100px;
  }

  .hero-screen {
    margin-top: 50px;
    gap: 15px;
  }
  
  .niv-hero-inner {
    margin-top: 0;
  }
  
  .hero-v3-title {
    font-size: 5.5rem; 
  }
  
  .compliance-strip {
    margin-top: 50px;
  }
}

@media (max-width: 767px) {
  .hero-v3-title {
    font-size: 3.5rem;
  }

  .niv-hero-v3 {
    margin-bottom: -80px;
  }
  
  .niv-hero-v3 .hero-container {
    height: auto !important;
    min-height: auto !important;
    padding: 50px 15px 100px; 
  }
  
  .niv-hero-inner {
    margin-top: 0;
    padding-top: 20px;
  }
  
  .hero-screen {
    margin-top: 20px;
    max-width: 100%;
    position: relative;
    flex-wrap: nowrap; 
  }

  .mock-accessories {
    margin-top: 10px;
  }
  
  .mock-keyboard {
    width: 180px;
    height: 12px;
  }
  
  .mock-mouse {
    display: none !important;
  }
  
  .mock-stand {
    height: 35px;
  }

  .slider-btn {
    position: absolute;
    top: auto;
    bottom: -20px;
    transform: none;
    background: transparent;
    padding: 10px;
    font-size: 2rem;
    box-shadow: none;
    margin-top: 0;
  }
  
  .slider-btn.prev-btn {
    left: calc(50% - 140px);
  }
  
  .slider-btn.next-btn {
    right: calc(50% - 140px);
  }
  
  .compliance-strip {
    margin-top: 30px;
    gap: 10px;
  }
}

@media (max-width: 375px) {
  .hero-v3-title {
    font-size: 3rem;
  }
}


.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #008b7f;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-heading h2,
.detail-copy h2,
.cta-band h2 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.spec-card,
.detail-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.feature-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #008b7f, #3DB552);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: #008b7f;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 139, 127, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #008b7f, #3DB552);
  margin-bottom: 18px;
}

.feature-icon i {
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.2rem;
}

.feature-card p,
.detail-copy p {
  margin: 0;
  color: #5f6b76;
  line-height: 1.75;
}

/* =============================================
   SWIPER CARDS CSS
   ============================================= */

#software-cards {
  scroll-margin-top: 240px;
}

.software .swiper-wrapper {
  display: flex;
  align-items: stretch;
  margin-top: 60px;
  height: auto;
}

.software .swiper-slide {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  container-type: inline-size;
  height: auto;
  overflow: visible;
}

.software .swiper-pagination {
  margin-top: 20px;
  position: relative;
  bottom: auto !important;
}

.software .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 70%);
  opacity: 1;
}

.software .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--default-color);
}

.software .swiper-button-next,
.software .swiper-button-prev {
  color: var(--default-color);
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10;
}

.software .swiper-button-next:hover,
.software .swiper-button-prev:hover {
  background: var(--default-color);
  color: #fff;
}

.software .swiper-button-prev { left: 10px; }
.software .swiper-button-next { right: 10px; }

.software .swiper-button-next::after,
.software .swiper-button-prev::after {
  font-size: 18px;
}

.software .content {
  margin-top: 50px;
  margin-inline: 70px;
  padding: 0 !important;
  max-width: 100% !important;
}

/* --- Service Item Card --- */

/* Intro subtext styling */
.capabilities-sub-intro {
  max-width: 1000px;
  margin: 20px auto 40px auto;
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #4b5563;
}

.brand-green-text-bold {
  color: #3db552;
  font-weight: 700;
}

/* --- Service Item Card --- */

.software .service-item {
  width: 125%;
  max-width: none;
  aspect-ratio: 19 / 26;
  flex-shrink: 0;
  padding: 8% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: #f5f6f8; /* Light gray background */
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.software .service-item::before {
  display: none !important;
}

.software .service-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

/* Active Swiper Slide highlight style */
.software .swiper-slide-active .service-item {
  background: #f5f6f8;
  border: 2.5px solid rgba(61, 181, 82, 0.55) !important;
  box-shadow: 0 12px 35px rgba(61, 181, 82, 0.15) !important;
}

@media (hover: hover) and (pointer: fine) {
  .software .service-item:hover {
    transform: none;
  }
}

.software .swiper-slide .service-item-content {
  opacity: 1;
  visibility: visible;
  max-height: none;
  overflow: visible;
}

.software .swiper-slide .service-item-content:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.software .swiper-slide .service-item-content:last-child {
  margin-top: 15px;
}

.software .swiper-slide .service-item-content h3.service-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  text-align: center;
}

.software .swiper-slide .service-item-content p {
  margin: 0;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  color: #4b5563;
  letter-spacing: 0.01em;
  opacity: 1;
  visibility: visible;
  max-height: 200px;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, visibility 0.4s ease;
}

.software .swiper-slide:not(.swiper-slide-active) .service-item-content p {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin: 0;
}

/* Inactive slide icon size */
.software .swiper-slide .service-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52%;
  aspect-ratio: 1;
  margin: 15px auto;
  transition: margin 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.software .swiper-slide .service-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* --- Responsive --- */

@media (max-width: 1199px) {
  .software .content {
    margin-inline: 20px;
  }
  .software .swiper-button-prev,
  .software .swiper-button-next {
    display: none;
  }
}

@media (max-width: 479px) {
  .software .swiper {
    overflow: visible;
  }
  .software .content {
    margin-inline: 8px;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.detail-list {
  margin: 22px 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.detail-list p{
  font-size: 16px;
}

.detail-panel {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-card {
  padding: 22px;
  text-align: center;
  box-shadow: none;
}

.spec-value {
  color: #008b7f;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
}

.spec-label {
  margin-top: 8px;
  color: #5f6b76;
  font-size: 0.95rem;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border-radius: 24px;
  color: #ffffff;
  background: #121212;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.cta-content {
  flex: 1;
  text-align: left;
}

.brand-green-text {
  color: #3db552;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 16px 0 0 0;
}

.cta-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

#primary-btn-cta:hover {
  transform: scale(1.05);
  opacity: 0.9;
  color: #ffffff;
}

#primary-btn-cta:hover span {
  color: #ffffff;
}

#primary-btn-cta::before {
  display: block !important;
  transform: translateX(-120%) skew(30deg);
}

#primary-btn-cta:hover::before {
  display: block !important;
  transform: translateX(0) skew(30deg);
}

#btn-datasheet-cta {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-whitepaper {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whitepaper:hover {
  color: #3db552;
}

.cta-caption {
  text-align: center;
  margin: 40px auto 0 auto;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: #1f2937;
  font-weight: 500;
  max-width: 900px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 24px;
  }
  .cta-actions-wrapper {
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }
  .cta-buttons {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }
  .cta-buttons .secondary-btn {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .btn-whitepaper {
    align-self: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .secondary-btn {
    width: 100%;
  }
}

.niv-hero::before,
.niv-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.niv-hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 40px;
  background: rgba(0, 171, 154, 0.22);
}

.niv-hero::after {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 20px;
  background: rgba(61, 181, 82, 0.14);
}

.cta-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  color: #ffffff !important;
  margin: 0;
}

.dark-cta-btn-outline {
  color: #111827;
  border-color: #ffffff;
  background: #ffffff;
}

.dark-cta-btn-outline:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: transparent;
}

@media (max-width: 991.98px) {
  .niv-hero {
    padding-top: 122px;
  }

  .feature-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  }

@media (max-width: 767.98px) {
  .feature-section,
  .detail-section,
  .cta-band {
    padding: 56px 0;
  }

  .hero-screen {
    padding: 12px;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   COMPARISON TABLE CSS
   ============================================= */

.cap-icon {
  color: #008b7f;
  font-size: 1.1rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.comparison-table th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1f2937;
  background-color: #f8fafc;
  font-size: 1rem;
}

.comparison-table tbody tr:hover {
  background-color: #f8fafc;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Make capability column bold and distinct */
.comparison-table td:first-child {
  font-weight: 600;
  color: #1f2937;
  width: 25%;
}

.comparison-table td:nth-child(2) {
  color: #5f6b76;
  width: 37.5%;
}

/* Highlight NIV-DAS column */
.comparison-table .highlight-col {
  background-color: rgba(0, 139, 127, 0.02);
  font-weight: 500;
  color: #008b7f;
  width: 37.5%;
}

.comparison-table th.highlight-col {
  background-color: rgba(0, 139, 127, 0.05);
  color: #008b7f;
  font-weight: 700;
  border-bottom: 2px solid #008b7f;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  
  .comparison-table td:first-child {
    width: 30%;
  }
  .comparison-table td:nth-child(2),
  .comparison-table td:nth-child(3) {
    width: 35%;
  }
}

/* =============================================
   SOFTWARE ARCHITECTURE SECTION
   ============================================= */

.architecture-large-wrapper {
  max-width: 1240px;
  margin: 40px auto 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #008b7f, #3db552); /* Gradient green background */
  padding: 1.5px; /* Thin border width */
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.architecture-img-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 22.5px; /* Aligned with container border radius */
}

/* =============================================
   VISIBILITY SLIDER SECTION
   ============================================= */

.visibility-slider-section {
  background: #121212; /* Dark background color */
  color: #ffffff;
  overflow: hidden;
}

.visibility-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 50px;
  align-items: center;
}

.visibility-copy {
  text-align: left;
}

.visibility-copy .eyebrow {
  display: inline-block;
  color: #3db552;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.visibility-slide-text-container {
  min-height: 180px; /* Prevents text height differences from shifting arrows and eyebrow */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.visibility-slide-text {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.visibility-slide-text.active {
  display: block;
  opacity: 1;
}

.visibility-slide-text h2 {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 18px 0;
  line-height: 1.25;
}

.visibility-slide-text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
}

.visibility-arrows {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.vis-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3db552;
  border: none;
  color: #ffffff; /* White caret icons */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.vis-arrow-btn:hover {
  background: #008b7f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 139, 127, 0.4);
}

.visibility-image-container {
  width: 100%;
}

.visibility-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: 32px; /* Rounded iPad corners */
  border: 14px solid #080808; /* iPad bezel */
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.1), 0 25px 50px rgba(0, 0, 0, 0.6); /* iPad glass/shadow */
  background: #0d0f14;
}

.vis-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.vis-screen-img.active {
  opacity: 1;
}

@media (max-width: 991.98px) {
  
  .visibility-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .visibility-copy {
    text-align: center;
  }

  .visibility-slide-text-container {
    min-height: 220px;
  }
  
  .visibility-arrows {
    justify-content: center;
  }
}
