/* ==========================================================================
   CERNO BRAND DESIGN SYSTEM & DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #141419;
  --bg-card: #1E1E26;
  --bg-alt: #17171D;
  --bg-footer: #FAF8F4;
  
  --border-muted: #2A2A33;
  --border-focus: #3A3A45;
  --border-footer: #E3E0D8;
  
  --text-primary: #F2F0EB;
  --text-secondary: #9A97A0;
  --text-dark: #141419;
  --text-muted-dark: #6B6870;
  
  --accent: #FFB020;
  --accent-hover: #FFBE42;
  --accent-glow: rgba(255, 176, 32, 0.4);
  
  --success: #4ADE80;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --max-width-main: 1120px;
  --max-width-section: 960px;
  --max-width-narrow: 720px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Links & Focus States */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:focus-visible, 
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width-main);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 11px 22px;
  white-space: nowrap;
  transition: background var(--transition-fast), 
              border-color var(--transition-fast), 
              color var(--transition-fast), 
              transform 0.1s ease,
              box-shadow var(--transition-fast);
}

.btn-primary {
  color: var(--text-dark);
  background-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(255, 176, 32, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background-color: rgba(30, 30, 38, 0.5);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-large {
  font-size: 17px;
  border-radius: 12px;
  padding: 16px 34px;
}

.btn-large.btn-primary {
  padding: 17px 34px; /* matching original padding */
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
  height: 72px;
  transition: background-color var(--transition-normal);
}

.navbar-container {
  max-width: var(--max-width-main);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 110;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  border-radius: 2px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.mobile-cta {
  margin-top: 16px;
  width: 80%;
  max-width: 300px;
}

/* Toggle Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 152px 24px 80px 24px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 40px;
  background-color: rgba(30, 30, 38, 0.3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.badge-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 900px;
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 680px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2.6vw, 19px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}

/* ==========================================================================
   THE QUESTIONS SECTION
   ========================================================================== */

.questions-section {
  padding: 120px 24px;
  max-width: var(--max-width-section);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-title {
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 500;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.question-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.question-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-tag {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.4;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-muted);
  padding-top: 20px;
}

.delivery-tag {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.delivery-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==========================================================================
   EVIDENCE / STATS SECTION
   ========================================================================== */

.evidence-section {
  padding: 0 24px 120px 24px;
  max-width: var(--max-width-section);
}

.evidence-box {
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 48px);
  background-color: rgba(30, 30, 38, 0.2);
}

.evidence-title {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   A CERNO SECTION (CONSULTING)
   ========================================================================== */

.cerno-section {
  padding: 120px 24px;
  background-color: var(--bg-alt);
}

.cerno-section .section-title {
  max-width: 720px;
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 38px);
}

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

.cerno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 48px;
  margin-top: 56px;
}

.cerno-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-indicator {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--accent);
}

.col-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.col-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   O MÉTODO SECTION
   ========================================================================== */

.method-section {
  padding: 120px 24px;
  max-width: var(--max-width-section);
}

.method-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

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

/* Progress Timeline */
.method-timeline-wrapper {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background-color: var(--border-muted);
  margin: 0 16px;
}

.timeline-line {
  position: relative;
  width: 100%;
  height: 100%;
}

.timeline-progress {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--border-muted) 0%, var(--accent) 100%);
  transform-origin: left center;
  transform: scaleX(0.66); /* Phase 3 is active: ~66% progress */
  transition: transform var(--transition-slow);
}

.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #3A3A45;
  border: 3px solid var(--bg-main);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.timeline-dot.active {
  width: 18px;
  height: 18px;
  background-color: var(--accent);
  box-shadow: 0 0 24px 2px var(--accent-glow);
}

.timeline-dot.completed {
  background-color: var(--accent);
}

.dot-1 { left: 2%; }
.dot-2 { left: 34%; }
.dot-3 { left: 66%; }
.dot-4 { left: 98%; }

/* Grid of phases */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.method-phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.method-phase.active {
  opacity: 1;
}

.method-phase.completed {
  opacity: 0.8;
}

.phase-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.method-phase.active .phase-number,
.method-phase.completed .phase-number {
  color: var(--accent);
}

.phase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.method-phase.active .phase-desc {
  color: var(--text-primary);
}

/* ==========================================================================
   DIAGNOSTIC / OFFER SECTION
   ========================================================================== */

.diagnostic-section {
  padding: 120px 24px;
  background-color: var(--bg-alt);
}

.diagnostic-container {
  max-width: var(--max-width-narrow);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.diagnostic-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: clamp(32px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.diagnostic-content-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 25px);
  line-height: 1.4;
  color: var(--text-primary);
}

.diagnostic-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-muted);
  padding-top: 28px;
}

.diagnostic-info-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.satisfaction-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  flex-shrink: 0;
}

.badge-text-white {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.diagnostic-cta-wrapper {
  margin-top: 8px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
  padding: 120px 24px;
  max-width: var(--max-width-section);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border: 1px solid var(--border-muted);
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  transition: background-color var(--transition-fast);
}

.faq-trigger:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-question {
  padding-right: 24px;
}

.faq-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-normal), background-color var(--transition-fast);
  flex-shrink: 0;
}

.faq-icon-inner {
  position: relative;
  width: 10px;
  height: 2px;
  background-color: var(--text-secondary);
}

.faq-icon-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-secondary);
  transform: rotate(90deg);
  transition: transform var(--transition-normal);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer {
  padding: 0 32px 24px 32px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Accordion Open State */
.faq-item.active {
  border-color: rgba(255, 176, 32, 0.3);
}

.faq-item.active .faq-trigger {
  color: var(--accent);
}

.faq-item.active .faq-icon {
  background-color: rgba(255, 176, 32, 0.1);
  transform: rotate(180deg);
}

.faq-item.active .faq-icon-inner::after {
  transform: rotate(0deg);
}

.faq-item.active .faq-icon-inner,
.faq-item.active .faq-icon-inner::after {
  background-color: var(--accent);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.footer {
  /* Transition from dark to paper-white background */
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-footer) 18%);
  padding: 160px 24px 64px 24px;
  color: var(--text-dark);
}

.footer-container {
  max-width: var(--max-width-section);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link-item {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
}

.footer-link-item:hover {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-footer);
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-muted-dark);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* Fade-in animations for page load */
@keyframes cerno-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: cerno-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll reveal styling */
.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.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar grow animation */
@keyframes cerno-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .hero {
    padding: 120px 24px 60px 24px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .questions-grid {
    grid-template-columns: 1fr;
  }
  
  .method-timeline-wrapper {
    display: none; /* Hide progress bar in mobile, display stack */
  }
  
  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .method-phase {
    opacity: 0.8;
    padding-left: 16px;
    border-left: 2px solid var(--border-muted);
  }
  
  .method-phase.active {
    opacity: 1;
    border-left-color: var(--accent);
  }
  
  .faq-trigger {
    padding: 20px 24px;
    font-size: 17px;
  }
  
  .faq-answer {
    padding: 0 24px 20px 24px;
  }
  
  .footer {
    padding: 100px 24px 48px 24px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
