:root {
    --text-primary: #1D1D1F;
    --text-secondary: #5e5e63;
    /* WCAG AA Compliant */
    --bg-body: #FAFAFA;
    --bg-white: #FFFFFF;
    --accent: #2997ff;
    /* Better blue */
    --accent-hover: #0077ED;
    --border-light: #d2d2d7;
    /* Removed heavy shadows, replaced with subtle depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Softer */
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
    /* Softer */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    padding-top: 60px;
    letter-spacing: -0.011em;
    /* Apple typography tweak */
    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* Typography Hierarchy */
.shelf-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient {
    /* Gradient removed for Apple design compliance - focusing on clean hierarchy */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

/* Section Styling */
.section-pro {
    padding: 120px 0;
    /* Expanded spacing */
}

@media (max-width: 768px) {
    .section-pro {
        padding: 60px 0;
    }
}

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

/* Hero Improvements - Apple Style */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero #logo {
    /* Large Logo as requested */
    width: auto;
    height: 60px;
    /* Reduced from 80px */
    margin-bottom: 0;
    /* Tight spacing to H1 */
    transition: transform 0.5s ease-out;
}

/* Eyebrow / Label - Apple Spec */
/* Hero Headline - Apple Spec (28px - Fine) */
.hero h1 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    /* Fine/Light */
    letter-spacing: .007em;
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    color: #1d1d1f;
    margin: 6px auto 32px;
    text-align: center;
    max-width: 900px;
    opacity: 0;
    /* JS Animation will reveal */
}

/* Gradient Text Effect for "Estado da Arte" (Optional) */
.text-gradient-hero {
    background: linear-gradient(135deg, #1d1d1f 30%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #86868b;
    line-height: 1.5;
    max-width: 680px;
    margin: 40px auto 32px auto;
    letter-spacing: -0.01em;
    opacity: 0;
}

/* Hero Buttons */
.hero-actions {
    opacity: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.btn-primary.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 980px;
}


.btn-primary:hover {
    transform: none;
    background: var(--accent-hover);
    box-shadow: none;
}

.btn-primary:active,
.btn-primary:focus:active {
    transform: scale(0.98);
    background: var(--accent-hover);
    box-shadow: none !important;
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.2) !important;
}

/* Fix MDB Ripple conflict - GLOBAL KILL */
.ripple-wave {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ensure button doesn't hide */
.btn.ripple-surface {
    display: inline-block !important;
    /* Restore button display if mistakenly hidden */
    visibility: visible !important;
    opacity: 1 !important;
}

.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Benefit Cards - Subtle & Proportioned */
.benefit-card {
    background: var(--bg-white);
    border: none;
    /* Removed border */
    border-radius: 24px;
    /* More rounded */
    padding: 40px;
    /* Generous padding */
    transition: background-color 0.2s ease;
    height: 100%;
    /* Minimal or no shadow */
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: none;
    /* No translation */
    box-shadow: var(--shadow-md);
    /* border-color removed */
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Benefit Card 2 (Transformation Benefits) - Narrower */
.container-benefit {
    max-width: 800px;
    margin: 80px auto;
}

.benefit-card2 {
    background: var(--bg-white);
    border-left: none;
    /* Remove border accent */
    border-radius: 18px;
    padding: 24px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    /* Center align items */
}

.benefit-card2:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.benefit-card2 i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-right: 14px;
    margin-top: 2px;
}

.benefit-card2 h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.benefit-card2 p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Apple-Style Carousel Implementation */
.card-shelf {
    padding: 80px 0;
    background: #fbfbfd;
}

.card-shelf .shelf-title {
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.carousel-container-relative {
    position: relative;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 45%;
    /* Slightly higher to center on card visual center */
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #1d1d1f;
    opacity: 0;
    pointer-events: none;
    font-size: 1.2rem;
}

.carousel-container-relative:hover .carousel-nav {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.0);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-nav.prev {
    left: 2%;
}

.carousel-nav.next {
    right: 2%;
}

/* Ensure visible on touch if needed, or hide if swipe is preferred. 
   Usually swipe is better on mobile, buttons on desktop. */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav {
        display: none;
    }
}

.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 5vw;
    display: flex;
    justify-content: flex-start;
}

