/* Afirmatico Theme - Minimal Modern Spiritual styling */
:root {
  --primary-color: #8375EB;
  /* Purpleish pastel */
  --primary-color-hover: #675BCF;
  --secondary-color: #F8F5FF;
  /* Soft purple white */
  --accent-color: #E2B08C;
  /* Soft gold/sand */
  --text-primary: #1F1B3E;
  /* Dark indigo */
  --text-secondary: #585375;
  --bg-main: #FFFFFF;
  --card-bg: #FFFFFF;
  --border-radius-soft: 12px;
  --border-radius-pill: 50px;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(131, 117, 235, 0.1);
  --box-shadow-hover: 0 20px 40px rgba(131, 117, 235, 0.15);
}

[data-theme="dark"] {
  --primary-color: #9B8FF0;
  --primary-color-hover: #B4A9FA;
  --secondary-color: #1A1625;
  --text-primary: #F8F5FF;
  --text-secondary: #B3AACC;
  --bg-main: #0F0D14;
  --card-bg: #1A1625;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-speed) ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(131, 117, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-color-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(131, 117, 235, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid #D6D2E0;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--secondary-color);
}

[data-theme="dark"] .mobile-menu-btn {
  color: var(--text-primary);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 400;
  color: var(--text-secondary);
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-menu-wrapper {
  position: relative;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid #D6D2E0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
}

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

.theme-icon {
  width: 20px;
  height: 20px;
  display: none;
}

.theme-menu-wrapper[data-current="light"] .theme-icon.sun {
  display: block;
}

.theme-menu-wrapper[data-current="dark"] .theme-icon.moon {
  display: block;
}

.theme-menu-wrapper[data-current="system"] .theme-icon.system {
  display: block;
}

.theme-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid #EBE9F1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 150px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.theme-menu-wrapper.open .theme-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.theme-option svg {
  width: 16px;
  height: 16px;
}

.theme-option:hover,
.theme-option.active {
  background: var(--secondary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle-btn {
  border-color: #3f3659;
}

[data-theme="dark"] .theme-dropdown {
  border-color: #3f3659;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* View Transitions CSS for Expanding Circle */
::view-transition-group(root) {
  animation-duration: 0.6s;
  animation-timing-function: ease-in-out;
}

::view-transition-new(root),
::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 2;
}

::view-transition-old(root) {
  z-index: 1;
}

[data-theme="dark"] .btn-secondary {
  border-color: #3f3659;
}

[data-theme="dark"] .navbar {
  background-color: rgba(15, 13, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-header,
[data-theme="dark"] .accordion-content {
  border-color: #3f3659;
  background-color: var(--card-bg);
}

[data-theme="dark"] .cta-form-container {
  background-color: var(--card-bg);
}

[data-theme="dark"] .lead-form input {
  background-color: var(--bg-main);
  color: var(--text-primary);
  border-color: #3f3659;
}

[data-theme="dark"] .input-group.invalid input {
  border-color: #FF5A5F;
}

.nav-btn {
  padding: 10px 24px;
}

@media (max-width: 600px) {
  .nav-right {
    gap: 8px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* Mobile Menu Dropdown */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
    visibility: hidden;
  }

  .nav-menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
    color: var(--text-primary);
  }

  [data-theme="dark"] .nav-menu {
    background-color: rgba(15, 13, 20, 0.98);
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
  }

  [data-theme="dark"] .nav-links a {
    border-bottom-color: #3f3659;
  }
}

/* SPA Views */
.page-view {
  display: none;
  animation: fadeInPage 0.4s ease-out forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  gap: 60px;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abstract-shape {
  position: relative;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  right: 10%;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-color);
  bottom: 10%;
  left: 10%;
  opacity: 0.5;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    height: 300px;
  }
}

/* Sections Global */
section {
  padding: 100px 0;
}

/* Features */
.features {
  background-color: var(--secondary-color);
  border-radius: 40px;
  margin: 0 auto;
  padding: 100px 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

/* Free Guide CTA (Form) Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B4A9FA 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-container {
  max-width: 800px;
}

.cta-form-container {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.lead-form {
  display: flex;
  gap: 16px;
  position: relative;
}

.input-group {
  flex: 1;
  position: relative;
  text-align: left;
}

.lead-form input {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--border-radius-pill);
  border: 2px solid #EBE9F1;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-speed) ease;
}

.lead-form input:focus {
  border-color: var(--primary-color);
}

.error-msg {
  color: #FF5A5F;
  font-size: 0.875rem;
  position: absolute;
  left: 24px;
  bottom: -22px;
  display: none;
}

.input-group.invalid .error-msg {
  display: block;
}

.input-group.invalid input {
  border-color: #FF5A5F;
}

.success-message {
  padding: 16px;
  background-color: #E8F8F5;
  color: #117A65;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .lead-form {
    flex-direction: column;
  }

  .lead-form .btn {
    width: 100%;
  }
}

/* Testimonials */
.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #EBE9F1;
  text-align: left;
  transition: box-shadow var(--transition-speed);
}

.testimonial-card:hover {
  box-shadow: var(--box-shadow);
}

.stars {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 24px;
}

.author {
  font-weight: 600;
  color: var(--text-primary);
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

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

.accordion-item {
  border: 1px solid #EBE9F1;
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.accordion-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(131, 117, 235, 0.05);
}

.accordion-header {
  width: 100%;
  background: white;
  border: none;
  padding: 24px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-header .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

.accordion-item.active .icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: white;
}

.accordion-content p {
  padding: 0 24px 24px;
  margin: 0;
}

/* Footer */
.site-footer {
  background-color: var(--text-primary);
  color: white;
  padding: 80px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-left .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-socials a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: white;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* Animations Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

.delay-200 {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}