/* 
 * NexiView Style Sheet
 * -------------------------------------------------------------
 * Custom, semantic stylesheet for the interactive product experience platform.
 * Structured cleanly with components, variables, and responsive behaviors.
 */

/* ==========================================
   1. CSS Variables & Theme Configuration
   ========================================== */
:root {
  /* Colors */
  --color-background: oklch(100% 0 0);
  --color-foreground: oklch(21% 0.05 265);

  --color-navy: oklch(19% 0.07 265);
  --color-navy-deep: oklch(14% 0.06 266);
  --color-navy-foreground: oklch(99% 0 0);

  --color-brand: oklch(51.35% 0.269 263.35);
  --color-brand-bright: oklch(51.5% 0.268 263.29);
  --color-brand-foreground: oklch(100% 0 0);

  --color-surface-soft: oklch(97% 0.015 255);
  --color-border: oklch(92% 0.012 255);
  --color-muted-foreground: oklch(52% 0.03 258);

  /* Gradients */
  --gradient-hero:
    radial-gradient(1200px 600px at 85% 20%, oklch(32% 0.13 264 / 0.75), transparent 65%),
    linear-gradient(120deg, oklch(13% 0.06 266), oklch(20% 0.09 266));
  --gradient-panel:
    linear-gradient(135deg, oklch(24% 0.1 265), oklch(16% 0.07 266));

  /* Layout and Shapes */
  --radius: 0.5rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-card: 0 1px 2px oklch(21% 0.05 265 / 0.06);
}

/* ==========================================
   2. Base Styles & Global Resets
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Page Wrapper */
.app-container {
  min-height: 100vh;
  background-color: var(--color-background);
}

/* ==========================================
   3. Header Navigation Component
   ========================================== */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Thin bottom line */
  padding: 0;
}

.header-container {
  margin-inline: auto;
  max-width: 1440px;
  width: 100%;
  height: 4.75rem;
  /* Explicit height for pixel-perfect line alignment */
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: 1.5rem;
}

/* Brand Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-svg {
  display: block;
  flex-shrink: 0;
}

.logo-text-wrapper {
  line-height: 1;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-navy-foreground);
}

.logo-text span {
  color: var(--color-navy-foreground);
}

.logo-subtitle {
  margin-top: 0.25rem;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Nav links */
.nav-menu {
  display: none;
  /* hidden on mobile, shown on desktop via media query */
  align-items: stretch;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-navy-foreground);
}

.nav-link.active {
  color: var(--color-brand-bright);
}

.nav-link svg {
  height: 1rem;
  width: 1rem;
  opacity: 0.8;
}

.nav-active-indicator {
  position: absolute;
  right: 0;
  bottom: -1px;
  /* Align exactly on top of the header bottom border */
  left: 0;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--color-brand-bright);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-lang {
  display: none;
  /* hidden on mobile */
  align-items: center;
  gap: 0.375rem;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.btn-lang svg {
  height: 1rem;
  width: 1rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 0.45rem 1.125rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy-foreground);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-login:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  /* matches border size of Login button for equal height */
  border-radius: 5px;
  background-color: var(--color-brand);
  padding: 0.45rem 1.25rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-brand-foreground);
  transition: background-color 0.15s ease;
}

.btn-demo:hover {
  background-color: var(--color-brand-bright);
}

.btn-demo svg {
  height: 0.875rem;
  width: 0.875rem;
}

/* ==========================================
   4. Hero Section Component
   ========================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: var(--gradient-hero);
}

.hero-grid {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  max-width: 1440px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

/* Left text container */
.hero-text {
  padding-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

.hero-badge svg {
  color: var(--color-brand-bright);
  height: 1rem;
  width: 1rem;
}

.hero-badge span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-title span {
  color: var(--color-brand-bright);
}

.hero-desc {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Key Checklist items */
.check-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  background-color: var(--color-brand-bright);
  color: var(--color-brand-foreground);
  flex-shrink: 0;
}

.check-badge svg {
  height: 0.875rem;
  width: 0.875rem;
}

.check-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero action CTAs */
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.btn-hero-primary {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--radius);
  background-color: var(--color-brand);
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-brand-foreground);
  transition: background-color 0.15s ease;
}

.btn-hero-primary:hover {
  background-color: var(--color-brand-bright);
}

.btn-hero-primary svg {
  height: 1rem;
  width: 1rem;
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--radius);
  background-color: var(--color-background);
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-brand);
  transition: background-color 0.15s ease;
}

.btn-hero-secondary:hover {
  background-color: var(--color-surface-soft);
}

.btn-hero-secondary svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* Right side Image wrapper & Slider */
.hero-image {
  position: relative;
  align-self: end;
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 300%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
  width: 33.3333%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
}

