/* 
  Premium UI Components
*/

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--text-base);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: var(--color-border-subtle);
  border-color: var(--color-border-hover);
}

/* Button hover shine effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out-expo);
}

.btn:hover::after {
  left: 200%;
}

.btn-primary::after {
  background: linear-gradient(
    90deg, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.1) 50%, 
    rgba(0, 0, 0, 0) 100%
  );
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--color-border-subtle);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
}

/* --- Premium Navigation --- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-4) 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav-header.scrolled {
  padding: var(--space-2) 0;
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-text-primary);
  background-color: var(--color-border-subtle);
}

/* --- Animated Background Mesh --- */
.bg-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  filter: blur(80px);
  animation: rotateMesh 40s linear infinite;
}

@keyframes rotateMesh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Scroll Reveal Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: all 1.2s var(--ease-out-expo);
}

.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================
   CREATIVE ONBOARDING & MODAL STYLES
   ========================================== */
.modal-header-nav {
  position: absolute;
  top: 30px;
  left: 40px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1001;
}

.modal-back-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 4px 8px;
}

.modal-back-btn:hover {
  color: #ffd700;
}

.modal-progress-container {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.modal-progress-bar {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, #ffd700, #ffae00);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.modal-step-counter {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.step-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}

.quick-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-chip:hover {
  border-color: #ffd700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

/* Custom Checkbox Grid */
.checkbox-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px !important;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

.custom-checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.custom-checkbox-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.03);
}

.custom-checkbox-card input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkmark {
  color: #000;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-card input:checked ~ .checkbox-box {
  background: #ffd700;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.custom-checkbox-card input:checked ~ .checkbox-box .checkmark {
  opacity: 1;
  transform: scale(1);
}

.custom-checkbox-card input:checked ~ .checkbox-label {
  color: #ffd700;
  font-weight: 600;
}

.checkbox-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

/* Validation Error Toast */
.step-error-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #e63946;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1005;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.step-error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shake-error {
  animation: shake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(6px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
  40%, 60% { transform: translate3d(8px, 0, 0); }
}

/* High-Impact Confirmation Screen */
.final-card {
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 48px 36px;
  border-radius: 28px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.final-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #000;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

.final-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 10px;
}

.final-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.final-details-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.final-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.detail-label {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.detail-val {
  color: #ffffff;
  font-weight: 600;
}

.detail-val.gold {
  color: #ffd700;
}

/* ==========================================
   PROOF OF WORK & TESTIMONIALS
   ========================================== */
.pow-section {
  padding: 100px 20px;
  background: transparent;
  position: relative;
  z-index: 10;
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.02) 0%, transparent 70%);
}

.pow-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Metrics Grid */
.pow-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.pow-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.pow-metric-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
  background: rgba(255, 215, 0, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.pow-metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.pow-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Testimonials */
.pow-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  text-align: left;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 0 16px 16px 0;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  background: rgba(255, 215, 0, 0.03);
  border-left-color: #ffd700;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #ffd700;
  margin-bottom: 4px;
}

.testimonial-author span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Extracted from index.html */
    /* THE PRIMARY CTA */
    .primary-cta {
      margin-top: 40px;
      padding: 16px 40px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 215, 0, 0.3);
      border-radius: 50px;
      color: #ffd700;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(10px);
      transition: all 0.4s ease;
      position: relative;
      z-index: 10;
      pointer-events: auto;
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
      text-decoration: none;
      display: inline-block;
    }

    .primary-cta:hover {
      background: rgba(255, 215, 0, 0.15);
      border-color: rgba(255, 215, 0, 0.8);
      box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255,215,0,0.2);
      transform: translateY(-2px);
      color: #fff;
    }

    /* Navigation styling fallback since motion.js is gone */
    .nav-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 20px 40px;
      z-index: 1000;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(10px);
    }
    .nav-links a { color: #fff; text-decoration: none; margin: 0 15px; font-weight: 500; }
    .container.flex { display: flex; justify-content: space-between; align-items: center; }

    /* Application Modal Styles */
    #application-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.97);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      color: #fff;
    }

    #application-modal.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-close {
      position: absolute;
      top: 50px;
      right: 50px;
      background: none;
      border: none;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      opacity: 0.4;
      transition: opacity 0.4s ease;
      font-weight: 300;
    }

    .modal-close:hover { opacity: 1; color: #ffd700; }

    .app-step {
      display: none;
      max-width: 700px;
      width: 90%;
      text-align: center;
      animation: stepFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .app-step.active {
      display: block;
    }

    @keyframes stepFadeIn {
      0% { opacity: 0; transform: translateY(30px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .app-question {
      font-size: clamp(2rem, 3vw, 3rem);
      font-family: 'Playfair Display', serif;
      margin-bottom: 4rem;
      font-weight: 400;
    }

    .app-options {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }

    .app-option {
      background: none;
      border: 1px solid rgba(255,255,255,0.15);
      padding: 16px 32px;
      border-radius: 40px;
      color: rgba(255,255,255,0.7);
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      font-family: 'Inter', sans-serif;
    }

    .app-option:hover, .app-option.selected {
      border-color: #ffd700;
      color: #ffd700;
      background: rgba(255,215,0,0.05);
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    }

    .app-textarea, .app-input {
      width: 100%;
      background: none;
      border: none;
      border-bottom: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      font-size: 1.5rem;
      font-family: 'Playfair Display', serif;
      padding: 15px 0;
      resize: none;
      outline: none;
      transition: border-color 0.4s ease;
      margin-bottom: 2rem;
    }
    .app-textarea:focus, .app-input:focus { border-color: #ffd700; }
    .app-textarea::placeholder, .app-input::placeholder { color: rgba(255,255,255,0.2); }

    .app-next {
      margin-top: 4rem;
      background: #fff;
      color: #000;
      border: none;
      padding: 18px 50px;
      border-radius: 40px;
      font-size: 1.1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .app-next:hover { background: #ffd700; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,215,0,0.2); }

    .final-message {
      font-size: 2rem;
      font-family: 'Playfair Display', serif;
      color: #ffd700;
      line-height: 1.6;
    }
    @keyframes rotateLogo {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  
