/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== NAV ===== */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 240, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 63, 143, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-scrolled.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(123, 63, 143, 0.08);
}
.nav-link {
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7B3F8F, #F5B800);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7B3F8F 0%, #A55FBF 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(123, 63, 143, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 63, 143, 0.35);
  background: linear-gradient(135deg, #633075 0%, #7B3F8F 100%);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  color: #7B3F8F;
  font-weight: 600;
  border: 2px solid rgba(123, 63, 143, 0.2);
  border-radius: 50px;
  padding: 0.65rem 1.65rem;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: #fff;
  border-color: #7B3F8F;
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 400px;
  height: 400px;
  background: #EDE0F5;
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}
.blob-2 {
  width: 300px;
  height: 300px;
  background: #FFF4D6;
  bottom: 15%;
  left: -3%;
  animation-delay: -3s;
}
.blob-3 {
  width: 200px;
  height: 200px;
  background: #D9BFE8;
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}
.hero-content {
  animation: fadeUp 0.8s ease-out both;
}
.hero-image {
  animation: fadeUp 0.8s ease-out 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(123, 63, 143, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(123, 63, 143, 0.12);
}
.card-img-wrap {
  box-shadow: 0 4px 12px rgba(123, 63, 143, 0.08);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #F7F0FA 0%, #FFFBF0 100%);
  border: 1px solid rgba(123, 63, 143, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(123, 63, 143, 0.1);
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7B3F8F 0%, #A55FBF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}

/* ===== INPUTS ===== */
.input-field {
  border: 2px solid #EDE0F5;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #3D1D47;
  background: #FAFAFA;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: #C091D6; }
.input-field:focus {
  border-color: #7B3F8F;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123, 63, 143, 0.1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(247, 240, 250, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4F265D;
  transition: color 0.2s;
}
.mobile-link:hover { color: #7B3F8F; }
.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #7B3F8F;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-bar.active:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-bar.active:nth-child(2) { opacity: 0; }
.menu-bar.active:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 120px 0 80px; }
  #hero h1 { font-size: 2.5rem; }
  #hero p { font-size: 1.1rem; }
  .hero-image { display: none; }
  .hero-content { text-align: center; }
  .hero-content .flex-wrap { justify-content: center; }
  .hero-content .flex.items-center { justify-content: center; }
  .mobile-menu nav { text-align: center; }
  .feature-card { padding: 1.5rem 1rem; }
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
  outline: 2px solid #7B3F8F;
  outline-offset: 2px;
}
