/* Custom Design System for Integração Mente-Corpo */
:root {
  /* Color Palette */
  --bg-dark-blue: #060b19;
  --bg-deep-purple: #101126;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-cyan-rgb: 0, 242, 254;
  --accent-purple: #7f5af0;
  --accent-purple-rgb: 127, 90, 240;
  --accent-orange: #f4a261;
  --accent-teal: #2a9d8f;

  /* Card Colors */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.4);

  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-blue);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Settings (SEO and legibility) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance; /* From modern-web-guidance */
}

p, li, blockquote {
  text-wrap: pretty; /* From modern-web-guidance */
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

.section-dark-blue {
  background-color: var(--bg-dark-blue);
}

.section-deep-purple {
  background-color: var(--bg-deep-purple);
}

/* Header & Navigation */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(6, 11, 25, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header-glass.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 11, 25, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-dark-blue);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 7.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark-blue);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(127, 90, 240, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(127, 90, 240, 0.15);
  border: 1px solid rgba(127, 90, 240, 0.3);
  color: var(--accent-purple);
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 60%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* Image Frames & Containers */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.glass-frame {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.6rem;
  box-shadow: 0 20px 40px var(--glass-shadow);
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.8s ease;
  object-fit: cover;
}

.image-wrapper:hover img {
  transform: scale(1.03);
}

/* Grids and Columns */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-2-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-2-reverse .section-text {
  grid-column: 2;
}

.grid-2-reverse .section-visual {
  grid-column: 1;
  grid-row: 1;
}

.grid-2-align-center {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

/* Section Text Styling */
.section-tag {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Feature Lists */
.features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.icon-bullet {
  color: var(--accent-cyan);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Quotes */
.quote-card {
  border-left: 3px solid var(--accent-purple);
  padding: 0.75rem 1.5rem;
  margin: 1.75rem 0;
  background: rgba(127, 90, 240, 0.05);
  border-radius: 0 12px 12px 0;
}

.quote-card p {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Scientific Evidence Section (Cards) */
.centered-header {
  margin-bottom: 3rem;
}

.history-block {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 18px;
  margin-bottom: 3.5rem;
}

.history-block h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 15px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.08);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.glass-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.glass-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-block;
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.card-link:hover {
  color: var(--accent-purple);
  padding-left: 4px;
}

/* Interactive Accordion / Steps */
.interactive-container {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 2.5rem;
  align-items: stretch;
  padding: 2.5rem;
}

.step-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-smooth);
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.step-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(127, 90, 240, 0.1));
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
}

.step-num {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.step-content-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--glass-border);
}

.step-pane {
  animation: fadeIn 0.5s ease forwards;
}

.step-pane h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.lead-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 1.25rem;
}

.step-indicator-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-top: 2rem;
  overflow: hidden;
}

.step-indicator-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strategic Link Section styling */
.strategic-box-link {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(127, 90, 240, 0.05) 100%);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  padding: 1.75rem;
  border-radius: 14px;
  margin: 2rem 0;
  box-shadow: inset 0 2px 10px rgba(0, 242, 254, 0.05);
}

.strategic-text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.inline-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-fast);
}

.inline-link:hover {
  color: var(--accent-purple);
  text-decoration-color: var(--accent-purple);
}

.synergy-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.synergy-content {
  margin-top: 2rem;
}

/* Forms & Newsletter Card */
.contact-card {
  padding: 3rem;
  border-color: rgba(127, 90, 240, 0.15);
}

.contact-card:hover {
  border-color: rgba(127, 90, 240, 0.3);
  box-shadow: 0 20px 50px rgba(127, 90, 240, 0.1);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.15);
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 0.75rem;
}

/* Footer Section */
.site-footer {
  background-color: #040812;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-group h4, .footer-disclaimer h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.text-xs {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Classes (JS Fallback) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles - Mobile First Approach */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .grid-2, .grid-2-reverse, .grid-2-align-center {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .grid-2-reverse .section-text, .grid-2-reverse .section-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-disclaimer {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Hamburger Menu navigation */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--bg-dark-blue);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    z-index: 99;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .header-container .btn {
    display: none; /* Hide top CTA on small devices */
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .interactive-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .step-content-pane {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-disclaimer {
    grid-column: auto;
  }
  
  .contact-card {
    padding: 1.75rem;
  }
}
