:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

/* =====================
   BUTTON BASE STYLES
   ===================== */
button,
.btn,
[class*="btn-"],
a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
  display: flex;
}

/* =====================
   HEADER SCROLL BEHAVIOR
   ===================== */
#site-header.scrolled {
  background-color: rgba(46, 36, 64, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

#site-header.scrolled a,
#site-header.scrolled button {
  /* stays white on dark bg */
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

/* =====================
   UTILITY
   ===================== */
.rotate-180 {
  transform: rotate(180deg);
}

/* =====================
   DECORATIVE ELEMENTS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(167, 139, 250, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(167, 139, 250, 0.05) 10px,
    rgba(167, 139, 250, 0.05) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(69, 54, 96, 0.2) 0%, transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  filter: blur(60px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 54, 96, 0.25), transparent 70%);
  filter: blur(50px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(167, 139, 250, 0.15), transparent);
  border-bottom-left-radius: 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(167, 139, 250, 0.12), transparent);
  border-top-right-radius: 100%;
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-rings-svg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='200' cy='200' r='80' fill='none' stroke='rgba(167,139,250,0.08)' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='120' fill='none' stroke='rgba(167,139,250,0.06)' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='160' fill='none' stroke='rgba(167,139,250,0.04)' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='200' fill='none' stroke='rgba(167,139,250,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.5; }

/* =====================
   STAR RATING
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}

/* =====================
   ORDER FORM
   ===================== */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  background: #fff;
}

.order-form-input:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.order-form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-msg {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* =====================
   FAQ ACCORDION
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq-answer.open {
  max-height: 500px;
}

/* =====================
   GRADIENT TEXT
   ===================== */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   SECTION BASE
   ===================== */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* =====================
   HERO GRADIENT BG
   ===================== */
.hero-bg {
  background: linear-gradient(135deg, #2E2440 0%, #453660 60%, #3b2d54 100%);
}

/* =====================
   CARD HOVER
   ===================== */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(46, 36, 64, 0.15);
}

/* =====================
   PROGRESS BAR ANIMATION
   ===================== */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--bar-width); }
}

.progress-bar-animated {
  animation: fillBar 1.2s ease-out forwards;
}

/* =====================
   MOBILE MENU TRANSITION
   ===================== */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* =====================
   SMOOTH IMAGE LOAD
   ===================== */
img {
  transition: opacity 0.3s ease;
}

/* =====================
   TESTIMONIAL CARDS
   ===================== */
.testimonial-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(46, 36, 64, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 36, 64, 0.12);
}

/* =====================
   BADGE
   ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(167, 139, 250, 0.15);
  color: #7C3AED;
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =====================
   SCROLL INDICATOR
   ===================== */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}