:root {
  --primary: #0052cc;
  --primary-light: #e6f0ff;
  --primary-hover: #0047b3;
  --primary-text: #ffffff;
  --info: #06b6d4;
  --info-light: #ecfeff;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  overflow-x: hidden;
}

body.dark-mode {
  background-color: #0f172a;
  color: #cbd5e1;
}

h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar {
  padding: 1.5rem 0;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-link {
  font-weight: 600;
  color: var(--text-primary) !important;
  margin: 0 10px;
}

.btn-try {
  background-color: var(--primary);
  color: var(--primary-text);
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-try:hover {
  background-color: var(--primary-hover);
  color: var(--primary-text);
  transform: translateY(-2px);
}

.hero-section {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, var(--info-light) 0%, var(--bg-card) 60%);
  position: relative;
}

.hero-tag {
  background: var(--success-light);
  color: var(--success);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-image-wrapper {
  margin-top: 3rem;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-svg {
  max-width: 900px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 82, 204, 0.15));
}

.story-section {
  padding: 6rem 0;
  position: relative;
}

.story-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--info);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.story-img-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.story-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: var(--gradient-blob, linear-gradient(135deg, #DEEBFF 0%, #E6FCFF 100%));
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  z-index: -1;
  animation: morph 8s ease-in-out infinite;
}

.story-blob-2 {
  border-radius: 41% 59% 41% 59% / 52% 34% 66% 48%;
  background: linear-gradient(135deg, var(--info-light) 0%, var(--primary-light) 100%);
}

@keyframes morph {
  0% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  50% { border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%; }
  100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
}

.story-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 82, 204, 0.15));
  position: relative;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  transition: 0.3s;
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pain-card {
  background: var(--danger-light);
  border: 1px solid var(--danger-light);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
}

.gain-card {
  background: var(--info-light);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 82, 204, 0.15);
}

.gain-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-text);
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-item {
  display: flex;
  align-items: start;
  margin-bottom: 1.5rem;
}

.compare-icon {
  flex-shrink: 0;
  width: 24px;
  margin-top: 4px;
  margin-right: 12px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  transition: 0.3s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: var(--primary-light);
  transform: scale(1.05);
  z-index: 10;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.check-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check-list i {
  color: var(--accent-green);
  margin-right: 10px;
}

.btn-toggle {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-toggle:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.contact-box {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.form-control {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.footer {
  background: var(--text-primary);
  color: #94a3b8; /* Light gray for readability */
  padding-top: 6rem;
  padding-bottom: 3rem;
  margin-top: 4rem;
  border-top-left-radius: 50% 50px;
  border-top-right-radius: 50% 50px;
}

.footer h1, 
.footer h2, 
.footer h3, 
.footer h4, 
.footer h5 {
  color: #f8fafc;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: 0.2s;
}

.footer a:hover {
  color: var(--text-inverse);
}

body.dark-mode .hero-section {
  background: radial-gradient(circle at 50% 20%, #1e3a5f 0%, #0f172a 60%);
}

body.dark-mode .solution-card,
body.dark-mode .pricing-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .form-control {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .bg-white,
body.dark-mode .bg-light {
  background-color: #0f172a !important;
}

body.dark-mode .text-dark,
body.dark-mode .text-muted,
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5,
body.dark-mode p,
body.dark-mode li {
  color: #f8fafc !important;
}

body.dark-mode .border, 
body.dark-mode .border-top {
  border-color: #334155 !important;
}

body.dark-mode .contact-box {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .pain-card,
body.dark-mode .gain-card {
  background: #1e293b !important;
}

body.dark-mode .story-svg filter feFlood, 
body.dark-mode .hero-svg filter feFlood {
  flood-color: #0f172a !important;
}

/* Fix SVG colors in dark mode */
body.dark-mode svg text[fill="#091E42"], 
body.dark-mode svg text[fill="#64748B"] {
  fill: #f8fafc !important;
}

body.dark-mode svg rect[fill="#FFFFFF"], 
body.dark-mode svg rect[fill="#fff"], 
body.dark-mode svg rect[fill="#F8FAFC"], 
body.dark-mode svg rect[fill="#f8fafc"] {
  fill: #1e293b !important;
  stroke: #334155 !important;
}

body.dark-mode svg rect[fill="#F0FDF4"], 
body.dark-mode svg rect[fill="#FEF2F2"] {
  fill: #334155 !important;
}

body.dark-mode svg path[fill="#f1f5f9"] {
  fill: #334155 !important;
}

/* Fix text and links */
body.dark-mode .nav-link,
body.dark-mode .btn-link {
  color: #f8fafc !important;
}

/* Fix footer in dark mode */
body.dark-mode .footer {
  background: #020617 !important; /* Very dark slate/black */
  border-top: 1px solid #1e293b;
}

/* Fix pricing toggle buttons in dark mode */
body.dark-mode .btn-toggle.active,
body.dark-mode .btn-toggle.bg-white {
  background-color: #1e293b !important; /* Distinct from bg-light #0f172a */
  color: #f8fafc !important;
}

body.dark-mode .btn-toggle.text-muted {
  color: #94a3b8 !important; /* Dimmer for inactive */
}

body.dark-mode .pricing-price {
  color: #f8fafc !important;
}

body.dark-mode .pricing-period {
  color: #cbd5e1 !important;
}

/* Fix story blobs (the big background shapes behind SVGs) */
body.dark-mode .story-blob {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

body.dark-mode .story-blob-2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(0, 82, 204, 0.1) 100%) !important;
}

/* Fix SVG circles and lines that are too bright */
body.dark-mode svg circle[fill="#F0F9FF"],
body.dark-mode svg circle[fill="#f0f9ff"],
body.dark-mode svg circle[fill="#dcfce7"] {
  fill: #1e293b !important;
}

body.dark-mode svg circle[fill="#fee2e2"] {
  fill: #450a0a !important;
}

body.dark-mode svg path[stroke="#E0F2FE"],
body.dark-mode svg line[stroke="#F1F5F9"] {
  stroke: #334155 !important;
}

body.dark-mode svg rect[fill="#f8fafc"] {
  fill: #0f172a !important;
}

body.dark-mode svg rect[stroke="#e2e8f0"],
body.dark-mode svg rect[stroke="#fff"] {
  stroke: #334155 !important;
}

/* =========================================
   DYNAMIC ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */

@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes floatAnimationFast {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Make SVG illustrations float organically */
.hero-svg {
  animation: floatAnimation 6s ease-in-out infinite;
}

.story-svg {
  animation: floatAnimationFast 5s ease-in-out infinite;
}

/* Enhanced Hover Effects (Glassmorphism & Glow) */
.solution-card:hover, .pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 82, 204, 0.25);
  border-color: var(--info);
  z-index: 10;
}

body.dark-mode .solution-card:hover, body.dark-mode .pricing-card:hover {
  box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.3);
  border-color: var(--info) !important;
}

/* Button glow effect on hover */
.btn-try:hover, .btn-primary:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 82, 204, 0.4);
}

body.dark-mode .btn-try:hover, body.dark-mode .btn-primary:hover {
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}
