/* ============================
   AshproERP Landing Page
   Bootstrap 5.3.3 Theme Overrides + Aether Enterprise Design System
   ============================ */

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root,
[data-bs-theme="dark"] {
  /* Surface palette */
  --surface: #161121;
  --surface-dim: #161121;
  --surface-bright: #3c3648;
  --surface-container-lowest: #100b1b;
  --surface-container-low: #1e1929;
  --surface-container: #221d2e;
  --surface-container-high: #2d2739;
  --surface-container-highest: #383244;

  /* Primary */
  --primary: #c6bfff;
  --primary-container: #6c5ce7;
  --on-primary: #2900a0;
  --on-primary-container: #faf6ff;

  /* Secondary */
  --secondary: #a2c9ff;
  --secondary-container: #2e94f4;
  --on-secondary: #00315b;

  /* Tertiary */
  --tertiary: #c5c0ff;
  --tertiary-container: #6d66c4;

  /* Neutral */
  --on-surface: #e9def6;
  --on-surface-variant: #c8c4d7;
  --outline: #928ea0;
  --outline-variant: #474554;

  /* Functional */
  --success: #00CEC9;
  --warning: #ffd93d;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6c5ce7, #2e94f4);
  --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #2e94f4 50%, #00cec9 100%);
  --gradient-text: linear-gradient(135deg, #c6bfff, #a2c9ff);
  --gradient-glow: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.12);
  --shadow-glow-lg: 0 0 100px rgba(108, 92, 231, 0.2);
  --shadow-card: 0 8px 40px rgba(22, 0, 102, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Bootstrap overrides */
  --bs-body-bg: #161121;
  --bs-body-color: #e9def6;
  --bs-body-font-family: 'Manrope', sans-serif;
  --bs-heading-color: #e9def6;
  --bs-secondary-color: #c8c4d7;
  --bs-secondary-bg: #221d2e;
  --bs-border-color: rgba(71, 69, 84, 0.15);
  --bs-link-color: #c6bfff;
  --bs-link-hover-color: #a2c9ff;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
  font-family: 'Manrope', sans-serif;
}

/* ===== Typography Helpers ===== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 1rem;
}

.section-title {
  line-height: 1.15;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  max-width: 640px;
  line-height: 1.7;
}

.ls-wide {
  letter-spacing: 2px;
}

/* ===== Custom Buttons (extend Bootstrap) ===== */
.btn-aether-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  transition: all var(--transition-smooth);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-aether-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-aether-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
  color: #fff;
}

.btn-aether-primary:hover::after {
  opacity: 1;
}

.btn-aether-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(198, 191, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

.btn-aether-secondary:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
  color: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(16, 11, 27, 0.85) !important;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(71, 69, 84, 0.15);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-logo-icon-sm {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.navbar .nav-link {
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.navbar .nav-link:hover {
  color: var(--on-surface);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Offcanvas (mobile nav) */
.offcanvas {
  background: rgba(16, 11, 27, 0.98);
  backdrop-filter: blur(32px);
}

.offcanvas .nav-link {
  color: var(--on-surface-variant);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.offcanvas .nav-link:hover {
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  padding: 8rem 0 4rem;
}

.hero-bg {
  z-index: 0;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero-bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4), transparent);
  top: -200px;
  right: -100px;
}

.hero-bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 148, 244, 0.3), transparent);
  bottom: -100px;
  left: -150px;
  animation-delay: -10s;
}

.hero-bg-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.2), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 191, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 191, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}

.hero-badge {
  padding: 8px 16px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-visual {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-mockup {
  box-shadow: var(--shadow-glow-lg), 0 32px 64px rgba(0,0,0,0.4);
  border: 1px solid rgba(71, 69, 84, 0.15);
}

.hero-mockup-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0.15;
  z-index: -1;
  filter: blur(20px);
}

/* Floating cards */
.hero-float-card {
  padding: 1rem 1.5rem;
  background: rgba(34, 29, 46, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(71, 69, 84, 0.15);
  box-shadow: var(--shadow-card);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 2;
}

.hero-float-card-1 {
  top: 10%;
  right: -40px;
  animation-delay: 0s;
}

.hero-float-card-2 {
  bottom: 15%;
  left: -30px;
  animation-delay: -3s;
}

/* ===== Logos Section ===== */
.logos-section {
  padding: 4rem 0;
}

.logos-grid {
  opacity: 0.5;
}

.logo-item {
  transition: opacity var(--transition-fast);
}

.logo-item:hover {
  opacity: 1;
}

/* ===== Features Section ===== */
.features-section {
  padding: 8rem 0;
}

.features-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.feature-card {
  background: rgba(34, 29, 46, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(71, 69, 84, 0.12);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), transparent, rgba(46, 148, 244, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(34, 29, 46, 0.7);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(46, 148, 244, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform var(--transition-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ===== How It Works Section ===== */
.how-it-works-section {
  padding: 8rem 0;
  background: var(--surface-container-low);
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-container), var(--secondary-container), transparent);
  opacity: 0.3;
  display: none;
}

@media (min-width: 992px) {
  .steps-grid::before {
    display: block;
  }
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.2);
}

.step-desc {
  max-width: 280px;
}

/* ===== Pricing Section ===== */
.pricing-section {
  padding: 8rem 0;
}

.pricing-toggle {
  padding: 6px;
  background: var(--surface-container);
  border-radius: 9999px;
}

.pricing-toggle-btn {
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pricing-toggle-btn.active {
  background: var(--gradient-primary);
  color: #fff;
}

.pricing-card {
  background: var(--surface-container);
  border: 1px solid rgba(71, 69, 84, 0.12);
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-card-featured {
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.12), var(--surface-container));
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow-lg);
}

@media (min-width: 992px) {
  .pricing-card-featured {
    transform: scale(1.04);
  }

  .pricing-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.pricing-popular {
  padding: 6px 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-value {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
}

.pricing-feature {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

.pricing-feature-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(0, 206, 201, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--success);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 8rem 0;
  background: var(--surface-container-low);
}

.testimonial-card {
  background: var(--surface-container);
  border: 1px solid rgba(71, 69, 84, 0.1);
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(108, 92, 231, 0.2);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 8rem 0;
}

/* Bootstrap Accordion Overrides */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(71, 69, 84, 0.15);
  --bs-accordion-btn-color: var(--on-surface);
  --bs-accordion-active-color: var(--primary);
  --bs-accordion-active-bg: rgba(108, 92, 231, 0.06);
  --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-item {
  border-left: none;
  border-right: none;
}

.accordion-item:first-of-type {
  border-top: none;
}

.accordion-button {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 0;
  transition: color var(--transition-fast);
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--primary);
  background-color: transparent;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: invert(0.7) sepia(1) saturate(5) hue-rotate(210deg);
}

.accordion-body {
  padding: 0 0 1.25rem 0;
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 8rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(46, 148, 244, 0.1));
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 148, 244, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== Footer ===== */
.footer-section {
  padding: 5rem 0 1.5rem;
  background: var(--surface-container-lowest);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--on-surface);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
  display: inline-block;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--primary-container);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom-link:hover {
  color: var(--primary) !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-10px, 20px); }
  75% { transform: translate(15px, 10px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-float-card {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 6rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

  .cta-box {
    padding: 2rem 1.5rem !important;
  }
}
