/* ==========================================
   Sallahkarah - Modern Insurance Platform
   Design System: Strategic Purple + Insight Copper, used deliberately throughout
   ========================================== */

/* 1. CSS Resets & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #4B336F;       /* Strategic Purple */
  --color-primary-dark: #34234f;  /* Deeper purple for gradients/footer */
  --color-primary-light: #6b4f96; /* Lighter purple for gradients */
  --color-copper: #B0653A;        /* Insight Copper (Darker) */
  --color-copper-dark: #8D4A2A;
  --color-copper-light: #CC8452;
  --color-text-main: #0f172a;     /* Slate 900 */
  --color-text-muted: #64748b;    /* Slate 500 */
  --color-border: #e2e8f0;        /* Slate 200 */
  --color-bg-light: #f4f1f9;      /* Light purple tint */
  --color-bg-copper-light: #fbf1ea; /* Light copper tint */
  --color-bg-white: #ffffff;
  --radius-full: 999px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-data: 'JetBrains Mono', 'Roboto Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* 2. Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 110px 0;
}

.hairline-border {
  border-top: 1px solid var(--color-border);
}

/* 3. Header */
.header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.35s ease, padding 0.35s ease;
}

.header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(75, 51, 111, 0.35);
}

@keyframes sheen-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 16px;
  transition: padding 0.35s ease;
}

.header.is-scrolled .navbar {
  padding: 2px 0;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 68px;
  transition: height 0.35s ease, transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.04);
}

.header.is-scrolled .logo img {
  height: 52px;
}

.nav-menu {
  display: flex;
  gap: 40px;
  flex-shrink: 1;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  position: relative;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger toggle button (hidden on wide screens) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 210;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop behind the open mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}

.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.btn span.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-pop 0.6s ease-out forwards;
  z-index: -1;
}

@keyframes ripple-pop {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

.btn-secondary {
  border: 1px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
}

.btn-secondary span.btn-ripple {
  background: rgba(75, 51, 111, 0.18);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 16px -6px rgba(75, 51, 111, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px -10px rgba(75, 51, 111, 0.6);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* 5. Hero Section */
.hero-section {
  padding: 50px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(75, 51, 111, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 88% 20%, rgba(176, 101, 58, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-white) 55%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 119, 70, 0.18) 0%, transparent 70%);
  z-index: 1;
  animation: float-blob-a 10s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 51, 111, 0.16) 0%, transparent 70%);
  z-index: 1;
  animation: float-blob-b 12s ease-in-out infinite;
}

@keyframes float-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

@keyframes float-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
}

/* extra floating particles layer */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-copper) 100%);
  opacity: 0.25;
  animation: particle-drift linear infinite;
}

@keyframes particle-drift {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.25; }
  100% { transform: translateY(-140px) translateX(20px) rotate(180deg); opacity: 0; }
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(75, 51, 111, 0.25);
  background: rgba(75, 51, 111, 0.08);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.7s ease forwards 0.05s;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-copper);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 119, 70, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(201, 119, 70, 0); }
}

.hero-title {
  font-family: var(--font-body);
  font-size: 52px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.18s;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.32s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.46s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 6. Signature Hierarchy Motif */
.hierarchy-motif {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 44px 48px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px rgba(75, 51, 111, 0.28);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: motif-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.62s;
}

@keyframes motif-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hierarchy-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hierarchy-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-white);
  transition: all 0.3s ease;
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  animation: dot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dot-pop {
  to { opacity: 1; transform: scale(1); }
}

.hierarchy-node:nth-child(1) .hierarchy-dot { animation-delay: 0.8s; }
.hierarchy-node:nth-child(3) .hierarchy-dot { animation-delay: 1.0s; }
.hierarchy-node:nth-child(5) .hierarchy-dot { animation-delay: 1.2s; }
.hierarchy-node:nth-child(7) .hierarchy-dot { animation-delay: 1.4s; }
.hierarchy-node:nth-child(9) .hierarchy-dot { animation-delay: 1.6s; }

.hierarchy-motif:hover .hierarchy-dot {
  transform: scale(1);
}

