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

/* Brand Color Scheme Definitions */
:root {
  --primary-purple: #8E1A8C;
  --primary-purple-rgb: 142, 26, 140;
  --primary-orange: #FF4B2B;
  --primary-orange-rgb: 255, 75, 43;
  --golden-yellow: #FFE600;
  --golden-yellow-rgb: 255, 230, 0;
  --dark-charcoal: #6B5A56;
  --dark-charcoal-rgb: 107, 90, 86;
  --black: #1E1E1E;
  --white: #FFFFFF;

  /* Theme Defaults (Light Theme) */
  --bg-color: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #F3F4F6;
  --text-primary: #1E1E1E;
  --text-secondary: #6B5A56;
  --text-muted: #8A8191;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-bento: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --glass-effect: backdrop-filter: none;
  --gradient-hero: linear-gradient(135deg, #8E1A8C 0%, #FF4B2B 55%, #FFE600 100%);
  --gradient-button: linear-gradient(135deg, #8E1A8C 0%, #FF4B2B 100%);
  --gradient-glow: linear-gradient(135deg, rgba(142, 26, 140, 0.05), rgba(255, 75, 43, 0.05));
  --border-radius-sm: 12px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-color: #0B080F;
  --card-bg: rgba(18, 14, 23, 0.75);
  --card-border: rgba(255, 255, 255, 0.05);
  --text-primary: #F5EFFB;
  --text-secondary: #AFA6BA;
  --text-muted: #7A7085;
  --nav-bg: rgba(11, 8, 15, 0.85);
  --nav-border: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --gradient-glow: linear-gradient(135deg, rgba(142, 26, 140, 0.25), rgba(255, 75, 43, 0.25));
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

/* Layout Utilities (Flex and Grid System) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-alt {
  padding: 110px 0;
  position: relative;
  background-color: rgba(142, 26, 140, 0.02);
}

[data-theme="dark"] .section-alt {
  background-color: rgba(18, 14, 23, 0.2);
}

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* Grid Layouts */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Custom Hero Layout split */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

/* Alignment and Typography Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--primary-purple); }
.text-orange { color: var(--primary-orange); }

.w-full { width: 100%; }
.max-w-7xl { max-w: 1280px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margins and Spacing */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-60 { margin-top: 60px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-60 { margin-bottom: 60px; }

/* Section Badges and Labels */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(142, 26, 140, 0.05);
  color: var(--primary-purple);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(142, 26, 140, 0.1);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

[data-theme="dark"] .section-tag {
  color: #FF4B2B;
  background: rgba(255, 75, 43, 0.05);
  border-color: rgba(255, 75, 43, 0.15);
}

[data-theme="dark"] .section-tag::before {
  background-color: var(--golden-yellow);
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 60px auto;
  font-weight: 400;
}

/* Header & Sticky Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

header:not(.scrolled) {
  padding: 24px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo span {
  background: var(--gradient-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-button);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(142, 26, 140, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px; /* slightly tighter gap for the pill look */
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-purple);
  background: rgba(142, 26, 140, 0.05);
}

[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active {
  color: var(--primary-orange);
  background: rgba(255, 75, 43, 0.08);
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.025);
  transition: all 0.25s ease;
}

[data-theme="dark"] .theme-toggle {
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFE600;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background-color: rgba(142, 26, 140, 0.08);
  color: var(--primary-purple);
}

/* Hamburg Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(142, 26, 140, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(142, 26, 140, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 26, 140, 0.3);
  box-shadow: var(--shadow-md);
}

/* Glassmorphism Cards (Updated for Bento Grid Design) */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bento);
}

/* Custom Bento Grid Color Variants and Outlines on Hover */
.bento-purple-hover:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 12px 30px rgba(142, 26, 140, 0.08);
}

.bento-orange-hover:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 12px 30px rgba(255, 75, 43, 0.08);
}

.bento-yellow-hover:hover {
  border-color: var(--golden-yellow);
  box-shadow: 0 12px 30px rgba(255, 230, 0, 0.08);
}

/* Asymmetric Bento Highlight Block */
.glass-card.bento-gradient {
  background: linear-gradient(135deg, #8E1A8C 0%, #FF4B2B 100%);
  border-color: transparent;
  color: #FFFFFF;
}

.glass-card.bento-gradient h1,
.glass-card.bento-gradient h2,
.glass-card.bento-gradient h3,
.glass-card.bento-gradient h4,
.glass-card.bento-gradient p,
.glass-card.bento-gradient ul,
.glass-card.bento-gradient li,
.glass-card.bento-gradient .card-title,
.glass-card.bento-gradient .card-desc,
.glass-card.bento-gradient .text-secondary,
.glass-card.bento-gradient .text-muted {
  color: #FFFFFF !important;
}

.glass-card.bento-gradient .card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-glow);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  margin-bottom: 24px;
  border: 1px solid rgba(142, 26, 140, 0.08);
}

[data-theme="dark"] .card-icon {
  color: #FF4B2B;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Custom Gradient Text */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stats Row & Counters */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background-color: rgba(0, 0, 0, 0.015);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .form-control {
  background-color: rgba(255, 255, 255, 0.02);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(142, 26, 140, 0.12);
  background-color: var(--white);
}

[data-theme="dark"] .form-control:focus {
  background-color: #140F1A;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Interactive SVG Chart / Mockup Elements */
.dashboard-mockup {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.svg-chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChart 2.5s ease-out forwards;
}

@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

/* Floating Badges for Visual Mockups */
.floating-badge {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-button);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(142, 26, 140, 0.35);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(142, 26, 140, 0.5);
}

/* Footer Section */
footer {
  background-color: #08060A;
  color: #A39BAF;
  padding: 90px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.footer-about {
  line-height: 1.7;
}

.footer-about p {
  margin-bottom: 24px;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 2px;
  background: var(--gradient-button);
  bottom: -8px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #8C8494;
  transition: color 0.25s ease, padding-left 0.25s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FF4B2B;
  padding-left: 6px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gradient-button);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(142, 26, 140, 0.2);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #8C8494;
}

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

.footer-policies a {
  transition: color 0.2s ease;
}

.footer-policies a:hover {
  color: var(--white);
}

/* CBT System Highlight Area */
.cbt-highlight-box {
  background: linear-gradient(135deg, rgba(142, 26, 140, 0.04) 0%, rgba(255, 75, 43, 0.04) 100%);
  border: 1px dashed rgba(142, 26, 140, 0.25);
  padding: 32px;
  border-radius: var(--border-radius-md);
  margin-top: 28px;
}

/* Map Mockup Area */
.map-container {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #EAE6DF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px;
}

[data-theme="dark"] .map-placeholder {
  background: #17121C;
}

/* Custom styled tabs for features page */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--gradient-button);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(142, 26, 140, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* WhatsApp Floating Action Button */
.whatsapp-float {
  position: fixed;
  bottom: 105px;
  right: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.6);
  background-color: #20BA5A;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
  }
  .whatsapp-float {
    bottom: 88px;
    right: 24px;
  }
}

