/* =============================================================
   features-style.css — Custom Semantic CSS for NexiView Features
   ============================================================= */

/* Features-page extra tokens (extends header-style.css variables) */
:root {
  --color-brand-soft: rgba(37, 99, 235, 0.1);
  --color-ink: #0f172a;
  --color-ink-muted: #64748b;
  --color-primary-foreground: #ffffff;
  --color-card: #ffffff;
  --color-panel: #0b0f19;
  --color-panel-dark: #070a12;
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 30px -12px rgba(37, 99, 235, 0.25);
  --shadow-panel: 0 18px 50px -20px rgba(15, 23, 42, 0.28);
}

/* Page content area background gradient (applied on main, not page-wrapper, to not interfere with header) */
.main-content {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-page) 50%, rgba(37, 99, 235, 0.04) 100%);
}

/* Main Content */
.main-content {
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 1.5rem 5rem 1.5rem;
}

@media (min-width: 1024px) {
  .main-content {
    padding: 0 2.5rem 5rem 2.5rem;
  }
}

/* Hero Section */
.hero-section {
  padding-top: 1.5rem;
  text-align: center;
}

.hero-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-brand);
}

.hero-title {
  margin-top: 1rem;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
  }
}

.text-highlight {
  color: var(--color-brand);
}

.hero-subtitle {
  max-width: 680px;
  margin: 1rem auto 0 auto;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* Showcase Section Grid layout */
.showcase-section {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .showcase-section {
    grid-template-columns: 1fr 1.25fr;
  }
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  cursor: pointer;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

/* .feature-card.feature-card--active {
  border-color: var(--color-brand);
  background-color: rgba(37, 99, 235, 0.04);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
} */

.card-inner {
  display: flex;
  gap: 1rem;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--color-brand-soft);
  flex-shrink: 0;
}

.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--color-brand);
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease;
}

.feature-title:hover {
  color: var(--color-brand);
}

.feature-desc {
  margin-top: 0.35rem;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

/* Interactive Product Preview Panel Slider */
.preview-slider-container {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-panel);
}

.preview-slider {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0b0f19;
  border: 1px solid var(--color-border);
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0f19;
}

.slide .preview-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Slider Controls (Arrows) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(11, 15, 25, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.preview-slider:hover .slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow:hover {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-50%) scale(1.08);
}

.arrow-prev {
  left: 12px;
}

.arrow-next {
  right: 12px;
}

/* Slider Indicator Dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(7, 10, 18, 0.6);
  backdrop-filter: blur(6px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot--active {
  background-color: var(--color-brand);
  width: 20px;
  border-radius: 10px;
}

/* Preview Header */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.625rem 1rem;
  background-color: var(--color-panel-dark);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 5px;
  background-color: var(--color-brand);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary-foreground);
}

.brand-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.brand-accent {
  color: var(--color-brand);
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.5rem;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-preview-action:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.15s ease;
}

.btn-preview-icon:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.action-icon {
  width: 10px;
  height: 10px;
}

/* Preview Body */
.preview-body {
  display: flex;
  flex: 1;
}

.preview-sidebar {
  display: none;
  width: 120px;
  flex-shrink: 0;
  background-color: var(--color-panel-dark);
  padding: 0.75rem 0.625rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .preview-sidebar {
    display: block;
  }
}

.sidebar-item-group {
  margin-bottom: 0.625rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 5px;
  padding: 0.3125rem 0.375rem;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-item.active {
  background-color: var(--color-brand);
  color: var(--color-primary-foreground);
}

.sidebar-item-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Preview area */
.preview-main {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
}

.preview-breadcrumb {
  margin-bottom: 0.625rem;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-sep {
  margin-inline: 0.25rem;
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.8);
}

.preview-container {
  display: flex;
  gap: 0.75rem;
}

.interactive-stage-container {
  flex: 1;
  min-width: 0;
}

.interactive-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #05070d;
}

.stage-view-switcher {
  position: absolute;
  left: 0.625rem;
  top: 0.625rem;
  z-index: 10;
  width: 74px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.45);
  padding: 0.25rem;
  backdrop-filter: blur(8px);
}

