/* ============================================================
   Apurao - Custom SaaS Design (Rallye Inspired)
   ============================================================ */

:root {
    --primary: #1A6DFD;
    --primary-hover: #1255CC;
    --primary-subtle: #E8F0FF;
    --dark: #121212;
    --dark-secondary: #1F1F1F;
    --light: #F8FAFC;
    --muted: #64748B;
    --muted-light: #94A3B8;
    --body-bg: #FFFFFF;
    --border-color: #E2E8F0;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--dark);
}

/* ── Typography & Utils ── */
.text-primary {
    color: var(--primary);
}

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

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

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

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

.section-padding {
    padding: 80px 0;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 120px 0;
    }
}

/* ── Buttons ── */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    /* Fully rounded buttons */
    transition: all 0.2s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

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

.btn-outline-custom:hover {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

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

.btn-outline-dark:hover {
    border-color: var(--dark);
    color: var(--dark);
}

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

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

/* ── Navigation ── */
.navbar-brand img {
    height: 32px;
}

.nav-link-custom {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    padding: 8px 16px;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── Custom Navbar (Sticky & Transparent) ── */
.custom-navbar {
    background-color: transparent !important;
    border-bottom: 1px solid transparent !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ── Hero Section ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-subtle);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-mockup-container {
    margin-top: 60px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: white;
}

.hero-mockup-img {
    width: 100%;
    transform: scale(1.15);
    /* Zoom to remove white borders */
    transform-origin: top center;
}

/* ── Stats Strip (Black) ── */
.stats-strip {
    background-color: var(--dark);
    color: white;
    padding: 60px 0;
}

.stats-title {
    font-size: 32px;
    color: white;
    margin: 0;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: white;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--muted-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ── Features ── */
.section-badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 16px;
    background: var(--light);
    border-radius: 100px;
}

.section-heading {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

.feature-card {
    background-color: var(--light);
    border-radius: var(--radius-md);
    padding: 40px;
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-card-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

/* Wide feature (Map) */
.feature-wide {
    background-color: var(--light);
    border-radius: var(--radius-md);
    padding: 60px;
    margin-top: 24px;
    text-align: center;
}

.feature-wide img {
    max-width: 100%;
    margin-top: 40px;
}

/* ── Testimonials ── */
.testimonial-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    background: white;
    height: 100%;
}

.testimonial-logo {
    height: 24px;
    margin-bottom: 24px;
}

.testimonial-quote {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.testimonial-author {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--muted-light);
}

/* ── Bottom CTA ── */
.cta-block {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.cta-title {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-mockup-wrapper {
    transform: translateY(40px);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: white;
}

.cta-mockup-wrapper img {
    width: 100%;
    transform: scale(1.15);
    /* Zoom to remove white borders */
    transform-origin: top center;
}

.mockup-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    border: 1px solid var(--border-color);
}

.mockup-wrapper img {
    width: 100%;
    transform: scale(1.15);
    /* Zoom in to remove white padding */
    transform-origin: center center;
}

/* ── FAQ ── */
.faq-left h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
}

.faq-accordion .accordion-button {
    background: transparent;
    padding: 24px 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: transparent;
}

.faq-accordion .accordion-body {
    padding: 0 0 24px 0;
    color: var(--muted);
    font-size: 15px;
}

/* Replace bootstrap arrow with custom plus/minus if needed, or rely on default */

/* ── Footer ── */
.footer-dark {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-logo {
    height: 28px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted-light);
}

.footer-social a {
    color: var(--muted-light);
    font-size: 18px;
    margin-left: 16px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: white;
}

/* -- Mobile Utilities -- */
@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        z-index: 1000;
    }

    .navbar {
        position: relative;
    }
}

/* ============================================================
   NEW Base SaaS Layout Additions
   ============================================================ */

/* ── Grid Background ── */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-position: top center;
}

/* ── Hero Split Layout ── */
.hero-split {
    text-align: left;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-split .hero-title {
    margin: 0 0 24px 0;
    max-width: 100%;
}

.hero-split .hero-subtitle {
    margin: 0 0 40px 0;
    max-width: 100%;
}

.hero-dashboard-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-dashboard-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ── Logo Strip ── */
.logo-strip {
    background-color: var(--primary);
    padding: 30px 0;
    color: white;
}
.logo-strip-item {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    opacity: 0.8;
    margin: 0 20px;
}

/* ── Feature Split Section ── */
.feature-split-section {
    padding: 100px 0;
}
.feature-split-text {
    padding-right: 40px;
}
.feature-split-img-wrapper {
    background-color: var(--primary-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-split-img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 15px;
}
.check-list .check-icon {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
}

/* ── Integrations Grid ── */
.integrations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 60px auto 0;
}
.integration-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-size: 32px;
    color: var(--primary);
    transition: transform 0.2s;
}
.integration-icon:hover {
    transform: translateY(-5px);
}

/* ── Inline Avatar CTA ── */
.inline-cta {
    background: var(--light);
    border-radius: 100px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 60px auto;
    max-width: 1000px;
}
.avatar-group {
    display: flex;
}
.avatar-group img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -15px;
}
.avatar-group img:first-child {
    margin-left: 0;
}

/* ── Masonry Testimonials ── */
.masonry-grid {
    column-count: 1;
    column-gap: 24px;
}
@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (min-width: 992px) {
    .masonry-grid {
        column-count: 3;
    }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.stars {
    color: #F59E0B;
    margin-bottom: 16px;
}
.testimonial-user {
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.testimonial-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

/* ── Pricing Cards ── */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.pricing-card.popular {
    border-color: #2563eb;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.pricing-card .price span {
    font-size: 1.125rem;
    font-weight: 500;
    color: #64748b;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.feature-list li {
    padding: 0.75rem 0;
    color: #334155;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #2563eb;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* ── Contacto ── */
.contact-box {
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

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

/* ── Legal ── */
.legal-box {
    border-radius: 16px;
    padding: 3rem 4rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.legal-content p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .legal-box {
        padding: 2rem;
    }
}