.hierarchy-node:hover .hierarchy-dot {
  transform: scale(1.15) !important;
  box-shadow: 0 6px 18px -6px rgba(75, 51, 111, 0.45);
}

/* Progressive brand-color fill across the hierarchy: purple -> copper */
.hierarchy-node:nth-child(1) .hierarchy-dot {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(75, 51, 111, 0.12);
}
.hierarchy-node:nth-child(3) .hierarchy-dot {
  border-color: var(--color-primary);
  background-color: rgba(75, 51, 111, 0.08);
  color: var(--color-primary);
}
.hierarchy-node:nth-child(5) .hierarchy-dot {
  border-color: var(--color-copper);
  background-color: rgba(201, 119, 70, 0.1);
  color: var(--color-copper-dark);
}
.hierarchy-node:nth-child(7) .hierarchy-dot {
  border-color: var(--color-copper);
  background-color: rgba(201, 119, 70, 0.15);
  color: var(--color-copper-dark);
}
.hierarchy-node:nth-child(9) .hierarchy-dot {
  border-color: var(--color-copper);
  background-color: var(--color-copper);
  color: white;
  box-shadow: 0 0 0 6px rgba(201, 119, 70, 0.15);
}

.hierarchy-dot.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(75, 51, 111, 0.1);
  animation: dot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, active-glow 2.2s ease-in-out infinite 1.4s;
}

@keyframes active-glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(75, 51, 111, 0.1); }
  50% { box-shadow: 0 0 0 12px rgba(75, 51, 111, 0.02); }
}

.hierarchy-label {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
}

.hierarchy-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-copper) 100%);
  opacity: 0.35;
  position: relative;
  align-self: flex-start;
  margin-top: 25px;
  transform: scaleX(0);
  transform-origin: left;
  animation: line-draw 0.5s ease forwards;
}

.hierarchy-node:nth-child(2) .hierarchy-line,
.hierarchy-motif .hierarchy-line:nth-of-type(1) { animation-delay: 0.95s; }

.hierarchy-motif > .hierarchy-line:nth-child(2) { animation-delay: 0.95s; }
.hierarchy-motif > .hierarchy-line:nth-child(4) { animation-delay: 1.15s; }
.hierarchy-motif > .hierarchy-line:nth-child(6) { animation-delay: 1.35s; }
.hierarchy-motif > .hierarchy-line:nth-child(8) { animation-delay: 1.55s; }

@keyframes line-draw {
  to { transform: scaleX(1); }
}

.hierarchy-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-copper);
  border-right: 2px solid var(--color-copper);
  transform: translateY(-50%) rotate(45deg);
}

/* spacer so the section below clears the overlapping panel */
.hero-motif-spacer {
  height: 90px;
}

/* 7. Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-copper-dark) 130%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 52px 0;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(18px);
}

.stat-item.in-view {
  animation: fade-up 0.7s ease forwards;
}

.stat-item:nth-child(1).in-view { animation-delay: 0.05s; }
.stat-item:nth-child(2).in-view { animation-delay: 0.15s; }
.stat-item:nth-child(3).in-view { animation-delay: 0.25s; }
.stat-item:nth-child(4).in-view { animation-delay: 0.35s; }

.stat-item:first-child {
  border-left: none;
}

.stat-value {
  font-family: var(--font-data);
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.stat-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Trusted Section */
.trusted-section {
  text-align: center;
}

.trusted-content {
  max-width: 700px;
  margin: 0 auto;
}

.rating-section {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rating-stars {
  font-size: 24px;
}

.rating-value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--color-primary);
  font-weight: 700;
}

.rating-description {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Analytics Section */
.analytics-grid,
.collaboration-grid,
.notifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.analytics-item,
.collaboration-item,
.notification-item {
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-white);
  box-shadow: 0 8px 24px -12px rgba(15,23,42,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-item:hover,
.collaboration-item:hover,
.notification-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px -14px rgba(75,51,111,0.28);
}

.analytics-icon,
.collaboration-icon,
.notification-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.analytics-item h3,
.collaboration-item h3,
.notification-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.analytics-item p,
.collaboration-item p,
.notification-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Updated Why Choose Us */
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.why-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background 0.2s ease;
}