/* Index Slider Arrows (Hidden by default, shown on hover of .hero-slider) */
.index-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.index-arrow-left {
  left: 1rem;
  transform: translateY(-50%) translateX(-8px);
}

.index-arrow-right {
  right: 1rem;
  transform: translateY(-50%) translateX(8px);
}

/* Hover hero-slider wrapper state to show arrows */
.hero-slider:hover .index-slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider:hover .index-arrow-left {
  transform: translateY(-50%) translateX(0);
}

.hero-slider:hover .index-arrow-right {
  transform: translateY(-50%) translateX(0);
}

/* Hover arrow state */
.index-slider-arrow:hover {
  background-color: var(--color-brand, #2563eb);
  border-color: var(--color-brand, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Show on mobile but adjust styling for touch compatibility */
@media (max-width: 768px) {
  .index-slider-arrow {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
  .index-arrow-left {
    left: 0.5rem !important;
    transform: translateY(-50%) translateX(0) !important;
  }
  .index-arrow-right {
    right: 0.5rem !important;
    transform: translateY(-50%) translateX(0) !important;
  }
}

/* Dots indicator overlay */
.slider-dots {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.slider-dots .dot.active {
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* ==========================================
   5. Client Logos Showcase
   ========================================== */
.logos-section {
  background-color: var(--color-background);
  padding-block: 2.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.logos-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  /* Muted Slate 900 */
  margin-bottom: 1.75rem;
}

.logos-container {
  margin-inline: auto;
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding-inline: 1.5rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 3rem;
  /* Taller height to support vertical logo stack layout */
  color: #64748b;
  /* Sleek slate gray */
  border-right: 1px solid #e2e8f0;
  /* Single dividing line */
  transition: color 0.15s ease;
}

.logo-item:last-child {
  border-right: none;
  /* No divider line after the last item */
}

.logo-item:hover {
  color: #1e293b;
}

.brand-logo-svg,
.brand-logo-img,
.logo-item img {
  height: auto !important;
  max-height: 2rem !important;
  width: auto !important;
  max-width: 85% !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  filter: grayscale(100%) opacity(0.65);
  transition: all 0.25s ease;
}

.logo-item:hover img,
.logo-item:hover .brand-logo-img {
  filter: grayscale(0%) opacity(0.95);
}

.logo-count {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.08);
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.logo-count:hover {
  background-color: rgba(37, 99, 235, 0.15);
}

@media (max-width: 1023px) {
  .logos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 1rem;
    align-items: center;
    justify-items: center;
  }

  .logo-item {
    flex: none;
    width: 100%;
    border-right: none;
    height: 2.75rem;
  }
}

@media (max-width: 767px) {
  .logos-section {
    padding-block: 1.75rem 1.5rem;
  }

  .logos-title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    padding-inline: 0.5rem;
  }

  .logos-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem 0.5rem;
  }

  .logo-item {
    height: 2.5rem;
  }

  .brand-logo-svg {
    height: 1.375rem;
    max-width: 90%;
  }

  .logo-count {
    font-size: 11px;
    padding: 0.3rem 0.625rem;
  }

  .logo-item.last-logo {
    grid-column: auto;
    margin-top: 0;
  }
}

/* ==========================================
   6. Features Grid Layout
   ========================================== */
.features-section {
  background-color: var(--color-background);
  padding-inline: 1.3rem;
  padding-top: 0;
  padding-bottom: 1rem;
}

.features-container {
  margin-inline: auto;
  max-width: 1600px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  align-items: stretch;
  background-color: var(--color-surface, #ffffff);
  overflow: hidden;
}

.feature-card {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  padding: 1.125rem 0.875rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical divider for odd items in 2-col layout */
.feature-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background-color: var(--color-border);
}

.feature-card:nth-child(even)::after {
  display: none;
}

/* Remove bottom border for bottom row in 2-col layout */
.feature-card:nth-child(5),
.feature-card:nth-child(6) {
  border-bottom: none;
}

.feature-icon {
  margin-inline: auto;
  height: 1.75rem;
  width: 1.75rem;
  color: var(--color-brand);
  flex-shrink: 0;
}

.feature-title {
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-foreground);
  line-height: 1.35;
  white-space: normal;
}

.feature-desc {
  margin-top: 0.35rem;
  font-size: 11px;
  line-height: 1.45;
  color: var(--color-muted-foreground);
}

/* ==========================================
   7. Business Impact / Stats Panel
   ========================================== */
.impact-panel {
  background-image: var(--gradient-panel);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy-foreground);
  line-height: 1.3;
}

.impact-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.impact-item {
  position: relative;
  text-align: center;
}

/* Same inset divider style as feature cards */
.impact-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0%;
  bottom: 10%;
  width: 0.75px;
  background-color: rgba(255, 255, 255, 0.15);
}

.impact-item:last-child::after {
  display: none;
}

.impact-icon-wrapper {
  margin-inline: auto;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.12);
}

