:root {
  --primary-color: #00aff0; /* Replaces pink with cyan */
  --primary-hover: #0099d6;
  --primary-light: #e6f7fd; /* Very light cyan */
  --primary-gradient: linear-gradient(135deg, #00aff0, #007bb5); /* Optional vivid gradient */
  
  --text-dark: #111111;
  --text-gray: #666666;
  --bg-light: #fbfbfb;
  --white: #ffffff;
  --border-color: #eeeeee;
  
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,175,240,0.15); /* Tinted shadow to match cyan */
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --text-dark: #fbfbfb;
  --text-gray: #aaaaaa;
  --bg-light: #121212;
  --white: #1e1e1e;
  --border-color: #333333;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.5);
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.heading-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.heading-md {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.text-cyan {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 175, 240, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 175, 240, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-outline svg {
  margin-right: 6px;
  fill: currentColor;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.site-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--primary-color);
}

.site-logo svg {
  margin-right: 8px;
  width: 32px;
  height: 32px;
  fill: var(--primary-color);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.main-nav a:hover {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .main-nav {
    display: none; /* simple mobile nav hide for now */
  }
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at top, var(--primary-light) 0%, transparent 60%);
}
.hero-wrapper {
  background: var(--primary-light);
  border-radius: 40px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
}

.hero .badge-pill-yellow {
  display: inline-block;
  background-color: #d4ed31;
  color: #111;
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transform: rotate(-3deg);
  margin-left: 8px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin: 24px 0 40px;
  max-width: 600px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
  max-width: 700px;
  margin: 40px 0;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-feature-item svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  flex-shrink: 0;
}

.hero-footer-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.hero-footer-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rating-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #e8f5e9;
  color: #4caf50;
  border-radius: 50%;
}

.rating-star svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.rating-info strong {
  display: block;
  font-size: 1rem;
}

.rating-info .stars {
  color: #111;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
  background: var(--primary-light);
  object-fit: cover;
}
.avatar-group img:first-child {
  margin-left: 0;
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-gray);
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-left {
  padding: 40px;
  background: var(--primary-light);
}

.modal-left .badge-pill-yellow {
  display: inline-block;
  background-color: #d4ed31;
  color: #111;
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group label span {
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.2);
}

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

.modal-right {
  padding: 40px;
  background-color: #ffffff;
  background-image: linear-gradient(#f0f0f0 1px, transparent 1px), linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
  background-size: 40px 40px;
  border-left: 1px dashed var(--border-color);
}

.modal-right h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.modal-right h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(212, 237, 49, 0.4);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1deg);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.benefit-item svg {
  width: 24px;
  height: 24px;
  fill: #8bc34a; /* Green checkmark */
  flex-shrink: 0;
}

.benefit-item span {
  color: var(--text-gray);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .modal-container {
    grid-template-columns: 1fr;
    height: 90vh;
    overflow-y: auto;
  }
  .modal-right {
    border-left: none;
    border-top: 1px dashed var(--border-color);
  }
}
/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-wrapper {
    padding: 60px 30px;
  }
  .calculator-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .heading-lg {
    font-size: 2.5rem;
  }
  .heading-md {
    font-size: 1.8rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  /* Success Story grid */
  section[style*="padding: 80px 0;"] > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .pricing-section .hero-features {
    grid-template-columns: 1fr !important;
  }
  .calc-right {
    padding: 30px 20px !important;
  }
  .calc-right > div {
    gap: 20px !important;
  }
  .calc-right [id^="res"] {
    width: 80px !important;
    height: 50px !important;
    font-size: 1rem !important;
  }
  /* Modal responsive adjustments on top of base styles */
  .modal-container {
    height: 95vh;
    border-radius: 8px;
  }
  .modal-left {
    padding: 24px;
  }
  .modal-right {
    padding: 24px;
  }
  .modal-right h3 {
    font-size: 1.5rem;
  }
  .benefits-list {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .header-container .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .site-logo {
    font-size: 1.2rem;
  }
  .site-logo svg {
    width: 24px;
    height: 24px;
  }
  .hero-wrapper {
    padding: 40px 20px;
  }
  .heading-lg {
    font-size: 2rem;
  }
  .rating-block {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Calculator bottom row */
  .calculator-card > div[style*="grid-column: 1 / -1"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .calculator-card > div[style*="grid-column: 1 / -1"] > div:first-child {
    display: none; /* hide empty spacer on mobile */
  }
  .calculator-card [style*="display: flex; gap: 16px;"] {
    flex-direction: column;
    gap: 12px;
  }
  #calcForm > div[style*="display: flex"] {
    flex-direction: column !important;
  }
  #calcForm input, #calcForm button {
    width: 100% !important;
  }
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] body {
  background-color: var(--bg-light);
}

[data-theme="dark"] .site-header {
  background-color: rgba(30, 30, 30, 0.95);
}

[data-theme="dark"] .hero-wrapper {
  background: var(--white);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at top, rgba(0,175,240,0.1) 0%, transparent 60%);
}

[data-theme="dark"] .avatar-group img {
  border-color: var(--white);
  background: var(--border-color);
}

[data-theme="dark"] .modal-left {
  background: var(--white);
}

[data-theme="dark"] .modal-right {
  background-color: var(--bg-light);
  background-image: linear-gradient(#333 1px, transparent 1px), linear-gradient(90deg, #333 1px, transparent 1px);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] input.form-control {
  background: var(--bg-light) !important;
  color: var(--text-dark);
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .rating-star {
  background: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .hero .badge-pill-yellow,
[data-theme="dark"] .modal-left .badge-pill-yellow {
  color: #111; /* Keep text dark on yellow badge */
}

/* Dark Mode Toggle Switch */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--border-color);
}

[data-theme="dark"] .theme-toggle .moon-icon,
[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun-icon,
[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}