.switcher-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 4px;
  padding: 0.25rem 0.375rem;
  font-size: 7px;
  font-weight: 500;
}

.switcher-item.active {
  background-color: var(--color-brand);
  color: var(--color-primary-foreground);
}

.switcher-icon {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.switcher-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-controls {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  z-index: 10;
  display: flex;
  gap: 0.25rem;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.control-icon {
  width: 10px;
  height: 10px;
}

.stage-image {
  width: 100%;
  object-fit: cover;
  height: 220px;
}

@media (min-width: 640px) {
  .stage-image {
    height: 290px;
  }
}

/* Hotspots */
.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

.hotspot-icon {
  width: 8px;
  height: 8px;
  color: var(--color-primary-foreground);
}

.hotspot-1 {
  left: 26%;
  top: 42%;
}

.hotspot-2 {
  left: 54%;
  top: 34%;
}

.hotspot-3 {
  left: 78%;
  top: 66%;
}

.thumbnail-strip {
  margin-top: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.thumbnail-btn {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #05070d;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.thumbnail-btn:hover {
  opacity: 1;
}

.thumbnail-btn.active {
  border: 2px solid var(--color-brand);
  opacity: 1;
}

/* Specs Panel */
.specs-panel {
  display: none;
  width: 170px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 0.75rem;
}

@media (min-width: 1024px) {
  .specs-panel {
    display: block;
  }
}

.specs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}

.specs-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.125rem 0.375rem;
  font-size: 6.5px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

/* Benefits Row */
.benefits-section {
  margin-top: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 2rem 1.5rem;
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-inline: 1rem;
}

@media (min-width: 1200px) {
  .benefit-item.border-left {
    border-left: 1px solid var(--color-border);
  }
}

.benefit-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background-color: var(--color-brand-soft);
  flex-shrink: 0;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand);
}

.benefit-content {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}

.benefit-desc {
  margin-top: 0.375rem;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

/* =============================================================
   MOBILE RESPONSIVE STYLES (< 768px)
   ============================================================= */
@media (max-width: 768px) {
  .main-content {
    padding: 0 1rem 3rem 1rem !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding-top: 1rem !important;
  }

  .hero-label {
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
  }

  .hero-title {
    margin-top: 0.5rem !important;
    font-size: 1.625rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-top: 0.5rem !important;
    padding-inline: 0.25rem !important;
  }

  .showcase-section {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 1.5rem !important;
    gap: 1.25rem !important;
  }

  .preview-slider-container {
    order: 1 !important;
    width: 100% !important;
    border-radius: 12px !important;
    position: sticky !important;
    top: 78px !important;
    z-index: 90 !important;
  }

  .preview-slider {
    border-radius: 12px !important;
    background-color: #0b0f19 !important;
  }

  .slider-arrow {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 2rem !important;
    height: 2rem !important;
  }
  .arrow-prev {
    left: 8px !important;
    transform: translateY(-50%) translateX(0) !important;
  }
  .arrow-next {
    right: 8px !important;
    transform: translateY(-50%) translateX(0) !important;
  }

  .slide .preview-img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0.25rem !important;
  }

  .slider-dots {
    bottom: 8px !important;
    padding: 3px 8px !important;
    gap: 6px !important;
  }

  .dot {
    width: 6px !important;
    height: 6px !important;
  }

  .dot--active {
    width: 16px !important;
  }

  /* Feature Cards Mobile Grid (2 per row below slider) */
  .features-grid {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .feature-card {
    padding: 1rem 0.75rem !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: 100% !important;
  }

  .card-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .feature-icon-wrapper {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    margin-bottom: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  .feature-icon {
    width: 18px !important;
    height: 18px !important;
    color: #2563eb !important;
  }

  .feature-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin: 0 !important;
  }

  .feature-desc {
    margin-top: 0.35rem !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
  }

  /* Benefits Section Mobile Styling */
  .benefits-section {
    margin-top: 1.5rem !important;
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  }

  .benefits-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .benefit-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0 !important;
  }

  .benefit-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .benefit-icon {
    width: 18px !important;
    height: 18px !important;
    color: #2563eb !important;
  }

  .benefit-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
  }

  .benefit-desc {
    margin-top: 0.2rem !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #64748b !important;
  }
}