.why-list-item:hover {
  transform: translateX(4px);
  background: white;
}

.why-list-icon {
  font-size: 24px;
  color: var(--color-copper);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(176, 101, 58, 0.1);
}

.why-list-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
}

@media (max-width: 960px) {
  .why-list {
    grid-template-columns: 1fr;
  }
}

/* 8. Features Section */
.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.section-title-small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title-large {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-item {
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-white);
  box-shadow: 0 8px 24px -12px rgba(15,23,42,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px -14px rgba(75,51,111,0.28);
}

.feature-number {
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .feature-number {
  transform: rotate(360deg) scale(1.1);
}

.feature-item:nth-child(even) .feature-number {
  background: linear-gradient(135deg, var(--color-copper) 0%, var(--color-copper-dark) 100%);
}

.feature-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.feature-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .features-list,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* 9. Why Choose Us Section */
.why-choose-us {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-copper-light) 100%);
  border-top: 1px solid var(--color-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-item {
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-white);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--color-copper);
  border-radius: 2px;
  margin-bottom: 20px;
  transition: width 0.35s ease;
}

.why-item:hover::before {
  width: 64px;
}

.why-item:nth-child(2)::before {
  background: var(--color-primary);
}

.why-item:nth-child(3)::before {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-copper) 100%);
}

.why-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(75, 51, 111, 0.08) 0%, transparent 70%);
  border-radius: 0 0 0 100%;
  transition: transform 0.35s ease;
}

.why-item:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 20px 38px -14px rgba(75, 51, 111, 0.32);
}

.why-item:hover::after {
  transform: scale(1.3);
}

.why-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.why-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 10. FAQ Section */
.faq-grid {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
  padding-left: 4px;
}

.faq-item.open {
  border-left-color: var(--color-copper);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  color: var(--color-text-main);
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-item.open .faq-trigger {
  color: var(--color-primary);
}

.faq-icon {
  font-family: var(--font-data);
  font-size: 20px;
  color: var(--color-primary);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(225deg);
  color: var(--color-copper);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding-bottom 0.4s ease;
  opacity: 0;
  padding-bottom: 0;
}

.faq-item.open .faq-content {
  max-height: 240px;
  opacity: 1;
  padding-bottom: 24px;
}

.faq-content p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* 11. Final CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, var(--color-copper-dark) 140%);
  background-size: 200% 200%;
  animation: gradient-shift 14s ease infinite;
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 119, 70, 0.35) 0%, transparent 70%);
  animation: float-blob-a 9s ease-in-out infinite;
}

.cta-section .section-title-large {
  color: white;
  font-size: 40px;
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cta-section .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.cta-section .btn-secondary:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--color-copper) 0%, var(--color-copper-dark) 100%);
  font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35);
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, var(--color-copper-light) 0%, var(--color-copper) 100%);
  transform: translateY(-3px);
}

/* 12. Footer */
.footer {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #241a3a 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.85);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-copper-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  position: relative;
  width: fit-content;
}

.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-copper-light);
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: var(--color-copper-light);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-copper) 100%);
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(75, 51, 111, 0.55);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.25s ease;
  border: none;
  font-size: 18px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 14px 30px -8px rgba(75, 51, 111, 0.7);
  transform: translateY(-4px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   13. Responsive — collapsed nav from 1100px down
   This is the actual fix: previously nav-menu/nav-buttons
   only hid at 768px with no fallback above that, so the
   logo + links + 2 buttons would overflow past the viewport
   at any width between "hides at 768" and "true desktop".
   Now the hamburger menu takes over earlier, well before
   things run out of room, and there's no dead zone.
   ========================================== */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 96px 32px 32px;
    box-shadow: -18px 0 40px -20px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    overflow-y: auto;
  }

  .nav-menu.is-active {
    transform: translateX(0);
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-buttons {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 32px 32px;
    padding-top: calc(96px + 5 * 47px + 40px);
    background: var(--color-bg-white);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 199;
    pointer-events: none;
  }

  .nav-buttons.is-active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .analytics-grid,
  .collaboration-grid,
  .notifications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hierarchy-motif {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hierarchy-line {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
  }

  .nav-menu,
  .nav-buttons {
    width: 100vw;
  }
}

/* ==========================================
   Blog Post Styling
   ========================================== */
.blog-post-section {
  padding: 80px 0;
  background-color: var(--color-bg-white);
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.blog-post-meta .author {
  font-weight: 600;
  color: var(--color-primary);
}

.blog-post-meta .dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 50%;
}

.blog-post-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  box-shadow: 0 10px 30px -15px rgba(75, 51, 111, 0.25);
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-main);
}