.impact-icon-wrapper svg {
  color: var(--color-brand-bright);
  height: 1rem;
  width: 1rem;
}

.impact-value {
  margin-top: 0.35rem;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-navy-foreground);
}

.impact-label {
  margin-top: 0.15rem;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================
   8. Call-To-Action (CTA) Banner
   ========================================== */
.cta-section {
  background-color: var(--color-background);
  padding-inline: 1.3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.cta-banner {
  margin-inline: auto;
  max-width: 1600px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius);
  background-color: var(--color-surface-soft);
  padding: 0.85rem 1.5rem;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.cta-icon {
  height: 2.25rem;
  width: 2.25rem;
  color: var(--color-brand);
  flex-shrink: 0;
}

.cta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-foreground);
  white-space: nowrap;
}

.cta-desc {
  margin-top: 0.2rem;
  font-size: 12px;
  color: var(--color-muted-foreground);
}

.cta-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cta-subtext {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted-foreground);
  white-space: nowrap;
}

.btn-cta-primary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  background-color: var(--color-brand);
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-foreground);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-cta-primary:hover {
  background-color: var(--color-brand-bright);
}

.btn-cta-primary svg {
  height: 0.85rem;
  width: 0.85rem;
}

.btn-cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  transition: background-color 0.15s ease;
}

.btn-cta-secondary:hover {
  background-color: var(--color-surface-soft);
}

.btn-cta-secondary svg {
  height: 1rem;
  width: 1rem;
}

/* ==========================================
   9. Responsive Media Queries
   ========================================== */

/* Mobile & Tablet Layout (< 1023px) */
@media (max-width: 1023px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-top: 0.75rem;
  }

  .hero-image {
    order: 1;
    width: 100%;
    margin-top: 0;
  }

  .hero-text {
    order: 2;
    padding-bottom: 2rem;
  }
}

/* Mobile Phone Specific (< 767px) */
@media (max-width: 767px) {
  .hero-grid {
    gap: 1rem;
    padding-inline: 0.75rem;
  }

  .hero-image {
    order: 1;
    width: 100%;
    margin-top: 0;
  }

  .hero-text {
    order: 2;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .slider-dots {
    bottom: 11%;
    gap: 0.45rem;
  }

  .slider-dots .dot {
    width: 7px;
    height: 7px;
  }

  .hero-badge {
    padding: 0.35rem 0.625rem;
    gap: 0.375rem;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-badge svg {
    flex-shrink: 0;
    width: 0.8125rem;
    height: 0.8125rem;
  }

  .hero-badge span {
    font-size: 11px;
    line-height: 1.3;
  }

  .hero-title {
    margin-top: 0.75rem;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
  }

  .hero-desc {
    margin-top: 0.625rem;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    margin-inline: auto;
  }

  .check-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem 0.375rem;
  }

  .check-item {
    gap: 0.375rem;
  }

  .check-badge {
    width: 1rem;
    height: 1rem;
  }

  .check-badge svg {
    width: 0.6875rem;
    height: 0.6875rem;
  }

  .check-text {
    font-size: 11.5px;
  }

  .hero-actions {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 0.375rem;
    font-size: 12px;
    gap: 0.25rem;
    white-space: nowrap;
    text-align: center;
  }

  .btn-hero-primary svg,
  .btn-hero-secondary svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
  }

  /* Feature cards strictly 2 in a row on mobile */
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
  }

  .feature-card {
    min-width: 0 !important;
    padding: 0.875rem 0.375rem !important;
  }

  .feature-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .feature-title {
    font-size: 11.5px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    margin-top: 0.35rem !important;
  }

  .feature-desc {
    font-size: 10px !important;
    line-height: 1.35 !important;
    margin-top: 0.25rem !important;
  }
}

/* Tablet & Smaller Screens (min-width: 640px and max-width: 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 34px;
  }
}

/* Large Tablet & Small Laptop (min-width: 768px) */
@media (min-width: 768px) {
  .header-container {
    padding-inline: 1.5rem;
  }

  .hero-grid {
    padding-inline: 1.5rem;
  }

  .btn-lang {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card::after {
    display: block;
  }

  /* In 3-col: bottom row cards have no bottom border */
  .feature-card:nth-child(4),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    border-bottom: none;
  }

  /* In 3-col: 3rd and 6th card have no ::after divider */
  .feature-card:nth-child(3)::after,
  .feature-card:nth-child(6)::after {
    display: none;
  }

  /* Impact panel full width below features grid when stacked */
  .impact-panel {
    border-radius: var(--radius);
    margin-top: 1rem;
  }

}

