@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* 
  Proptiqa Main Stylesheet
  ===========================================
  Author: AI
  ===========================================
*/

:root {
  /* Colors */
  --bg-dark: #0f172a;
  /* Navy dark for hero/footer */
  --bg-darker: #020617;
  --bg-white: #ffffff;
  --bg-light-gray: #f8fafc;

  --primary: #3b82f6;
  /* Blue */
  --primary-hover: #2563eb;
  --secondary: #6366f1;
  /* Indigo */

  --text-dark: #f8fafc;
  /* Light text on dark bg */
  --text-light: #1e293b;
  /* Dark text on light bg */
  --text-muted: #64748b;
  --text-muted-dark: #94a3b8;

  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --glow-primary: 0 0 30px rgba(59, 130, 246, 0.4);

  /* Typography */
  --font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
  --brand-gradient: linear-gradient(90deg, #60a5fa, #8b5cf6);
}

.hand-underlined {
  position: relative;
  display: inline-block;
}

.hand-underlined::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='8' viewBox='0 0 100 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5.5C30 3.5 70 3.5 98 5.5' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.problem-section {
  padding-top: 40px !important;
}

.pt-4 {
  padding-top: 4rem;
}

.pb-4 {
  padding-bottom: 4rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.bg-white {
  background-color: var(--bg-white);
  color: var(--text-light);
}

.bg-light-gray {
  background-color: var(--bg-light-gray);
  color: var(--text-light);
}

.dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

/* Subtitles & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.section-subtitle.subtitle-red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  -webkit-text-fill-color: #ef4444;
}

.section-subtitle.subtitle-green {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  -webkit-text-fill-color: #10b981;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.light-desc {
  color: var(--text-muted-dark);
}

.highlight-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Problem Section Refinements (Image 2 Parity) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1080px;
    margin: 4rem auto 0;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: #1e293b;
}

.icon-red { background: #fee2e2; color: #ef4444; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-blue { background: #dbeafe; color: #3b82f6; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

.comparison-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    box-shadow: none !important;
}

.card-red { background: #fff5f5 !important; }
.card-blue { background: #eff6ff !important; }

.comparison-card .comp-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-red .comp-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.card-blue .comp-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.card-red span { color: #4b5563; font-size: 0.95rem; }
.card-blue span { color: #1e3a8a; font-weight: 500; font-size: 0.95rem; }

/* Timeline Steps Styles */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  padding-top: 2rem;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6, #10b981);
  opacity: 0.2;
  z-index: 1;
}

.step-card-v2 {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-number-badge {
  position: absolute;
  top: -8px;
  right: 18%;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.step-icon-box-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card-v2:hover .step-icon-box-large {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.step-card-v2 h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.step-card-v2 p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: #e2e8f0;
  color: var(--primary);
}

/* Specific icon gradients */
.bg-step-1 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-step-2 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.bg-step-3 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.bg-step-4 { background: linear-gradient(135deg, #10b981, #34d399); }


/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.875rem;
}

.btn-link:hover {
  color: var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.glow-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.2);
}

.outline-badge {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  background: rgba(10, 25, 47, 0.95);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .nav-list {
  display: flex;
  gap: 2rem;
}

.site-header .nav-list a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.875rem;
}

.site-header .nav-list a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
/* Hero Spinner Layer */
.hero-spinner-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
}

@keyframes spin-slow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



/* Typing Effect */
.typing-wrapper {
  display: inline-flex;
  align-items: center;
}

.dynamic-text {
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  min-width: 1ch;
}

.typing-cursor {
  display: inline-block;
  color: #60a5fa;
  margin-left: 4px;
  font-weight: 300;
  animation: blink 1s step-end infinite;
  -webkit-text-fill-color: #60a5fa;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-section {
  padding-top: 10rem;
  padding-bottom: 12rem;
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
  position: relative;
  background-color: #0b1727;
  overflow: hidden; /* Ensure big rotating spinner doesn't leak */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Exactly replicates the tech dot-grid from Figma */
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.radial-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.glow-left {
  top: -200px;
  left: -200px;
  background: rgba(59, 130, 246, 0.4);
}

.glow-right {
  bottom: -100px;
  right: -200px;
  background: rgba(139, 92, 246, 0.4);
  animation-delay: -4s;
}

.glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(59, 130, 246, 0.2);
  width: 800px;
  height: 800px;
  animation: pulse-glow 12s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 4.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted-dark);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 5rem;
}

/* Hero Mockup Image */
.hero-image-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1000px;
  margin-bottom: -5rem;
  /* Pulls next section up */
}

