/* Custom Variables */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
    padding-top: 90px; /* Compensar navbar fixed */
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--muted-color);
}

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

.hero-image {
    position: relative;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: inline-block;
    padding: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-color);
    margin-bottom: 3rem;
}

/* Features Section */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--muted-color);
    line-height: 1.6;
}

/* About Section */
.about-image {
    position: relative;
}

.about-icon {
    font-size: 12rem;
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--muted-color);
    font-weight: 500;
}

/* Pricing Section */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1.125rem;
    color: var(--muted-color);
}

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

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features i {
    font-size: 1.125rem;
}

/* Survey Section */
.survey-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.question-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.question-group:last-child {
    border-bottom: none;
}

.question-group h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.5;
}

.form-check {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    line-height: 1.5;
    word-break: break-word;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Improve textarea appearance */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Better spacing for checkbox groups */
.question-group .form-check:last-child {
    margin-bottom: 0;
}

/* Input group styling for "other" options */
.form-check input[type="text"] {
    margin-top: 0.5rem;
    margin-left: 0;
}

/* Contact Section */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    font-size: 3rem;
    display: block;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info p {
    color: var(--muted-color);
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */

/* Large devices (desktops) - maintain original design */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
        line-height: 1.1;
    }
    
    .hero-content .lead {
        text-align: center;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .about-icon {
        font-size: 8rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .survey-form,
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    body {
        padding-top: 70px; /* Navbar menor em mobile */
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .question-group {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .question-group h5 {
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .about-stats .row {
        text-align: center;
    }
}

/* Extra small devices (portrait phones, 576px and down) */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.25rem;
    }
    
    .survey-form,
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .question-group h5 {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    .demo-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .demo-header h1 {
        font-size: 1.75rem;
    }
    
    .pricing-header h3 {
        font-size: 1.25rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hero-section {
        padding-top: 4rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* Very small devices (320px and down) */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .survey-form,
    .contact-form {
        padding: 0.75rem;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1rem;
    }
    
    .demo-header {
        padding: 1rem;
    }
    
    .demo-header h1 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