/* Desktop Displays (min-width: 1024px) */
@media (min-width: 1024px) {
  .header-container {
    padding-inline: 1.2rem;
  }

  .nav-menu {
    display: flex;
  }

  .hero-grid {
    display: grid;
    padding-inline: 1.5rem;
    grid-template-columns: 44% 56%;
    gap: 2.5rem;
  }

  .hero-text {
    order: unset;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 48px;
  }

  .check-text {
    font-size: 13.5px;
    white-space: nowrap;
  }

  .hero-image {
    order: unset;
    position: relative !important;
    top: -2rem !important;
    margin-right: -5rem !important;
    /* Pull the image rightward to fill the empty space */
  }

  .features-container {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 1rem;
  }

  /* Both panels are fully independent cards at desktop */
  .features-grid {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
  }

  .impact-panel {
    border-radius: var(--radius);
    margin-top: 0;
  }


}

/* Wide Desktop Screens (min-width: 1200px) */
@media (min-width: 1200px) {
  .check-text {
    font-size: 14.5px;
  }
}

/* Extra Large Screens (min-width: 1400px) */
@media (min-width: 1400px) {
  .check-text {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* In 6-col single row: no bottom border needed */
  .feature-card {
    border-bottom: none;
  }

  /* Restore ::after dividers for cards that were hidden in 768px 3-col query */
  .feature-card:nth-child(3)::after {
    display: block;
  }
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile Header & Navigation Adjustments */
@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-navy-foreground);
    border: none;
    background: none;
    cursor: pointer;
  }

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

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding-inline: 1rem !important;
    gap: 1rem !important;
  }

  .logo-subtitle {
    display: none !important;
  }

  .logo-text {
    font-size: 18px !important;
  }

  .header-actions .btn-lang,
  .header-actions .btn-login,
  .header-actions .btn-demo {
    display: none !important;
  }

  /* Features Grid Mobile (2 cards in a row) */
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .feature-card {
    min-width: 0 !important;
    padding: 1rem 0.5rem !important;
    border-bottom: 1px solid var(--color-border) !important;
  }

  .feature-card::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 15% !important;
    bottom: 15% !important;
    width: 1px !important;
    background-color: var(--color-border) !important;
  }

  .feature-card:nth-child(odd)::after {
    display: block !important;
  }

  .feature-card:nth-child(even)::after {
    display: none !important;
  }

  .feature-card:nth-child(5),
  .feature-card:nth-child(6),
  .feature-card:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  .feature-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .feature-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    margin-top: 0.4rem !important;
  }

  .feature-desc {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    margin-top: 0.25rem !important;
  }

  /* Stats / Impact Panel Mobile Layout */
  .impact-panel {
    padding: 1rem 0.875rem !important;
    justify-content: flex-start !important;
    align-self: start !important;
    height: auto !important;
  }

  .impact-title {
    text-align: center !important;
    font-size: 15px !important;
    margin-bottom: 0.75rem !important;
  }

  .impact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem 0.5rem !important;
    align-content: start !important;
  }

  .impact-item {
    padding: 0.35rem 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .impact-item::after {
    display: none !important;
  }

  .impact-item:last-child {
    grid-column: 1 / -1 !important;
    max-width: 60% !important;
    width: 100% !important;
    margin-inline: auto !important;
  }

  .impact-icon-wrapper {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    margin-inline: auto !important;
  }

  .impact-icon-wrapper svg {
    width: 1rem !important;
    height: 1rem !important;
  }

  .impact-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 0.25rem !important;
  }

  .impact-label {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.25 !important;
    margin-top: 0.15rem !important;
  }

  /* CTA Banner Mobile Stack & Enhanced Design */
  .cta-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    padding: 1.75rem 1.25rem !important;
    border-radius: 20px !important;
    background-color: var(--color-surface-soft, #f0f7ff) !important;
    border: 1px solid var(--color-border, #e2e8f0) !important;
  }

  .cta-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.625rem !important;
    width: 100% !important;
  }

  .cta-icon {
    width: 2.75rem !important;
    height: 2.75rem !important;
    color: var(--color-brand, #2563eb) !important;
    margin-bottom: 0.25rem !important;
  }

  .cta-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--color-foreground, #0f172a) !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .cta-desc {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    color: var(--color-muted-foreground, #64748b) !important;
    margin-top: 0.35rem !important;
    text-align: center !important;
    max-width: 92% !important;
    margin-inline: auto !important;
  }

  .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.625rem !important;
    margin-top: 0.25rem !important;
  }

  .cta-subtext {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--color-muted-foreground, #64748b) !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
  }

  .btn-cta-primary {
    justify-content: center !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background-color: var(--color-brand, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  }

  .btn-cta-secondary {
    justify-content: center !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    border: 1px solid var(--color-border, #e2e8f0) !important;
    color: var(--color-brand, #2563eb) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
}