/* ==========================================================================
   CSS VARIABLES & BASE STYLES
   ========================================================================== */

:root {
  --primary-color: #4CAF50;
  --secondary-color: #81D4FA;
  --text-dark: #E0E0E0;
  --text-light: #333;
  --bg-white: rgba(255, 255, 255, 0.05);
  --bg-light-grey: rgba(255, 255, 255, 0.08);
  --gradient-start: #81D4FA;
  --gradient-end: #00BCD4;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #16a34a;
  --primary-600: #15803d;
  --accent: #f59e0b;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


body {
  font-family: 'Inter', 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-image: url('./imgs/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1a1a1a;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-dark);
}

.container {
  width: 94%;           /* Uses 94% of screen width always */
  max-width: 1600px;    /* Optional cap so it doesn't look weird on 4k monitors */
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

header {
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.main-logo-graphic {
  background-image: url('./imgs/junipix_main_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 225px;
  height: 60px;
  border-radius: 0;
  background-color: transparent;
  margin-right: 10px;
}

.navbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 20px;
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #303030;
  font-size: 0.875em;
  padding: 6px 8px;
  display: flex;
}

.navbar a:hover {
  color: #05a520;
  font-weight: 600;
}

nav a.active {
  color: #e6f4e6;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--line);
}

.nav-links a.active {
  color: var(--primary);
  background: #e8f5e9;
  font-weight: 700;
}

.nav-cta {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .what-we-do,
.dropdown:hover .Resources {
  color: #05a520;
  font-weight: 600;
}

.what-we-do,
.Resources {
  cursor: pointer;
}

.mega-menu {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 15px;
  min-width: 250px;
  z-index: 100;
}

.dropdown:hover .mega-menu {
  display: grid;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-link:hover {
  background: #f1fff8;
  color: #635bff;
}

.menu-link:hover .icon svg path {
  fill: #05a520;
}

.icon {
  font-size: 18px;
  display: flex;
  justify-content: center;
}

.icon svg {
  fill: #3d3d3d;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
}

.btn-ghost:hover {
  background: #f0fdf4;
}

.btn-black {
  background: #111;
  color: #fff;
  border: none;
}

.btn-black:hover {
  background: #222c3a;
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 11px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-10deg, #fff5e6, #fff4eb 25%, #ecfaeb 50%, #f0fff3 75%, #fffdfa);
  overflow: hidden;
  padding-top: 32px;
}

.hero-new:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(Assets/noise.svg);
  opacity: .2;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  text-align: center;
  margin: 0 30px;
}

.hero-butterfly {
  position: absolute;
  right: 30px;
  mix-blend-mode: multiply;
  top: 120px;
  width: 300px;
  max-width: 40vw;
  z-index: 2;
  pointer-events: none;
}

.hero-sparkle {
  position: absolute;
  left: 0;
  mix-blend-mode: multiply;
  bottom: 100px;
  transform: scaleX(-1);
  width: 500px;
  max-width: 40vw;
  pointer-events: none;
  z-index: 2;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title-accent {
  background: linear-gradient(90deg, #16a34a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.8rem;
  color: rgb(156 163 175);
  margin-bottom: 32px;
}

.hero-actions {
  margin-top: 18px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-btn {
  background: #1ac057;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 14px 38px;
  box-shadow: 0 2px 16px rgba(22, 163, 74, 0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  background: #15803d;
  box-shadow: 0 4px 24px rgba(22, 163, 74, 0.18);
}

/* Hero Split Section */
.hero-split {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hero-split-inner {
  display: flex;
  width: 100vw;
  align-items: center;
  max-width: 100vw;
  min-height: 60vh;
}

.problem-section {
  flex-direction: column;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 60px 0;
}

.hero-split-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 380px;
}

.hero-split-right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  flex-direction: column;
  position: relative;
}

.hero-split-message-card {
  background: -webkit-linear-gradient(90deg, hsl(36.55deg 54.78% 99.73%) 0%, hsl(134deg 56.88% 94.89%) 100%);
  padding: 50px 40px;
  border-radius: 28px;
  color: #4d4d4d;
  width: 100%;
  max-width: 580px;
  font-size: 0.875em;
  min-height: 350px;
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  transition: box-shadow 0.3s, background 0.3s;
}

.hero-split-nav {
  top: 0;
  left: 0;
  z-index: 999;
  padding: 5px 15px;
  width: 100%;
  background: #d4f6d5;
  height: 50px;
  position: absolute;
}

.hero-split-nav-logo {
  height: 30px;
  top: 10px;
  position: absolute;
}

/* ==========================================================================
   GRIDS & LAYOUTS
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  font-size: 2.2rem;
  line-height: 2.2;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: .3px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 50ch;
}

/* ==========================================================================
   PLATFORM & FEATURES
   ========================================================================== */

.platform {
  padding: 30px 0 8px;
}

.platform-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.platform-title {
  font-size: 28px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
  color: #fafafa;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.platform-grid {
  display: grid !important;
  align-content: start;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 52px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.25s cubic-bezier(.4, 1, .4, 1), box-shadow 0.25s cubic-bezier(.4, 1, .4, 1);
}

.platform-item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.12), 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.platform-icon {
  width: 56px;
  height: 56px;
}

.platform-item-title {
  font-size: 20px;
  margin: 0;
}

.platform-item-desc {
  margin: 0;
  color: #a4a4a4;
  font-size: 14px;
  line-height: 1.7;
}

.platform-item-mobile-only {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(2, 6, 23, .12);
}

.feature .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fef9c3;
  border-radius: 10px;
  margin-bottom: 10px;
}

.feature h3 {
  margin: 4px 0 6px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */


#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 33.333%;
    min-width: 280px;
    height: 100vh;
    background-color: #0d1117; /* Solid color ensures no bleed-through */
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Explicitly allow clicks */
}

#mobile-menu.active {
    transform: translateX(0);
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto; /* This allows it to catch your clicks */
}

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for better contrast */
    backdrop-filter: blur(4px);
    z-index: 50; /* Very high */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   CARDS & TESTIMONIALS
   ========================================================================== */

.card {
  flex: 1 1 300px;
  background-color: rgba(68, 67, 67, 0.85);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s;
  color: var(--text-dark);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.glowing-card {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glowing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18, 44, 34, 0.18);
}

/* Testimonial Section */
.testimonial-section {
  min-height: 80vh;
}

.testimonial-carousel {
  margin: 30px 0 0;
}

.testimonial-track {
  display: grid;
  gap: 20px;
  padding: 18px 12px;
  align-items: start;
  justify-items: stretch;
}

.testimonial-card {
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 18px;
  position: relative;
  transition: opacity 0.5s, transform 0.5s, box-shadow 0.5s;
  opacity: 0.35;
  transform: scale(0.92);
  filter: blur(1px);
  z-index: 1;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1.04);
  filter: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 12px rgba(0, 128, 64, 0.10);
  z-index: 2;
}

.testimonial-logo {
  background: #f1f5f9;
  color: #222c3a;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 10px;
  padding: 7px 18px;
  display: inline-block;
  margin-bottom: 62px;
}

.testimonial-text {
  color: #222c3a;
  font-size: 1.18em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1 1 auto;
}

.testimonial-author {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

.testimonial-name {
  font-weight: 700;
  color: #d5d5d5;
  font-size: 1.05em;
}

.testimonial-role {
  color: #c1c1c1;
  font-size: 0.98em;
}

/* Image testimonial with feedback overlay */
.image-testimonial {
  position: relative;
  cursor: pointer;
  outline: none;
}

.image-testimonial img {
  display: block;
  border-radius: 8px;
  height: 100%;
}

.feedback-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 20%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(245, 237, 237, 0.3), rgba(245, 237, 237, 0.8), rgba(255, 255, 255, 0.8), rgb(247, 236, 223));
  color: #000000;
  padding: 14px 16px;
  border-radius: 8px;
  transform: translateY(0px);
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease, max-height 260ms cubic-bezier(.2, .9, .3, 1);
  pointer-events: none;
}

.feedback-overlay .feedback-text {
  margin: 0;
  color: #0b0b0b;
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 10px;
}

.image-testimonial.show-feedback .feedback-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 1200px;
}

.feedback-toggle {
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 44px;
  height: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7e6, #f7dca8);
  border: 1px solid rgba(24, 43, 24, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 10, 12, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, top 180ms ease;
}

.image-testimonial.show-feedback .feedback-toggle {
  top: -15px;
  transform: translate(-50%, 0);
}

.image-testimonial.show-feedback .feedback-toggle svg {
  transform: rotate(180deg);
}

/* Video testimonial */
.video-testimonial {
  position: relative;
}

.video-play-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(235, 150, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: transform 140ms ease, background 140ms ease, opacity 160ms ease;
  box-shadow: 0 8px 22px rgba(8, 10, 12, 0.45);
}

.video-play-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(249, 142, 10, 0.45);
}

.video-testimonial.playing .video-play-center {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */

.case-study-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.case-card {
  border-radius: 20px;
  color: #fff;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18, 44, 34, 0.18);
}

.case-card-media {
  overflow: hidden;
  width: 100%;
  padding: 10px;
  padding-bottom: 0;
  border-radius: 18px;
}

.case-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.case-card-content {
  padding: 1rem;
  margin-right: auto;
}

.case-card-title {
  font-size: 1.2rem;
  margin: 5px;
  color: #dadada;
  font-weight: 600;
}

.case-card-desc {
  font-size: 1rem;
  color: #5f5f5f;
}

.highlight-on-hover {
  transition: background 0.3s, color 0.3s;
}

.case-card:hover .highlight-on-hover {
  background: #e6f4e6;
  color: #181818;
  border-radius: 4px;
  padding: 2px 4px;
}

/* Case Study Modal */
.case-study-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 16, 0.72);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.case-study-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.case-study-modal-dialog {
  position: relative;
  width: min(1100px, 96vw);
  max-height: calc(100vh - 60px);
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.case-study-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.case-study-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.case-study-modal-slide {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(12, 38, 24, 0.25);
}

.case-study-modal-slide img {
  display: block;
  height: 100%;
}

.case-study-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.case-study-nav:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
}

.case-study-nav[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   SCROLL SECTION & STICKY ELEMENTS
   ========================================================================== */

.scroll-section {
  padding: 0;
}

.scroll-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
}

.scroll-left {
  display: flex;
  margin-left: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.scroll-item {
  border-radius: 0;
  padding: 18px;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.scroll-right {
  position: relative;
}

.sticky_sec {
  position: sticky;
  top: 0;
  height: 80vh;
}

.scroll-visuals {
  position: relative;
  min-height: 65vh;
}

.device {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  max-width: 400px;
  transform: scale(.98);
  display: none;
  transition: opacity .35s ease, transform .35s ease;
}

.scroll-visual.is-active {
  opacity: 1;
  transform: none;
  display: flex;
}

.scroll-visual img {
  width: 100%;
  object-fit: contain;
  display: block;
}

.scroll-media-inline {
  width: 100%;
  height: auto;
  border: 2px solid #193b37;
  border-radius: 12px;
  margin-top: 12px;
}

/* Scroll section anchor points */
#bonus-features {
  scroll-margin-top: 100px;
}

#Iris {
  scroll-margin-top: 130px;
}

#ai-studio {
  scroll-margin-top: 100px;
}

#ai-agents {
  scroll-margin-top: 100px;
}

