/* =========================================
   South Lab Tech - Landing Page Clínicas
   ========================================= */

/* --- CSS Variables --- */
:root {
  --accent: #2f39d3;
  --accent-hover: #252db0;
  --accent-warm: #c5a48e;
  --primary-dark: #111542;
  --primary-light: #F4F3F8;
  --white: #ffffff;
  --black: #000000;
  --gray-text: #6b7280;
  --gray-light: #e5e5e5;

  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

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


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

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.landing-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gray-light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-anchor {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-anchor:hover,
.nav-anchor.active {
  color: var(--accent);
}

.nav-anchor.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(47, 57, 211, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}


/* =========================================
   SHARED SECTION STYLES
   ========================================= */

.section {
  padding: 6rem 0;
}

.section-light {
  background: var(--primary-light);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--primary-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark span {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-text);
  margin-top: 1rem;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.75);
}


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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  padding: 7rem 0 5rem;
  overflow: hidden;
}

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

.hero-content .eyebrow {
  color: var(--accent);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
}

.hero-stat {
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  flex: 1;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.4rem;
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  max-width: 320px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border: 4px solid rgba(255,255,255,0.15);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* =========================================
   PROBLEM CARDS
   ========================================= */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--accent);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
}

/* Stat Banner */
.stat-banner {
  margin-top: 2rem;
}

.stat-banner-inner {
  background: var(--primary-dark);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.stat-banner-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-banner-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto;
}


/* =========================================
   FEATURE CARDS (SOLUTION)
   ========================================= */

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

.feature-card {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid transparent;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
}


/* =========================================
   DEMO SECTION
   ========================================= */

.demo-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 4rem;
  align-items: center;
}

.browser-mockup {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
}

.browser-bar {
  background: #f1f1f1;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28ca41; }

.browser-url {
  background: var(--white);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-text);
  flex: 1;
  margin-left: 0.5rem;
}

.browser-content img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.demo-content .eyebrow {
  margin-bottom: 0.75rem;
}

.demo-content h2 {
  margin-bottom: 1rem;
}

.demo-content > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.checklist {
  list-style: none;
  margin-bottom: 2rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.checklist li::before {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}


/* =========================================
   PROCESS TIMELINE
   ========================================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

/* Connector line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: var(--gray-light);
  z-index: 0;
}

.process-step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 0.75rem;
}

.process-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--accent);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}


/* =========================================
   TRUST CARDS
   ========================================= */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.trust-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  margin-bottom: 1.25rem;
}

.trust-card h3 {
  margin-bottom: 0.75rem;
}

.trust-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
}

/* Testimonial */
.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 4px solid var(--accent);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--gray-text);
  margin-bottom: 1.25rem;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-dark);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray-text);
}


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

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-dark);
  transition: color var(--transition-fast);
  font-family: var(--font-body);
}

.faq-question:hover h3 {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  line-height: 1;
  width: 24px;
  text-align: center;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-text);
}


/* =========================================
   CTA FINAL
   ========================================= */

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.whatsapp-box {
  background: var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
}

.whatsapp-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.whatsapp-box > p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.whatsapp-steps {
  margin-bottom: 2rem;
}

.whatsapp-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  color: var(--white);
  font-size: 0.95rem;
}

.whatsapp-step-number {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Lead Form */
.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
}

.lead-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 57, 211, 0.1);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--gray-text);
}

.lead-form textarea {
  resize: vertical;
  min-height: 80px;
}

.lead-form .btn {
  margin-top: 0.5rem;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--gray-text);
  margin-top: 0.75rem;
  text-align: center;
}

.form-privacy a {
  color: var(--gray-text);
  text-decoration: underline;
}

.form-privacy a:hover {
  color: var(--accent);
}


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

.landing-footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 2rem;
  gap: 2rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand .logo span {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}


/* =========================================
   FLOATING ELEMENTS
   ========================================= */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.whatsapp-float.bounce {
  animation: whatsapp-bounce 0.6s ease;
}

.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background var(--transition-normal);
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--accent);
}


/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.problem-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.problem-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }

.features-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-up:nth-child(4) { transition-delay: 0.15s; }
.features-grid .fade-up:nth-child(5) { transition-delay: 0.25s; }
.features-grid .fade-up:nth-child(6) { transition-delay: 0.35s; }

.process-steps .fade-up:nth-child(2) { transition-delay: 0.1s; }
.process-steps .fade-up:nth-child(3) { transition-delay: 0.2s; }
.process-steps .fade-up:nth-child(4) { transition-delay: 0.3s; }

.trust-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.trust-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-grid {
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 782px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-light);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav .nav-anchor {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
    width: 100%;
  }

  .header-nav .nav-anchor:last-child {
    border-bottom: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .eyebrow {
    text-align: center;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 0;
    width: 100%;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .hero-mockup {
    order: -1;
  }

  .phone-frame {
    max-width: 220px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .problem-grid,
  .features-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-brand p {
    max-width: none;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }

  .whatsapp-box,
  .lead-form {
    padding: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lead-form input,
  .lead-form textarea {
    font-size: 16px; /* prevent iOS zoom */
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .scroll-top {
    bottom: 74px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}