.blog-post-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

.blog-post-body li {
  margin-bottom: 10px;
}

.blog-post-body figure {
  margin: 32px 0;
}

.blog-post-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.more-insights-section {
  background-color: var(--color-bg-light);
  padding: 80px 0;
}

.more-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.more-insights-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-primary-dark);
  margin: 0;
}

.more-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.more-insights-grid .blog-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.more-insights-grid .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px rgba(75, 51, 111, 0.3);
}

.more-insights-grid .blog-card-image-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.more-insights-grid .blog-card-content-wrap {
  padding: 24px;
}

.more-insights-grid .blog-card-content-wrap h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.more-insights-grid .blog-card-content-wrap h3 a {
  color: var(--color-text-main);
  transition: color 0.2s ease;
}

.more-insights-grid .blog-card-content-wrap h3 a:hover {
  color: var(--color-primary);
}

.more-insights-grid .blog-card-info {
  display: flex;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.more-insights-grid .blog-card-info .divider {
  width: 4px;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 50%;
  align-self: center;
}

@media (max-width: 900px) {
  .more-insights-grid {
    grid-template-columns: 1fr;
  }
}

.back-to-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: gap 0.2s ease;
}

.back-to-blog-link:hover {
  gap: 12px;
}

.back-to-blog-link svg {
  width: 20px;
  height: 20px;
}

/* ==========================================
   Platform Gallery Section
   ========================================== */
.gallery-section {
  background-color: var(--color-bg-copper-light);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 101, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 51, 111, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.gallery-tab-btn {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(75, 51, 111, 0.03);
}

.gallery-tab-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.gallery-tab-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-white);
  box-shadow: 0 8px 20px -6px rgba(75, 51, 111, 0.4);
}

.gallery-content-pane {
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-content-pane.active {
  display: block;
}

.gallery-content-pane.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Force standard grid items to center when we have few items */
.gallery-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.gallery-grid-centered .gallery-card {
  max-width: 480px;
  flex: 1 1 350px;
}

.gallery-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(75, 51, 111, 0.15);
  border-color: rgba(75, 51, 111, 0.15);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(75, 51, 111, 0.8) 0%, rgba(75, 51, 111, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

.gallery-card-body {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-copper);
  margin-bottom: 8px;
  background-color: var(--color-bg-copper-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.gallery-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.gallery-card-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-bg-white);
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--color-copper);
  transform: rotate(90deg);
}

.lightbox-caption-wrap {
  margin-top: 20px;
  text-align: center;
  color: var(--color-bg-white);
  max-width: 600px;
}

.lightbox-caption-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.lightbox-caption-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .gallery-tabs {
    gap: 8px;
    margin-bottom: 35px;
  }
  
  .gallery-tab-btn {
    padding: 10px 20px;
    font-size: 13.5px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-grid-centered .gallery-card {
    max-width: 100%;
  }

  .lightbox-close {
    right: 10px;
    top: -50px;
  }
}

/* ==========================================
   Request a Demo Modal Styles
   ========================================== */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.demo-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.demo-modal.active .demo-modal-card {
  transform: translateY(0);
}

.demo-modal-header {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-body);
}

.demo-modal-close {
  background: transparent;
  border: none;
  color: var(--color-bg-white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.demo-modal-close:hover {
  opacity: 1;
}

.demo-modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.demo-modal-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  margin-bottom: 16px;
  display: none;
  font-family: var(--font-body);
}

.demo-modal-alert.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  display: block;
}

.demo-modal-alert.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  display: block;
}

/* Password visibility toggle styling */
.password-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-wrapper .form-control {
  padding-right: 42px; /* Ensure input text doesn't overlap the eye icon */
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--color-primary, #6366f1);
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}


