@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23cbd5e1" opacity="0.5"/><circle cx="40" cy="40" r="2" fill="%23cbd5e1" opacity="0.5"/><circle cx="60" cy="60" r="2" fill="%23cbd5e1" opacity="0.5"/><circle cx="80" cy="80" r="2" fill="%23cbd5e1" opacity="0.5"/></svg>') repeat;
    z-index: 1;
}

.hero-logo {
    position: relative;
    z-index: 2;
}

.logo {
    height: 60px;
    width: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    background: #002DD3;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    margin-top: 20px;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Services Section */
.services {
    background: white;
    padding: 40px 0 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-tag {
    background: #60a5fa;
    color: white;
    border: none;
    padding: 3px 25px 3px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-tag:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.hero h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
}

.services h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
    text-align: center;
}

.highlight {
    color: #002DD3;
}

.services-description {
    font-size: 20px;
    font-weight: 300;
    color: #64748b;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.credit-card {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.services-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 20px;
}

.feature-content p {
    color: #64748b;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Mobile App Section */
.mobile-app {
    background: #f8fafc;
    padding: 40px 0 40px 0;
}

.mobile-app h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
    text-align: center;
}

.mobile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mobile-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.footer-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.2;
}

.footer-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.hero-title h1 {
    font-size: 3rem;
    font-weight: 500;
}

.hero-title {
    margin-bottom: 40px;
}

.hero-description {
    font-size: 20px;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .logo {
        height: 50px;
        width: auto;
        margin-bottom: 10px;
    }
    
    .hero-title {
        order: 1 !important;
        text-align: center;
        margin-bottom: 0px;
        padding: 20px 15px 0 15px;
    }
    
    .hero-title h1 {
        font-size: 25px;
        font-weight: 400;
    }
    
    .hero-image {
        order: 2 !important;
        text-align: center;
        margin-bottom: 0px;
        margin-top: 0px;
    }
    
    .hero-description {
        font-size: 18px;
        font-weight: 300;
        order: 3 !important;
        text-align: center;
        padding: 0 15px 0 15px;
        margin-top: 0px;
    }
    
    .services-description {
        font-size: 18px;
        font-weight: 300;
        order: 3 !important;
        text-align: center;
        padding: 0 15px 0 15px;
        margin-top: 0px;
    }
    
    .services-content,
    .mobile-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero h2,
    .services h2,
    .mobile-app h2 {
        font-size: 2rem;
        font-weight: 500;
    }
    
    .footer-content h2 {
        font-size: 2rem;
        font-weight: 500;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 30px 0 60px 0;
    }
    
    .services,
    .mobile-app,
    .footer {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
        font-weight: 500;
    }
    
    .hero h2,
    .services h2,
    .mobile-app h2 {
        font-size: 1.8rem;
        font-weight: 500;
    }
    
    .footer-content h2 {
        font-size: 1.8rem;
        font-weight: 500;
    }
    
    .cta-button {
        width: 100%;
        padding: 14px 24px;
    }
    
    .hero {
        padding: 20px 0 40px 0;
    }
    
    .section-tag {
        font-size: 0.9rem;
    }
}

/* --- Fix: Reorder hero elements on tablets & mobile --- */
@media (max-width: 991.98px) {
  .hero-content {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "desc";
    gap: 20px;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  /* “Achata” a primeira coluna (onde ficam título e descrição) para deixar
     os filhos participarem do grid e poderem ser reordenados */
  .hero-content > .col-12:first-child {
    display: contents;
  }

  .hero-title { grid-area: title; }
  .hero-image { grid-area: image; }
  .hero-description { grid-area: desc; }

  .hero-description .cta-button { width: 100%; }
}

/* --- Features: ícone acima do texto (tablet e mobile) --- */
@media (max-width: 991.98px) {
  .services-content {
    grid-template-columns: 1fr;      /* garante 1 coluna também em tablet */
    gap: 40px;
    text-align: center;
  }

  .services-features {
    align-items: center;              /* centraliza a coluna de features */
  }

  .feature {
    display: flex;
    flex-direction: column;           /* ícone em cima, texto embaixo */
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .feature-icon {
    margin: 0 0 10px 0;               /* espaço entre ícone e texto */
  }

  .feature-content h3 {
    margin-bottom: 6px;
  }

  .services .cta-button {
    width: 100%;
    max-width: 520px;                 /* botão bonito no centro */
  }
}

/* --- Reorder mobile-app section on tablets & mobile (match your HTML) --- */
@media (max-width: 991.98px) {
  .mobile-content {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "features";
    gap: 24px;
    justify-items: center;
    text-align: center;
  }

  /* mapear os elementos corretos */
  .mobile-image { grid-area: image; }
  .mobile-content .services-features {
    grid-area: features;
    align-items: center;
  }

  /* deixa as features bonitas empilhadas no mobile */
  .mobile-content .services-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .mobile-content .services-features .feature-icon {
    margin: 0 0 10px 0;
  }

  /* botão full width */
  .mobile-app .cta-button {
    width: 100%;
    max-width: 520px;
  }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ou center se quiser centralizado */
    gap: 4px; /* espaçamento entre título e subtítulo */
    padding: 32px 48px 0 32px; /* mais espaço para o botão */
    position: relative;
    text-align: left; /* ou center */
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #475569;
    transform: scale(1.1);
}

.modal-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 22px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    padding: 24px 32px 32px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #002DD3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 45, 211, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: #002DD3;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label a {
    color: #002DD3;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #002DD3 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 45, 211, 0.3);
    font-family: inherit;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 45, 211, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    text-align: center;
    padding: 40px 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.success-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.success-button {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-button:hover {
    background: #e2e8f0;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 24px 24px 0 24px;
    }

    .modal-body {
        padding: 20px 24px 24px 24px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 12px 14px;
    }

    .submit-button {
        padding: 14px 20px;
    }
}