#ai-analytics {
  scroll-margin-top: 100px;
}

/* Stack Cards Section */
.stack-section {
  padding-top: 70px;
}

.stack-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 400px;
  transform-origin: top center;
  transition: transform .25s ease, opacity .25s ease;
  will-change: transform, opacity;
  margin-bottom: 100px;
}

.stack-card:nth-child(1) { top: 100px; z-index: 2; }
.stack-card:nth-child(2) { top: 120px; z-index: 3; }
.stack-card:nth-child(3) { top: 140px; z-index: 4; }
.stack-card:nth-child(4) { top: 160px; z-index: 5; }
.stack-card:nth-child(5) { top: 180px; z-index: 6; }
.stack-card:nth-child(6) { top: 200px; z-index: 7; }
.stack-card:nth-child(7) { top: 220px; z-index: 8; }
.stack-card:nth-child(8) { top: 240px; z-index: 9; }

.stack-card h3 {
  margin: 0 0 8px;
}

.stack-card p {
  margin: 0;
  color: var(--muted);
}

/* Profile Card (Dark Theme) */
.stack-card.profile {
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.profile-media {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /*min-height: 300px;*/
}

.profile-photo-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.profile-photo {
  position: relative;
  z-index: 1;
  bottom: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  text-align: left;
}

.profile-name {
  color: #E5E7EB;
  font-size: 24px;
  margin: 0 0 8px 0;
}

.profile-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #9CA3AF;
}