/* Center content if it fits screen width - Safe method */
.carousel-wrapper {
    /* justify-content center removed to prevent cutoff on overflow */
    justify-content: flex-start;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.card-scroller {
    display: flex;
    gap: 40px;
    padding: 0 5vw;
    width: max-content;
    margin: 0 auto;
    /* Centers the content block itself if it fits */
}

.card-link {
    text-decoration: none;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.card2 {
    width: 340px;
    /* Slightly wider */
    height: 480px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: var(--shadow-md);
    /* Subtle shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    transform-origin: center center;
}

.card2 .card-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card2 .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    padding: 30px 24px;
    color: #fff;
    backdrop-filter: blur(2px);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.card2 .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card2 .card-description {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* Hover Effects - Scale Up */
.card-link:hover .card2 {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Softer deep shadow */
}

.card-link:hover .card-img {
    transform: scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 991px) {

    /* Mobile Carousel - 2 Column Grid (YouTube Shorts Style) */

    .carousel-wrapper {
        overflow: visible;
        /* Allow grid to show fully */
        padding-bottom: 0;
        scroll-snap-type: none;
        /* Disable scroll snap for grid */
        display: block;
        /* Reset flex */
        justify-content: flex-start;
    }

    .card-scroller {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* Tight gap */
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .card-link {
        width: 100%;
        scroll-snap-align: none;
    }

    .card2 {
        width: 100%;
        /* Fluid width */
        height: auto;
        aspect-ratio: 9 / 16;
        /* Shorts Ratio */
        border-radius: 4px;
        /* Slightly tighter radius for small cards */
    }

    .card2 .card-title {
        font-size: 1.1rem;
        /* Smaller text */
        margin-bottom: 4px;
    }

    .card2 .card-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .card2 .card-overlay {
        padding: 15px 12px;
        /* Tighter padding */
    }

    /* Hide Navigation Arrows on Mobile */
    .carousel-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Adjustments inherited from above */
}

/* Video Elements - Professional radius everywhere */
lite-youtube,
.ytvideo,
.hero lite-youtube,
.plyr__video-embed {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
}

.plyr__video-embed iframe,
.plyr__video-embed video {
    width: 100%;
    height: 100%;
}

.video-item {
    margin-bottom: 24px;
}

.video-title {
    font-size: 0.9rem;
    margin-top: 12px;
}

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

/* Feature Table - Minimalist */
#plans-comparison {
    background: transparent;
    /* Seamless */
    padding: 80px 0;
}

#plans-comparison .container {
    max-width: 800px;
}

#plans-comparison .table {
    border-radius: 0;
    box-shadow: none;
    border: none;
    font-size: 15px;
    /* Larger text */
    table-layout: fixed;
    background: transparent;
}

#plans-comparison thead th:first-child {
    width: 50%;
}

#plans-comparison thead th:not(:first-child) {
    width: 25%;
    text-align: center;
}

#plans-comparison thead th {
    background: transparent;
    font-weight: 600;
    padding: 16px 8px;
    border-bottom: 2px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-primary);
    border-top: none;
}

#plans-comparison tbody td,
#plans-comparison tbody th {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    align-content: center;
}

#plans-comparison tbody td {
    text-align: center;
}

#plans-comparison tbody td i {
    font-size: 1rem;
}

/* Contact Form */
#demo-form {
    border-radius: 4px;
    box-shadow: none;
    padding: 0 !important;
    /* Seamless with section */
    border: 0px;
    background: transparent;
}

#demo-form .form-control {
    border-radius: 4px;
    font-size: 1rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    box-shadow: none;
}

#demo-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

/* Workflow Section */
.workflow-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.canvas-workflow {
    position: relative;
}

.card-workflow {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.stage-workflow {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 104px;
    position: relative;
    min-height: 200px;
}

@media (max-width: 760px) {
    .stage-workflow {
        flex-direction: column;
        align-items: center;
    }
}

.box-workflow {
    flex: 1;
    max-width: 280px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.box-workflow .subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.box-workflow .icon-workflow {
    width: 100%;
    height: 100px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.box-workflow .icon-workflow img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.box-workflow .icon-workflow.emoji {
    font-size: 3rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.box-workflow .title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.legend-workflow {
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* SVG Overlay for animated arrows */
.overlay-workflow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Animated flow lines */
.flow-workflow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: flowDash linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -24;
    }
}

/* Clients/Partners Sections - Original Color Scheme */
.section-logos {
    padding: 60px 0;
}

/* Clientes section - Blue background */
.section-logos#clientes {
    background: rgb(28, 108, 166);
}

.section-logos#clientes .section-title,
.section-logos#clientes .section-subtitle {
    color: #ffffff;
}

/* Parceiros section - White background */
.section-logos#parceiros {
    background: #ffffff;
    box-shadow: inset 0 1px 0 var(--border-light);
}

.section-logos#parceiros .section-title {
    color: var(--text-primary);
}

.section-logos#parceiros .section-subtitle {
    color: var(--text-secondary);
}

.section-logos .container {
    max-width: 1000px;
}

.section-logos .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.section-logos .section-subtitle {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 30px;
    align-items: center;
    justify-items: center;
    padding: 0 20px;
}

.client-logo,
.partner-logo {
    max-height: 85px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

/* YouTube Facade */
.youtube-facade {
    position: relative;
    width: 100%;
    /* Enforce 16:9 Aspect Ratio */
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
    cursor: pointer;
    background-color: #000;
    overflow: hidden;
    border-radius: 12px;
}

.youtube-facade img,
.youtube-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.youtube-facade img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.youtube-facade:hover img {
    opacity: 1;
}

.youtube-facade .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: transparent;
    border: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="%232997ff"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    cursor: pointer;
    z-index: 2;
}

/* Modern Cookie Banner - Glassmorphism */
.cookie-card {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 400px;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: none;
    /* Controlled by JS */
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-icon {
    font-size: 24px;
    color: var(--accent);
}

.cookie-text h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-secondary);
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Mobile Responsiveness for Cookie Banner */
@media (max-width: 576px) {
    .cookie-card {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        /* Sheet-like on mobile */
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .cookie-actions {
        flex-direction: column-reverse;
        /* Primary button on top */
    }

    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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