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

/* Laptop screens - ensure hero fits and floating cards visible */
@media (min-width: 1025px) and (max-width: 1279px) {
    .hero {
        padding: 5.5rem 0 1.5rem;
    }

    .hero-visual {
        overflow: visible;
    }

    .phone-frame {
        width: 260px;
    }

    .whatsapp-chat {
        height: 450px;
    }

    .floating-cards {
        overflow: visible;
    }

    .card-voice {
        left: -40px;
        top: 15%;
    }

    .card-web {
        left: -30px;
        bottom: 15%;
    }

    .card-whatsapp {
        right: -40px;
        top: 20%;
    }

    .hero-ctas {
        margin-bottom: 2rem;
    }

    .hero-stats {
        padding-top: 1.5rem;
    }
}

/* Standard laptop/desktop screens */
@media (min-width: 1280px) and (max-width: 1440px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-visual {
        overflow: visible;
    }

    .phone-frame {
        width: 280px;
    }

    .whatsapp-chat {
        height: 500px;
    }

    .floating-cards {
        overflow: visible;
    }

    .card-voice {
        left: -50px;
    }

    .card-web {
        left: -40px;
    }

    .card-whatsapp {
        right: -50px;
    }
}

/* Large desktop screens */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .hero-content {
        gap: 6rem;
    }

    .floating-cards {
        overflow: visible;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-visual {
        margin-top: 3rem;
    }

    .floating-cards {
        display: none;
    }

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

    .solutions-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .solution-card.featured {
        transform: none;
    }

    .solution-card.featured:hover {
        transform: translateY(-5px);
    }

    .how-preview-content {
        grid-template-columns: 1fr;
    }

    .how-preview-visual {
        order: -1;
        margin-bottom: 2rem;
    }

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

    .testimonials-grid {
        flex-direction: column;
        align-items: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonial-card {
        max-width: 100%;
    }

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

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

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline-step {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .timeline-step .step-content {
        text-align: left;
        order: 2 !important;
    }

    .timeline-step .step-visual {
        display: none;
    }

    .step-number-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }

    .nav-links.active,
    .nav-cta.active {
        display: flex;
    }

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

    .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);
    }

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .phone-frame {
        width: 280px;
    }

    .whatsapp-chat {
        height: 420px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

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

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

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .page-header {
        padding: 8rem 0 4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

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

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .problem-card,
    .benefit-card,
    .feature-card {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .integration-items {
        flex-wrap: wrap;
    }

    .integration-item {
        width: 70px;
        height: 70px;
    }

    .integration-item img {
        width: 50px;
        height: 50px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== UTILITIES ===== */
.mt-1 {
    margin-top: 0.5rem;
}

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

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

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.text-muted {
    color: var(--gray-500);
}

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

.bg-gray {
    background: var(--gray-50);
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.thank-you-content h1 {
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===== 404 PAGE ===== */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h1 {
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===== TIMELINE WEEKS RESPONSIVE ===== */

/* Tablet and below - stack vertically */
@media (max-width: 992px) {
    .timeline-weeks {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .week-card {
        min-width: 100%;
        max-width: 500px;
    }

    .week-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .timeline-weeks {
        gap: 0.75rem;
    }

    .week-card {
        padding: 1.5rem;
        min-width: 100%;
    }

    .week-header h3 {
        font-size: 1.1rem;
    }

    .week-tasks li {
        font-size: 0.875rem;
        padding: 0.4rem 0;
    }

    .week-arrow {
        font-size: 1.25rem;
        margin: 0.25rem 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .week-card {
        padding: 1.25rem;
    }

    .week-number {
        font-size: 0.7rem;
    }

    .week-header h3 {
        font-size: 1rem;
    }
}

/* Large screens - ensure horizontal layout with proper spacing */
@media (min-width: 993px) {
    .timeline-weeks {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 0;
    }

    .week-card {
        flex: 1;
        max-width: 320px;
    }

    .week-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
        font-size: 2rem;
        color: var(--primary);
    }
}