.mockup-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.webapp-mockup {
  width: 100%;
  max-width: 1050px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  /* border removed to eliminate white thread effect */
}

.mobileapp-mockup {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 250px;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  z-index: 20;
  animation: float-left-right 4s ease-in-out infinite alternate;
  border: 4px solid #1e293b;
}

@keyframes float-left-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(15px); }
}

@media (max-width: 1024px) {
  .mobileapp-mockup {
    right: 0;
    width: 200px;
  }
}

@media (max-width: 768px) {
  .mockup-container {
    flex-direction: column;
  }
  .mobileapp-mockup {
    position: relative;
    margin-top: -60px;
    right: auto;
    bottom: auto;
    margin-left: auto;
  }
}

.glow-bg-strong {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.3;
  z-index: 0;
}

.glass-board {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.mockup-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  background: #334155;
}

.mockup-dots span:nth-child(1) {
  background: #ef4444;
}

.mockup-dots span:nth-child(2) {
  background: #f59e0b;
}

.mockup-dots span:nth-child(3) {
  background: #10b981;
}

.mockup-search {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #64748b;
  flex-grow: 1;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 500px;
}

.mockup-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}

.m-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  margin-bottom: 2rem;
}

.m-menu-item {
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

.m-menu-item.active {
  background: rgba(59, 130, 246, 0.2);
}

.mockup-main {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.1);
}

.m-title {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.s-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.s-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.s-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  height: 250px;
}

.c-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}

.c-bar {
  width: 12%;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  border-radius: 4px 4px 0 0;
}

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

.pie {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0% 60%, #8b5cf6 60% 85%, #f59e0b 85% 100%);
}

/* Results Section Refinements (Image 3 Parity) */
.results-section {
    background-color: #f8fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.stat-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 32px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* Stronger premium shadow */
    border-color: rgba(0,0,0,0.05);
}