.profile-quote {
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: #2C7A7B;
  margin-bottom: auto;
}

/* Glassmorphism Dashboard */
.glass-dashboard {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-dashboard.audit-theme {
  background: rgba(13, 17, 23, 0.6) !important;
  border: 1px solid rgba(44, 122, 123, 0.3) !important;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Dashboard UI Elements */
.db-header { height: 8px; width: 40%; background: rgba(0,0,0,0.1); border-radius: 4px; }
.db-bar { height: 6px; width: 100%; background: rgba(0,0,0,0.05); border-radius: 3px; position: relative; }
.db-progress { height: 100%; background: #4ade80; border-radius: 3px; }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 5px; }
.db-box { background: rgba(255,255,255,0.4); height: 40px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.5); }

.audit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #0f172a;
}

.audit-text {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.audit-scanner {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #2dd4bf, transparent);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 3s infinite linear;
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.sync-pulse {
  animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Map & Asset Points */
.map-bg {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  z-index: 0;
}

.asset-point {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.asset-point.warning {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px #fbbf24; }
  50% { box-shadow: 0 0 20px #fbbf24, 0 0 30px rgba(251, 191, 36, 0.5); }
  100% { box-shadow: 0 0 10px #fbbf24; }
}

/* ==========================================================================
   AGENTS & PROCESSES SECTION
   ========================================================================== */

.agents-by-processes {
  --process-item-height: 70px;
}

.agents-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.process-sidebar {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-item {
  height: var(--process-item-height);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff4d;
  padding: 14px;
  border-radius: 6px;
  color: #c4c2c2;
  position: relative;
}

.process-item:hover {
  background: #242a34;
}

.process-item.active {
  background: linear-gradient(90deg, rgb(17 135 144) 0%, rgb(165 200 68 / 66%) 100%);
  box-shadow: 0 3px 10px rgba(0, 200, 83, 0.10);
  transform: scale(1.05);
  border: 1px solid #b5e1b7;
  color: #fff;
}

.process-item .icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: #f7fff7;
  border-radius: 10px;
  color: #00C853;
}

.process-item .title {
  font-weight: 400;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.process-item.active .title {
  color: #fff;
  font-size: 15px;
}

.process-content {
  background: transparent;
  height: 100%;
}

.process-panel {
  background: #242a3480;
  border: 1px solid #e5e5e533;
  height: 100%;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.04);
}

.panel-heading {
  font-size: 18px;
  margin: 0 0 18px;
}

/* Tasks List */
.tasks-and-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.tasks-list {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  cursor: pointer;
  border: 1px solid #f2f2f24a;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  transition: background 220ms ease, transform 160ms ease;
}

.task-item:hover {
  background: rgba(249, 249, 249, 0.8);
  transform: translateY(-2px);
}

.task-item.task-active {
  background: linear-gradient(90deg, rgb(5 69 63) 0%, rgb(2 43 39) 100%) !important;
}

.task-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.task-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.task-icon {
  width: 20px;
  height: 20px;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-meta p {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.task-meta .task-desc {
  font-size: 13px;
  color: #c4c4c4;
  display: none;
}

.task-item.task-active .task-meta .task-desc {
  display: flex;
}

/* Progress Ring */
.progress-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.progress-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 3s linear;
}

.progress-active .progress-path {
  stroke-dashoffset: 0;
}

/* Preview Section */
.task-preview {
  background: linear-gradient(90deg, rgb(0 74 67) 0%, rgb(160 195 66 / 41%) 100%);
  border-radius: 12px;
}

.preview-card {
  border-radius: 14px;
  padding: 14px;
  position: relative;
  min-height: 260px;
}

.preview-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #fff5e6;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.with {
  background: linear-gradient(90deg, #4de771, #69b36b);
  box-shadow: 0 2px 6px rgba(46, 143, 68, 0.12);
}

.legend-swatch.without {
  background: linear-gradient(90deg, #ffa14a, #ffbc7c);
  box-shadow: 0 2px 6px rgba(255, 107, 95, 0.12);
}

.preview-metrics {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: flex-start;
  flex-direction: column;
}

.metric-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
  flex: 1;
  width: 100%;
}

.metric-title {
  font-size: 13px;
  color: #333;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.segmented-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.segmented-bar .segments {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, #f2f2f2 0 5px, transparent 5px 9px);
  opacity: 1;
}

.segmented-bar .bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 600ms cubic-bezier(.2, .9, .25, 1);
  overflow: hidden;
}

.primary-seg .bar-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, #ffa14a 0 5px, transparent 5px 9px);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 90, 168, 0.06);
}

.delta-seg .bar-fill.delta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, #40cd61 0 5px, transparent 5px 9px);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(57, 161, 74, 0.06);
}

.metric-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  min-width: 112px;
}

.metric-value.main {
  color: #ffa14a;
  font-weight: 700;
  font-size: 18px;
}

.metric-delta {
  color: #35ab50;
  font-weight: 700;
  font-size: 18px;
}

/* ==========================================================================
   CHAT INTERFACES & TABS
   ========================================================================== */

.solutions-chat-tabs {
  display: flex;
  gap: 18px;
  border-radius: 50px;
  padding: 5px;
  justify-content: center;
  width: 100%;
  background: #76b8e92e;
  border: 2px solid #104549;
}

.solutions-tab-btn {
  background: none;
  color: #97b0d4;
  border: none;
  padding: 5px 20px;
  font-size: 1em;
  font-weight: 500;
  border-radius: 50px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.solutions-tab-btn.active {
  background: #1a9f4b;
  color: #fff;
  font-weight: 500;
  z-index: 2;
}

.solutions-chat-window {
  height: 420px;
  overflow: hidden;
  position: relative;
  border-radius: 20px 20px 0 0;
  padding: 24px 18px 18px 18px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #e1f7e2, #f3fff6);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 16px 0px;
  width: 100%;
}

.solutions-chat-bg {
  width: 100%;
  margin-top: 20px;
  border-radius: 20px 20px 0 0;
  position: relative;
  padding: 17px;
}

.solutions-chat-bg::before,
.solutions-chat-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, #88a0c380 0%, #41649c6e 20%, transparent 40%);
  pointer-events: none;
}

#solutions-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solutions-chat-bubble {
  align-self: flex-end;
  background: #b9edbd;
  color: #222c3a;
  border-radius: 16px 16px 4px 16px;
  padding: 13px 18px;
  font-size: 0.874em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  max-width: 320px;
  opacity: 0;
  transform: translateY(20px);
  animation: chatBubbleIn 0.7s cubic-bezier(0.77, 0, 0.18, 2) forwards;
}

.solutions-chat-bubble.answer {
  align-self: flex-start;
  background: #ffffff;
  color: #282828;
  border-radius: 16px 16px 16px 4px;
  margin-top: 6px;
}

@keyframes chatBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-bubble {
  color: #888;
  background: #ffffff;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}

.chat-typing .dot {
  width: 6px;
  height: 6px;
  margin: 0 1px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.7;
  animation: chatTypingBlink 1.2s infinite both;
}

.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTypingBlink {
  0%, 80%, 100% { opacity: 0.7; }
  40% { opacity: 1; }
}

/* Hero Split Q&A */
.hero-split-qa {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  min-width: 100%;
  animation: heroSplitFadeSlide 1.2s cubic-bezier(0.77, 0, 0.18, 2);
}

@keyframes heroSplitFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-split-question {
  background: #ffebd0;
  color: #282828;
  font-size: 0.875em;
  border-radius: 1em 1em 0.3em 1em;
  padding: 1.1em 1.5em;
  margin-bottom: 0.2em;
  align-self: flex-end;
  max-width: 90%;
}

.hero-split-answer {
  background: #fff;
  color: #282828;
  font-size: 0.875em;
  border-radius: 1em 1em 1em 0.3em;
  padding: 1em 1.4em;
  align-self: flex-start;
  max-width: 90%;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
  margin: 40px auto;
  max-width: 900px;
}

.faq-card {
  background: #ffffff;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  padding: 32px;
}

.faq-item {
  background: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
}

.faq-item.open {
  background: none;
}

.faq-question {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a2a32;
  padding: 18px 0 0 0;
}

.faq-icon {
  font-size: 1.5rem;
  margin-right: 18px;
  color: #1a2a32;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  flex: 1;
  font-size: 18px;
}

.faq-answer {
  font-size: 1rem;
  color: #1a2a32;
  margin: 12px 0 0 36px;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-card hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 18px 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer,
.site-footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--text-dark);
  text-align: center;
  padding: 20px 5%;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.footer-bg {
  background: radial-gradient(ellipse at bottom, #053311 0%, #021507 100%);
  color: #fff;
  padding: 30px 20px 10px 20px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.footer-bg::after {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
  opacity: 0.4;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 48px 0 48px;
}

.footer-logo-col {
  flex: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-email-subscribe {
  align-items: flex-start;
  flex-direction: column;
  max-width: 300px;
  display: flex;
  gap: 12px;
}

.footer-email-input {
  background: #ffffff1a;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  font-size: 0.864em;
  width: 100%;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.footer-email-input::placeholder {
  color: #9ca3af;
}

.footer-email-button {
  background: linear-gradient(90deg, #ffb300, #ff7a18);
  color: white;
  display: block;
  border: none;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.18);
}

.footer-email-button:hover {
  transform: translateY(-1px);
}

.footer-info-col,
.footer-contact-col,
.footer-email-col {
  flex: 1;
  margin-top: 10px;
  color: #176a3a;
  font-size: 1.1rem;
}

.footer-info-col h3,
.footer-contact-col h3,
.footer-email-col h3 {
  color: #929292;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 26px;
}

.footer-info-col a,
.footer-contact-col a,
.footer-email-col a {
  margin: 0;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 10px;
  color: #efefef;
  text-decoration: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid #e2e8f01f;
  margin: 80px 0 0 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px 24px 48px;
  font-size: 0.875rem;
  color: #aaaaaa;
}

.footer-social {
  display: flex;
  gap: 6px;
}

.footer-social img {
  opacity: 0.8;
}

.footer-social img:hover {
  opacity: 1;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #176a3a;
  color: #fff;
  transition: box-shadow 0.2s;
}

.footer-social-icon:hover {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  background: #15803d;
}

section {
    scroll-margin-top: 80px; /* Adjust this to match the height of your header */
}

/* ==========================================================================
   BLOG & CAROUSEL
   ========================================================================== */

.blog-section {
  padding: 40px 0;
  text-align: center;
}

.blog-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.blog-subtitle {
  color: #6b7280;
  margin-bottom: 32px;
}

.blog-carousel-wrapper,
.demo-carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.demo-carousel-wrapper {
  flex-direction: column;
}

.carousel,
.demo-carousel {
  width: calc(100% - 100px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar,
.demo-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 24px;
  padding: 28px 24px 38px;
  scroll-snap-type: x mandatory;
}

.blog-card,
.demo-video-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.2s;
}

.blog-card:hover,
.demo-video-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.blog-card img,
.demo-video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-meta {
  padding: 18px 20px 16px 20px;
}

.blog-category {
  color: #16b636;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.blog-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0b0b0b;
  margin: 0 0 20px 0;
}

.blog-info {
  color: #6b7280;
  font-size: 0.95rem;
}

.carousel-btn {
  background: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 60;
  font-size: 20px;
  transition: all 0.2s ease;
}

.carousel-btn.prev {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn.next {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn:hover {
  background: #f0f0f0;
}

/* ==========================================================================
   LOGO MARQUEE & ANIMATIONS
   ========================================================================== */

.logo-marquee {
  width: 100%;
  overflow: hidden;
  display: block;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  position: relative;
}

.logo-track {
  display: flex;
  gap: 24px;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-item img {
  height: 70px;
  background: #faf5f0;
  display: block;
  padding: 0 30px;
  opacity: 0.95;
  border-radius: 12px;
  border: 1px solid rgb(24 43 24 / 6%);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */

.security-section {
  padding: 64px 0 28px 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

.security-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.security-feature-card {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 24px 32px 32px 32px;
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.25s cubic-bezier(.4, 1.4, .6, 1), box-shadow 0.25s cubic-bezier(.4, 1.4, .6, 1);
}

.security-feature-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(60, 60, 120, 0.12);
  z-index: 2;
}

.security-feature-label {
  background: linear-gradient(120deg, #00423c 0%, #386206 100%);
  color: #cecece;
  font-size: 1.05em;
  font-weight: 500;
  border-radius: 7px;
  padding: 6px 18px;
  margin-bottom: 8px;
  display: inline-block;
}

.security-feature-desc {
  color: #e9e9e9;
  font-size: 1.25em;
  line-height: 1.5;
  margin-bottom: 12px;
}

.security-feature-icon {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ==========================================================================
   SPARKLE BUTTON
   ========================================================================== */

.sparkles {
  --clr: 110;
  border: none;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 99vw;
  background: linear-gradient(0deg, hsla(var(--clr), 100%, 70%) 0%, hsla(var(--clr), 100%, 65%) 5%, hsla(var(--clr), 80%, 35%) 15%, hsl(110deg 80.69% 44.28%) 25%, hsl(106.34deg 95.29% 34.59%) 50%, hsl(110deg 100% 36.85%) 90%);
  background-size: 200% 300%;
  background-position: 0% 0%;
  box-shadow: inset 0 0 2px hsla(var(--clr), 20%, 10%);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  cursor: pointer;
  place-items: center;
  padding: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.sparkles:hover {
  background-position: 200% 50%;
}

.sparkles span {
  grid-column: 1;
  grid-row: 1;
  background-image: linear-gradient(hsl(calc(var(--clr) - 43), 27%, 85%) 0%, hsl(calc(var(--clr) - 60), 22%, 80%) 19%, hsl(calc(var(--clr) - 50), 20%, 75%) 30%, hsl(calc(var(--clr) - 52), 36%, 98%) 43%, hsl(var(--clr), 70%, 70%, 1) 51%, hsl(var(--clr), 50%, 85%, 1) 52%, rgb(255, 255, 255) 100%);
  background-size: 1em 3.45em;
  color: rgb(255, 255, 255);
  -webkit-background-clip: text;
  background-clip: text;
  padding: 0.45em 1em;
  z-index: 10;
}

.sparkles img {
  display: inline-block;
  transition: transform 600ms linear;
}

.sparkles:hover img {
  animation: spin-360 1.5s linear infinite;
}

@keyframes spin-360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 1;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.answer-bubble-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInBubble 0.5s cubic-bezier(.4, 1.4, .6, 1) forwards;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1360px) {
  .hero-butterfly {
    right: -30px !important;
    top: 40px !important;
    width: 240px !important;
  }
}

@media (max-width: 1024px) {
  .testimonial-carousel {
    max-width: 100% !important;
  }

  .case-study-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-butterfly {
    right: 0px;
    top: 80px;
    width: 140px;
  }

  .hero-sparkle {
    width: 220px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero h2 {
    font-size: 2rem !important;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    flex-direction: column;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 10px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .scroll-grid {
    grid-template-columns: 1fr;
  }

  .scroll-left {
    margin-left: unset;
  }

  .scroll-visuals {
    display: none;
  }

  .scroll-item {
    justify-content: flex-start;
    align-items: flex-start;
    min-height: unset;
  }

  .sticky_sec {
    position: relative;
    height: auto;
  }

  .platform-item-mobile-only {
    display: block !important;
  }

  .hidden-on-mobile {
    display: none !important;
  }

  .security-features-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-split-inner {
    flex-direction: column;
    margin: 40px 0;
  }

  .hero-split-inner .platform-head {
    width: 100% !important;
    text-align: center;
    margin: 0;
    align-items: center;
  }

  .hero-split-left,
  .hero-split-right {
    min-width: 0;
    width: 100%;
    padding: 5vw 0;
  }

  .hero-split {
    padding: 10px !important;
    margin: 0 !important;
  }

  .agents-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 0px;
  }

  .process-sidebar {
    width: 100%;
    padding: 8px 6px;
    box-shadow: none;
  }

  .process-list {
    display: flex;
    gap: 10px;
    padding: 12px 4px;
    width: 100%;
    flex-direction: row;
    overflow: auto;
  }

  .process-item {
    width: 100%;
    min-width: 125px;
    padding: 14px 8px 10px 12px;
    border-radius: 12px;
  }

  .process-item.active {
    transform: none;
  }

  .process-item.active::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-right: 12px solid transparent;
    border-left: 12px solid transparent;
    border-top: 9px solid #00C853;
  }

  .tasks-and-preview {
    grid-template-columns: 1fr;
  }

  .tasks-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .tasks-list .task-item {
    min-width: 220px;
    flex: 0 0 260px;
  }
}

@media (max-width: 900px) {
  .scroll-grid {
    min-height: unset;
  }

  .scroll-item {
    min-height: unset;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .scroll-visuals {
    display: none !important;
    margin: 50px 30px 0 30px;
  }

  .scroll-visual {
    position: relative;
    opacity: 1;
    transform: none;
  }

  .scroll-media-inline {
    display: block;
  }

  .sticky_sec {
    position: relative;
    height: auto;
  }

  .vertical-cards {
    flex-direction: column;
  }

  .problem-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 32px 20px 0 20px;
  }

  .footer-logo-col {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta {
    height: unset !important;
  }

  .platform-head {
    margin: 0 !important; /* This removes the 80px right margin that pushes content off-center */
    width: 100% !important;
    text-align: center;
  }

  .stack-wrapper {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: auto !important;
    min-height: 450px;
    position: relative !important;
    justify-content: flex-start !important; /* Start cards from left */
    align-items: stretch !important;
    padding: 20px !important;
    gap: 20px !important;
    -webkit-overflow-scrolling: touch;
  }

  .stack-card {
    /* These !important tags override the desktop ones */
    position: relative !important; 
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    flex: 0 0 280px !important; /* Fixed width for the card on mobile */
    width: 280px !important;
    margin: 0 !important;
    display: block !important;
  }

}

@media (max-width: 720px) {
  .testimonial-card {
    padding: 6px;
  }

  .case-study-cards {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-photo-wrap {
        max-width: 320px !important; /* Give it more room to breathe */
        height: 220px !important;    /* Ensure the height doesn't collapse */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        overflow: visible !important; /* Crucial so the scale doesn't clip */
    }

  .profile-card {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .profile-name {
    font-size: 16px;
    color: #E5E7EB !important;
  }

  .profile-title {
    font-size: 12px;
    color: #9CA3AF !important;
  }

  .profile-quote {
    color: #2C7A7B !important;
  }

  .stack-wrapper {
    height: 520px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .stack-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    width: 85% !important;
    max-width: 340px;
    background: #0D1117 !important;
    border: 1px solid rgba(130, 195, 69, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }

  .blog-carousel .blog-card {
    width: 300px;
  }

  .platform-title {
    font-size: 24px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 24px !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .hero h2 {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .impact-heading {
    font-size: 28px;
  }

  .blog-carousel .blog-card {
    width: 230px !important;
  }

  .carousel-track {
    padding: 28px 10px 38px !important;
  }

  .carousel {
    width: 98% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-col,
  .sv-card {
    transition: none;
  }

  .sparkles:hover img {
    animation: none !important;
  }
}

@media (max-width: 991px) {
  .ver-content {
    width: 100% !important;
  }

  .ver-image {
    width: 100% !important;
  }

  .stack-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    height: auto !important;
    padding: 10px 0 20px 20px !important;
    /* This ensures cards stay visible and accessible */
    scroll-padding-left: 20px;
  }

.stack-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 320px !important; /* Fixed width for better control */
    height: 480px !important;    /* Fixed height so it doesn't fill the screen */
    margin-right: 20px !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    background: #0D1117 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 25px 5px 25px 5px;
  }


  .profile-card {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 10px !important; /* Pulls graphic to the top edge */
    padding-bottom: 15px !important;
    gap: 0 !important; /* Removes any flexbox gap */
  }

  /* 3. The Graphic - Force the "Wide" Desktop Aspect Ratio */
  .profile-media {
    width: 100% !important;
    /*height: 120px !important; */
    margin-top: 0 !important;      /* Ensure no top margin */
    margin-bottom: 8px !important;  /* REDUCED: Minimal gap between image and text */
    flex-shrink: 0 !important;
    border-radius: 12px 12px 0 0;  /* Round only the top corners to match card */
  }

  .profile-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 15%; /* Keeps the most important part of the graphic visible */
  }

  /* Make text fill the remaining space */
  .profile-info {
    padding:25px 0px 16px 0px!important;    /* Side padding only */
    margin-top: 0 !important;      /* Force it up against the graphic */
  }

  .profile-info h3 {
    font-size: 1.15rem !important; /* Slightly smaller title */
    margin-bottom: 4px !important;
  }

  .profile-info h3.profile-quote {
    margin-top: 0 !important;      /* Remove top margin from the first line of text */
    padding-top: 0 !important;
    line-height: 1.2 !important;
  }

  .profile-description {
    font-size: 0.85rem !important; /* Tighter text to fit more info */
    line-height: 1.4 !important;
    margin: 0 !important;
    /* Use line-clamp to cleanly cut off text if it's way too long, 
       preventing a scrollbar from ever appearing */
    display: -webkit-box;
    -webkit-line-clamp: 8; 
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .stack-card:first-child .profile-media,
  .stack-card .profile-media {
     height: 120px !important;
     flex-basis: 120px !important;
  }

  /* Ensure the main container doesn't force a side-by-side layout */
  .process-section-container {
    flex-direction: column !important;
    padding: 0 10px !important;
  }

  /* Make the sidebar full width and remove fixed width constraints */
.process-sidebar {
    width: 100% !important;
    max-width: 100vw !important; /* Prevents it from pushing screen width */
    flex: none !important;
    overflow-x: auto !important; /* Allows swiping through categories */
    overflow-y: hidden;
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust the inner buttons or links to be more mobile-friendly */
  .process-sidebar .process-btn {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  .process-list {
    display: none !important;
    flex-direction: row !important;
    white-space: nowrap !important; /* Keeps items on one line */
    gap: 12px !important;
    padding-bottom: 5px;
  }

  .process-item {
    flex: 0 0 auto !important; /* Prevents items from shrinking */
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
  }

  .process-item.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
  }

  /* 5. Ensure the content panel underneath is full width */
  .process-content {
    width: 100% !important;
    margin-top: 0 !important;
  }

  .process-sidebar::-webkit-scrollbar {
    display: none;
  }

  .agents-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 10px !important;
    gap: 20px !important;
  }

  .profile-photo-wrap {
        max-width: 320px !important; /* Give it more room to breathe */
        height: 220px !important;    /* Ensure the height doesn't collapse */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        overflow: visible !important; /* Crucial so the scale doesn't clip */
    }

    /* 2. Scale the 'glass-dashboard' based on the container width */
    .glass-dashboard.audit-theme {
        width: 320px !important;      /* Fixed width before scaling */
        transform: scale(0.8);        /* Shrinks the whole element to 80% size */
        transform-origin: center;     /* Scales from the middle */
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* 3. Ensure the risk bars container doesn't overflow */
.risk-bar-container {
        display: flex !important;
        align-items: flex-end !important; /* Anchors bars to the bottom */
        justify-content: space-between !important;
        height: 80px !important;  /* <--- THIS IS THE KEY */
        min-height: 80px !important; 
        margin: 15px 10px !important;
        padding-bottom: 5px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Force stacking for #stack-cards on small screens, without changing desktop */
@media (max-width: 720px) {
  #stack-cards .stack-wrapper {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    gap: 24px !important;
  }
  #stack-cards .stack-card {
    position: sticky !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 100px 0 !important;
    flex: none !important;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  }
  #stack-cards .stack-card:nth-child(1) { top: 100px !important; z-index: 2 !important; }
  #stack-cards .stack-card:nth-child(2) { top: 120px !important; z-index: 3 !important; }
  #stack-cards .stack-card:nth-child(3) { top: 140px !important; z-index: 4 !important; }
  #stack-cards .stack-card:nth-child(4) { top: 160px !important; z-index: 5 !important; }
  #stack-cards .stack-card:nth-child(5) { top: 180px !important; z-index: 6 !important; }
  #stack-cards .stack-card:nth-child(6) { top: 200px !important; z-index: 7 !important; }
  #stack-cards .stack-card:nth-child(7) { top: 220px !important; z-index: 8 !important; }
  #stack-cards .stack-card:nth-child(8) { top: 240px !important; z-index: 9 !important; }
}

.risk-bar-container {
 height: 60px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  height: 80px !important; /* Fixed height for the graph area */
  padding: 0 10px !important;
  gap: 4px !important;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}


/* Individual Bar Styles */
.risk-bar {
  flex: 1;
  background-color: #2dd4bf !important; /* Tailwind teal-400 */
  border-radius: 2px 2px 0 0;
  min-width: 4px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom;
}

/* The Alert Spike */
.risk-bar.spike {
  background-color: #fbbf24 !important; /* Tailwind amber-400 */
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* ANIMATION TRIGGER: Only animate when the parent card is active */
.stack-card.active .risk-bar {
  animation: barGrow 1.5s ease-out forwards;
}

.stack-card.active .risk-bar.spike {
  animation: barGrow 1s ease-out forwards, spikePulse 2s infinite 1s;
}

@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes spikePulse {
  0%, 100% { filter: brightness(1); transform: scaleY(1); }
  50% { filter: brightness(1.4); transform: scaleY(1.05); }
}

/* Financial Sparkline - Ensure this is in styles.css */
.trend-line {
    fill: none;
    stroke: #2dd4bf; 
    stroke-width: 2.5; /* Slightly thicker for better visibility */
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-line 5s ease-in-out infinite; /* Slower, smoother draw */
}

@keyframes draw-line {
    0% { stroke-dashoffset: 600; }
    40% { stroke-dashoffset: 0; }
    90% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; } /* Subtle fade before restart */
}

.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}