/* ========================================
   CuteWeb Payroll Landing Page - Styles
   ======================================== */

/* --- Root Variables --- */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --dark: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --success: #10B981;
    --gradient: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    --shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Sticky Navbar --- */
.navbar {
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 4px;
    transition: color 0.3s;
}

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

.btn-nav-cta {
    background: var(--gradient);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    color: #fff !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 50%, #F0F9FF 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.hero-stat h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.hero-device-wrapper {
    position: relative;
    text-align: center;
}

.hero-device-img {
    max-height: 480px;
    width: auto;
    filter: drop-shadow(0 30px 60px rgba(79, 70, 229, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

.hero-device-badge {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-device-badge i {
    font-size: 1.3rem;
}

.badge-top {
    top: 10%;
    right: -10px;
    color: var(--success);
    animation: slideInRight 1s ease 0.5s both;
}

.badge-bottom {
    bottom: 15%;
    left: -10px;
    color: var(--secondary);
    animation: slideInLeft 1s ease 0.8s both;
}

/* --- CTA Buttons --- */
.btn-cta {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.btn-cta-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.btn-cta-white {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    color: var(--primary);
}

/* --- Lead Form Section --- */
.lead-section {
    background: var(--light);
}

.lead-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.lead-form-card .form-control {
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    border: 2px solid #E2E8F0;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lead-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.lead-form-card .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.btn-submit {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
    color: #fff;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray);
}

.trust-badge i {
    color: var(--success);
}

/* --- Features Section --- */
.features-section {
    background: #fff;
}

.feature-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 35px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(79, 70, 229, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}

.feature-icon.blue {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.feature-icon.cyan {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.feature-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.92rem;
    margin: 0;
}

/* --- Benefits Section --- */
.benefits-section {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.benefit-item h6 {
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.benefits-image {
    max-width: 100%;
    border-radius: var(--radius);
}

/* --- How It Works --- */
.howitworks-section {
    background: #fff;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    position: relative;
    z-index: 2;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.step-connector {
    position: absolute;
    top: 55px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
    z-index: 1;
}

/* --- Device Preview --- */
.device-section {
    background: var(--light);
}

.device-preview-img {
    max-height: 450px;
    width: auto;
    filter: drop-shadow(0 20px 50px rgba(79, 70, 229, 0.15));
}

.device-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 18px 22px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.device-feature:hover {
    transform: translateX(8px);
}

.device-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.device-feature h6 {
    font-weight: 700;
    margin-bottom: 2px;
}

.device-feature p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

/* --- Testimonials --- */
.testimonials-section {
    background: #fff;
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.3s;
}

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

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    font-weight: 700;
    margin-bottom: 0;
}

.testimonial-author small {
    color: var(--gray);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -250px;
    right: -100px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 40px 0 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

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

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

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

/* --- Modal --- */
.modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 20px 28px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* --- Alert --- */
.form-alert {
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-weight: 500;
    display: none;
}

/* --- Spinner --- */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* --- Responsive --- */

/* Tablet & below: shared resets */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        display: block;
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .hero-device-img {
        max-height: 350px;
        margin-top: 1rem;
    }

    .hero-device-badge {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step-connector {
        display: none;
    }

    .device-preview-img {
        max-height: 320px;
    }

    .benefits-image {
        max-height: 350px !important;
    }

    .btn-cta,
    .btn-cta-outline {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 15px 20px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse .btn-nav-cta {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }

    /* Disable scroll animations on tablet/mobile to prevent layout shift */
    .fade-up,
    .fade-left,
    .fade-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 5px 14px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .hero-device-img {
        max-height: 280px;
        margin-top: 0;
    }

    .hero-device-wrapper {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }

    .btn-cta,
    .btn-cta-outline {
        display: flex;
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .lead-form-card {
        padding: 25px 20px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .btn-cta-white {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .trust-badges {
        gap: 0.8rem;
    }

    .trust-badge {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .device-feature {
        padding: 14px 16px;
    }

    .device-feature:hover {
        transform: none;
    }

    .device-preview-img {
        max-height: 260px;
        margin-bottom: 2rem;
    }

    .testimonial-card {
        padding: 22px;
    }

    .benefit-item {
        margin-bottom: 1.2rem;
    }

    .benefits-section .section-title,
    .benefits-section .section-subtitle {
        text-align: left;
    }

    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .footer {
        text-align: center;
    }

    .footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
        padding: 0 15px;
    }

    .cta-buttons .btn-cta-white {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile portrait */
@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .hero-section {
        padding-top: 75px;
        padding-bottom: 10px;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .hero-badge {
        margin-bottom: 0.8rem;
    }

    .hero-stats {
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .hero-stat h3 {
        font-size: 1.3rem;
    }

    .hero-stat p {
        font-size: 0.75rem;
    }

    .hero-device-img {
        max-height: 220px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 36px !important;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 2rem;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .step-card {
        padding: 20px 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.88rem;
    }

    .lead-form-card {
        padding: 20px 16px;
    }

    .device-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .benefit-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }
}