.stat-icon-square {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.stat-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.stat-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Color variations for metrics */
.yellow-metric .stat-icon-square { background: #f59e0b; box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); }
.yellow-metric h3 { color: #f59e0b; }

.green-metric .stat-icon-square { background: #10b981; box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
.green-metric h3 { color: #10b981; }

.blue-metric .stat-icon-square { background: #3b82f6; box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }
.blue-metric h3 { color: #3b82f6; }

.purple-metric .stat-icon-square { background: #8b5cf6; box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }
.purple-metric h3 { color: #8b5cf6; }

.pink-metric .stat-icon-square { background: #ec4899; box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4); }
.pink-metric h3 { color: #ec4899; }

.teal-metric .stat-icon-square { background: #14b8a6; box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
.teal-metric h3 { color: #14b8a6; }

.metrics-row-banner {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
}

.metric {
    text-align: center;
}

.metric strong {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.metric span {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* Capabilities Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.glass-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blue-card .feature-icon-box { background: #3b82f6; }
.cyan-card .feature-icon-box { background: #06b6d4; }
.purple-card .feature-icon-box { background: #8b5cf6; }
.teal-card .feature-icon-box { background: #14b8a6; }
.indigo-card .feature-icon-box { background: #6366f1; }
.orange-card .feature-icon-box { background: #f59e0b; }
.green-card .feature-icon-box { background: #10b981; }
.pink-card .feature-icon-box { background: #ec4899; }
.amber-card .feature-icon-box { background: #f59e0b; }
.red-card .feature-icon-box { background: #ef4444; }

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) translateY(-2px);
}

/* Color-specific hover tints */
.blue-card:hover { background-color: #EFF6FF !important; border-color: #DBEAFE; }
.blue-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

.green-card:hover { background-color: #ECFDF5 !important; border-color: #D1FAE5; }
.green-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }

.purple-card:hover { background-color: #F5F3FF !important; border-color: #EDE9FE; }
.purple-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }

.orange-card:hover { background-color: #FFF7ED !important; border-color: #FFEDD5; }
.orange-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }

.pink-card:hover { background-color: #FDF2F8 !important; border-color: #FCE7F3; }
.pink-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(236, 72, 153, 0.2); }

.cyan-card:hover { background-color: #ECFEFF !important; border-color: #CFFAFE; }
.cyan-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }

.red-card:hover { background-color: #FEF2F2 !important; border-color: #FEE2E2; }
.red-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }

.indigo-card:hover { background-color: #EEF2FF !important; border-color: #E0E7FF; }
.indigo-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }

.teal-card:hover { background-color: #F0FDFA !important; border-color: #CCFBF1; }
.teal-card:hover .feature-icon-box { box-shadow: 0 0 15px rgba(20, 184, 166, 0.2); }

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps Section */
.steps-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
}

.steps-flow::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
  border-style: dashed;
}

.step-card {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.step-icon-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e0e7ff;
  box-shadow: 0 0 0 8px #fff;
}

.bg-blue-100 {
  background: #dbeafe;
}

.bg-green-100 {
  background: #d1fae5;
}

.step-icon-round svg {
  width: 32px;
  height: 32px;
}

.step-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Demo Section */
.action-section {
  padding: 8rem 0;
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  margin-top: 4rem;
}

.tabs-ui {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 999px;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.demo-image-wrapper {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
}

.glow-bg-demo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #0ea5e9;
  filter: blur(120px);
  opacity: 0.2;
}

.interactive-mockup {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.bars-chart-container {
  flex: 1;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
}

.bars-chart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar {
  width: 80%;
  border-radius: 4px 4px 0 0;
}

.bg-blue {
  background: #3b82f6;
}

.bg-gray {
  background: rgba(255, 255, 255, 0.1);
}

/* CTA Section Placement (Ready to implement in PHP) */
.pre-footer-cta {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-subtitle {
  color: #94a3b8;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
  font-size: 1.1rem;
}

.guarantee-text {
  margin-top: 1rem;
  color: #64748b;
}

/* Footer */
.site-footer {
  background-color: var(--bg-darker);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.brand-col .logo-text {
  margin-bottom: 1rem;
}

.brand-col p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}

.social-links a:hover {
  background: var(--primary);
}

/* Footer Section Refinement (Image 2 Parity) */
.site-footer {
    background: #020617;
    color: #fff;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.brand-col .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-col p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.footer-contact {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-item svg {
    color: #3b82f6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #3b82f6;
}

/* Subscribe Strip */
.footer-subscribe-strip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.subscribe-text h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #fff;
}

.subscribe-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.subscribe-form {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    width: 100%;
    max-width: 450px;
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    outline: none;
}

.subscribe-form .btn-subscribe {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-form .btn-subscribe:hover {
    background: #2563eb;
}

/* Footer Bottom */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    border-top: none;
    padding-top: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
}

.powered-by strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials (Image 4) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.testimonial-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stars {
  color: #fbbf24;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.test-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-details strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
}

.author-details span {
  font-size: 0.85rem;
  color: #64748b;
}

/* Product Preview Section (Image 1 Parity) */
.product-preview-section {
    background: #020617; /* High-depth dark navy */
    position: relative;
    overflow: hidden;
    padding: 140px 0;
}

.product-preview-section h2 {
    color: #ffffff;
}

.product-preview-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 1200px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.preview-window-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.browser-window-glow {
    display: none;
}

.browser-frame {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 60px 10px rgba(59, 130, 246, 0.5), 0 0 120px rgba(59, 130, 246, 0.3);
    position: relative;
}

.browser-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.1);
    pointer-events: none;
}

.browser-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-address {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 6px 60px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    margin-left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-content {
    background: #0f172a;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.tab-content {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
}

.tab-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.preview-text-container {
    padding: 40px 20px 0;
    text-align: center;
}

.preview-text-container h3 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-text-container p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nav-dots {
    display: flex;
    gap: 12px;
}

.nav-dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-dot.active {
    background: #3b82f6;
    width: 48px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Responsive Options */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .comparison-grid,
  .features-grid,
  .stats-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .brand-col {
    grid-column: 1 / -1;
  }
}

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

  .site-header .nav-list,
  .header-actions .btn-link,
  .header-actions .btn-primary {
    display: none;
  }

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

  .comparison-grid,
  .features-grid,
  .stats-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    flex-direction: column;
    gap: 2rem;
  }

  .steps-flow::before {
    display: none;
  }

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

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

  .mockup-sidebar {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pricing Page Styles
   ========================================================================== */
.pricing-page-wrapper {
    background-color: #f8fafc;
    padding-bottom: 60px;
}

/* White Header Override for Pricing Page */
.page-template-page-pricing .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}
.page-template-page-pricing .site-header.scrolled .nav-list a,
.page-template-page-pricing .site-header.scrolled .logo-text,
.page-template-page-pricing .site-header.scrolled .btn-link,
.page-template-page-pricing .site-header.scrolled .mobile-menu-toggle {
    color: #0f172a;
}
.page-template-page-pricing .site-header.scrolled .nav-list a:hover,
.page-template-page-pricing .site-header.scrolled .btn-link:hover {
    color: #3b82f6;
}

/* Hero Section */
.pricing-hero {
    position: relative;
    background: linear-gradient(135deg, #02203c 0%, #0f172a 100%);
    color: #fff;
    padding: 100px 20px 140px; /* Added breathing space */
    text-align: center;
    overflow: hidden;
}

.pricing-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.currency-symbol {
    position: absolute;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.symbol-rupee { top: 10%; left: 5%; transform: rotate(-15deg); }
.symbol-dirham { top: 40%; right: 5%; transform: rotate(10deg); }
.symbol-dollar { bottom: 10%; left: 15%; transform: rotate(25deg); font-size: 10rem; }
.symbol-qatar { top: 15%; right: 20%; transform: rotate(-5deg); }

.pricing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px; /* Increased breathing space */
    line-height: 1.2;
}

.pricing-title .highlight-text {
    color: #cbd5e1;
}

.pricing-trust-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pricing-trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.pricing-trust-list svg {
    color: #3b82f6; /* Blue checkmark */
}

/* Controls */
.pricing-controls-section {
    position: relative;
    z-index: 50; /* Higher z-index for dropdown */
    margin-top: -65px; /* Better alignment to avoid overcrowding cards */
    margin-bottom: 60px;
}

.pricing-controls-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* Toggle Switch */
.billing-toggle-wrapper {
    background: #fff;
    padding: 8px 24px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: visible; /* Prevent save badge cutoff */
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #0f172a;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3b82f6; /* Blue active switch */
    transition: .4s;
    border-radius: 34px;
}

.billing-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .billing-slider {
    background-color: #3b82f6;
}

input:checked + .billing-slider:before {
    transform: translateX(28px);
}

.save-badge {
    position: absolute;
    left: 100%;
    margin-left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
    pointer-events: none;
    animation: saveBadgeFloat 3s ease-in-out infinite alternate;
}

@keyframes saveBadgeFloat {
    0% { transform: translateY(-50%) rotate(-8deg); }
    100% { transform: translateY(-60%) rotate(-12deg); }
}

/* Custom Dropdown Styles (Dark Theme) */
.custom-country-dropdown {
    position: relative;
    width: 200px;
}

.custom-country-dropdown .dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-weight: 600;
    color: #0f172a;
}

.custom-country-dropdown .dropdown-selected:hover {
    background: #f8fafc;
}

.flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    color: #64748b;
}

.custom-country-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 440px; /* Two column robust width */
    max-width: 90vw;
    background: #232323;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid #3f3f3f;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(9, auto);
    grid-auto-flow: column; /* Force top-to-bottom filling */
}

.custom-country-dropdown.open .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-list li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e5e5e5;
    transition: background 0.2s;
}

.dropdown-list li[data-value="Global"] {
    grid-column: 1 / -1;
    border-bottom: 1px solid #3f3f3f;
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.dropdown-list li:hover {
    background: #3a3a3a;
}

/* Pricing Grid */
.pricing-cards-section .container {
    max-width: 1320px !important;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    margin-bottom: 24px;
    align-items: stretch;
}

.pricing-card.featured-plan {
    border: 2px solid #3b82f6;
    position: relative;
    transform: scale(1.02);
    z-index: 20;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.main-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 30;
}

.plan-limits {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-limits span {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.05em;
}

.plan-limits strong {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 800;
}

.limit-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.ai-feature-highlight {
    background: rgba(59, 130, 246, 0.05);
    padding: 10px 12px 10px 32px; /* Adjusted to align with standard li */
    border-radius: 6px;
    color: #3b82f6 !important;
    font-weight: 700 !important;
    border-left: 3px solid #3b82f6;
    margin: 6px 0;
    display: block; /* Ensure full width highlight */
}

/* Fix checkmark position for highlighted items */
.ai-feature-highlight::before {
    left: 8px !important;
    top: 10px !important;
}

.yearly-hint {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* Dropdown Submenu Styles (Dark Mode) */
.dropdown-menu-wrapper {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 8px;
    overflow: visible; /* Allow submenus to fly out without clipping */
}

.custom-country-dropdown.open .dropdown-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scrollbar styling for dark-mode dropdowns */
.dropdown-menu-wrapper::-webkit-scrollbar,
.submenu-list::-webkit-scrollbar,
.level3-list::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu-wrapper::-webkit-scrollbar-track,
.submenu-list::-webkit-scrollbar-track,
.level3-list::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu-wrapper::-webkit-scrollbar-thumb,
.submenu-list::-webkit-scrollbar-thumb,
.level3-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}
.dropdown-menu-wrapper::-webkit-scrollbar-thumb:hover,
.submenu-list::-webkit-scrollbar-thumb:hover,
.level3-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.dropdown-main-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-main-list li {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    position: relative;
}

.dropdown-main-list li:hover {
    background: #2d2d2d;
    color: #3b82f6;
}

.dropdown-main-list li.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.submenu-arrow {
    margin-left: auto;
    color: #94a3b8;
}

/* Nested Submenu (3-Tier Dark Mode) */
.dropdown-main-list .level-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-main-list .submenu-list,
.dropdown-main-list .level3-list {
    position: absolute;
    left: 100%;
    top: -8px;
    width: 250px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid #333;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    list-style: none;
    padding: 8px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
}

/* Countries Grid (Level 3) */
.dropdown-main-list .level3-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 480px;
    gap: 4px;
    padding: 12px;
    background: #202020; /* Slightly darker than level 2 */
    z-index: 1002;
    top: -12px;
    overflow: visible;
}

.has-submenu:hover > .submenu-list,
.has-level3:hover > .level3-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(2px);
}

.submenu-list li, .level3-list li {
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-list li:hover, .level3-list li:hover {
    background: #2d2d2d;
    color: #3b82f6;
}

/* Custom Multilevel Overrides */
.dropdown-main-list li.region-option {
    padding: 12px 16px;
}
.dropdown-main-list li.region-option:hover {
    background: #2d2d2d;
}
.dropdown-main-list .subregion-item {
    padding: 10px 14px;
    border-radius: 6px;
}

/* Add-on Repository Section Styles */
.addon-repository-section {
    padding: 100px 0;
    background-color: #fff;
    border-top: 1px solid #f1f5f9;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-subtitle-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 48px;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Region-specific Text Toggles */
.india-only { display: inline; }
.global-only { display: none; }
.global-pricing-active .india-only { display: none; }
.global-pricing-active .global-only { display: inline; }

.addon-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible !important; /* Force visible to allow tooltip */
    transition: all 0.3s ease;
    text-align: center;
    position: relative; 
}

.addon-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-4px);
    border-color: #3b82f6;
    z-index: 50; /* Ensure hovered card and its tooltip are on top */
}

.addon-card-header {
    padding: 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
    border-top-left-radius: 11px; /* Match parent minus border */
    border-top-right-radius: 11px; /* Match parent minus border */
}

.addon-card-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
    margin: 0;
}

.addon-card-body {
    padding: 32px 16px;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

.addon-price {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    position: relative;
}

.info-icon {
    cursor: help;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.2s;
}

.info-icon:hover {
    color: #3b82f6;
}

.info-tooltip {
    visibility: hidden;
    width: 320px; /* Wider for 'horizontal' look */
    background-color: #1e293b;
    color: #fff;
    text-align: center; /* Center text for better horizontal balance */
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 10000; /* Extremely high priority */
    bottom: 160%; /* Position higher to ensure it's above everything */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    pointer-events: none;
    text-transform: none; 
    letter-spacing: normal;
}

.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.info-icon:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.addon-price .currency-prefix {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b82f6;
}

.addon-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.addon-freq {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    /* overflow: hidden; */ /* Removed to prevent badge clipping */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill space */
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

.card-enterprise {
    border: 2px solid #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.card-header {
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.card-enterprise .card-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.price-strike {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 4px;
    min-height: 24px;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-display .currency-prefix {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-right: 4px;
}

.price-display .price-val {
    font-size: 2.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    transition: opacity 0.3s ease;
}

/* Number animation class */
.price-val.animating {
    opacity: 0;
    transform: scale(0.95);
}

/* Global Pricing Font Adjustments */
.global-pricing-active .price-display {
    gap: 4px;
    align-items: center;
}

.global-pricing-active .price-display .currency-prefix {
    font-size: 1.4rem;
    margin-right: 0;
    align-self: center;
}

.global-pricing-active .price-display .price-val {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Specific adjustment for Enterprise with long numbers */
.global-pricing-active .card-enterprise .price-val {
    font-size: 1.65rem;
}

.billing-freq {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.4;
    min-height: 40px;
}

.plan-desc {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0;
    line-height: 1.5;
    min-height: 48px;
}

.card-action {
    padding: 30px;
    margin-top: auto; /* Pushes button to bottom */
    background: #fafafa;
    border-bottom-left-radius: 16px; /* Match card radius */
    border-bottom-right-radius: 16px; /* Match card radius */
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: #3b82f6; /* Blue Button */
    border-color: #3b82f6;
    color: #fff;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pricing-btn-outline {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-btn-outline:hover {
    background-color: #3b82f6;
    color: #fff;
}

.card-features {
    padding: 40px 30px 10px;
    background: #fafafa;
    flex: 1; /* Stretch middle to push buttons down evenly */
}

.features-title {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6; /* Blue checkmarks */
    font-weight: bold;
    font-size: 1.1rem;
}

.badge-new {
    background: #3b82f6; /* Blue badge */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.pricing-disclaimer {
    text-align: right;
    font-size: 0.85rem;
    font-style: italic;
    color: #94a3b8;
}

/* Demo CTA Banner */
.pricing-demo-banner {
    margin-top: 60px;
    padding: 0 20px;
}

.pricing-demo-banner .banner-inner {
    background: #02203c;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6; /* Blue icon */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-content {
    flex: 1;
}

.banner-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0;
    max-width: 600px;
}

.banner-action .demo-trigger-btn {
    background-color: #3b82f6; /* Blue Button */
    border-color: #3b82f6;
    white-space: nowrap;
    padding: 14px 32px;
}

.banner-action .demo-trigger-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 1024px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.featured-plan {
        transform: none;
        margin-top: 20px;
    }
    .pricing-demo-banner .banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .banner-content p {
        margin: 0 auto;
    }
    .custom-country-dropdown {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .grid-4-cols, .addon-grid {
        grid-template-columns: 1fr !important;
    }
    .pricing-title {
        font-size: 2.25rem;
    }
    .pricing-controls-layout {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .custom-country-dropdown {
        width: 100%;
        max-width: 300px;
    }
    .dropdown-menu-wrapper {
        width: 100%;
        position: relative;
        box-shadow: none;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    .custom-country-dropdown.open .dropdown-menu-wrapper {
        display: block;
    }
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-left: 2px solid #e2e8f0;
        margin-left: 12px;
        margin-top: 8px;
        display: none;
    }
    .has-submenu:hover .submenu {
        display: block;
    }

    .save-badge {
        position: static;
        transform: none;
        margin-left: 0;
        margin-top: 12px;
        display: block;
        text-align: center;
        animation: none;
    }
    .country-selector {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Demo Popover Styles
   ========================================================================== */
.demo-popover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center; /* Center vertically instead of bottom to prevent overflow clipping */
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.demo-popover.active {
    visibility: visible;
    opacity: 1;
}

.demo-popover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.demo-popover-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    transform: translateY(40px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-popover.active .demo-popover-wrapper {
    transform: translateY(0) scale(1);
}

.demo-popover-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.demo-popover-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.demo-popover-content {
    display: flex;
    flex: 1;
    overflow-y: auto;
}

/* Left Side */
.demo-popover-left {
    flex: 1;
    padding: 48px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); /* gradient blue of our theme */
    display: flex;
    flex-direction: column;
}

.demo-popover-left h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.demo-popover-left > p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.5;
}

.demo-help-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.demo-help-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.demo-icon-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-contact-cards {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.demo-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.demo-card h3 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
}

.demo-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.demo-card-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-person span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #0f172a;
    font-weight: 500;
    word-break: break-word; /* Fix broken email text */
}

.contact-person svg {
    color: #64748b;
    flex-shrink: 0;
}

/* Right Side (Form) */
.demo-popover-right {
    flex: 0.9;
    padding: 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.demo-popover-right h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.demo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-footer.full-width.stack-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Fix mismatched height across all inputs */
.input-with-icon input,
.input-with-icon select,
.phone-input input {
    height: 40px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    transition: all 0.2s;
    background: #fff;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.input-with-icon input,
.input-with-icon select {
    padding: 0 16px 0 40px;
}

.phone-input-wrapper {
    width: 100%;
}

.iti {
    width: 100%;
    display: block;
}

#phone-input {
    height: 40px !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.9rem;
    color: #0f172a;
    transition: all 0.2s;
    background: #fff;
    outline: none;
    padding-left: 95px !important; /* Increased from 52px to prevent overlap */
}

#phone-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.iti__country-list {
    z-index: 10001;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    padding: 8px;
}

.iti__country {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.iti__country:hover {
    background-color: #f1f5f9;
}

.iti__selected-dial-code {
    color: #475569;
    font-size: 0.9rem;
}
/* End of intl-tel-input integration */

.phone-input:focus-within,
.input-with-icon input:focus,
.input-with-icon select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-prefix {
    padding: 0 12px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.phone-input input {
    border: none;
    padding: 0 16px;
    border-radius: 0;
}

.form-group textarea {
    width: 100%;
    height: 60px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    transition: all 0.2s;
    background: #fff;
    outline: none;
    resize: none; /* remove scrolling inside textarea if minimal */
    font-family: inherit;
    box-sizing: border-box;
}

.form-terms {
    width: 100%;
    text-align: center;
}

.form-terms p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.form-terms a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.form-submit {
    width: 100%;
}

.demo-submit-btn {
    width: 100%;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .demo-popover-content {
        flex-direction: column;
    }
    
    .demo-popover-wrapper {
        border-radius: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .demo-popover-left,
    .demo-popover-right {
        padding: 32px 24px;
    }
    
    .demo-contact-cards {
        flex-direction: column;
    }
}

/* ===== Market Offerings Section ===== */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

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

.offering-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.offering-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.18);
    transform: translateY(-4px);
}

.offering-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.offering-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.offering-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offering-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.offering-card ul li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.offering-link {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offering-link:hover { text-decoration: underline; }

/* ===== Feature Cards Hover Drop Shadow ===== */
.feature-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.feature-card:hover {
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-4px) !important;
}

/* ===== Animated Counter ===== */
.counter-stat {
    transition: color 0.3s ease;
}

/* ===== Global Reveal Animations ===== */
.reveal-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.fade-up {
    transform: translateY(40px);
}

.reveal-on-scroll.slide-in-left {
    transform: translateX(-60px);
}

.reveal-on-scroll.slide-in-right {
    transform: translateX(60px);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered children reveal */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stagger-reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.6s; }