/* ====================================================
   SAÚDE INTELIGENTE — Site de apresentação
   Tema claro · Design system inspirado nas cores da marca
   ==================================================== */

/* -------- VARIÁVEIS / DESIGN TOKENS -------- */
:root {
    /* Cores principais (extraídas da logo) */
    --primary: #2d3a8c;         /* Azul escuro da logo */
    --primary-dark: #1f2a6b;
    --primary-light: #4856b8;

    --secondary: #2ec4b6;       /* Verde água */
    --secondary-dark: #1ea99c;

    --accent: #8b5cf6;          /* Roxo da logo */
    --accent-dark: #7c3aed;

    --gradient-brand: linear-gradient(135deg, #2d3a8c 0%, #5b6dd8 35%, #8b5cf6 70%, #2ec4b6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(45, 58, 140, 0.08), rgba(139, 92, 246, 0.08), rgba(46, 196, 182, 0.08));

    /* Neutros (tema claro) */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-card: #ffffff;
    --bg-section: #fafbff;

    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 30px 80px rgba(45, 58, 140, 0.18);
    --shadow-glow: 0 10px 40px rgba(139, 92, 246, 0.25);

    /* Layout */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --container: 1240px;
    --header-h: 78px;

    /* Tipografia */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* -------- RESET -------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* -------- BOTÕES -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    font-family: var(--font-display);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* -------- HEADER -------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 8px 14px;
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--bg-soft);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.btn-header {
    padding: 11px 20px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: var(--primary);
    color: white;
}

/* -------- HERO -------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 58, 140, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 58, 140, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 18s infinite ease-in-out;
}

.hero-orb-1 {
    width: 480px;
    height: 480px;
    background: #5b6dd8;
    top: -120px;
    left: -120px;
}

.hero-orb-2 {
    width: 520px;
    height: 520px;
    background: #2ec4b6;
    top: 20%;
    right: -180px;
    animation-delay: -6s;
}

.hero-orb-3 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -100px;
    left: 30%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(46, 196, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--primary);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    height: 520px;
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.hero-card-main {
    width: 100%;
    max-width: 460px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #f87171; }
.dots span:nth-child(2) { background: #fbbf24; }
.dots span:nth-child(3) { background: #4ade80; }

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
}

.hero-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: 12px;
}

.mini-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.mini-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    font-family: var(--font-display);
}

.mini-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-top: 10px;
    padding: 0 4px;
}

.bar {
    flex: 1;
    height: var(--h);
    background: var(--gradient-brand);
    border-radius: 6px 6px 0 0;
    animation: barRise 1s ease-out;
    transform-origin: bottom;
}

@keyframes barRise {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.hero-card-float-1, .hero-card-float-2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-md);
    animation: floatY 5s ease-in-out infinite;
}

.hero-card-float-1 {
    top: 6%;
    right: -20px;
    animation-delay: -1s;
}

.hero-card-float-2 {
    bottom: 8%;
    left: -10px;
    animation-delay: -3s;
}

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

.hero-float-icon {
    font-size: 1.4rem;
}

.float-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.float-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* -------- TRUST -------- */
.trust {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.trust-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 40px;
}

.trust-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--primary);
}

.trust-logo i {
    font-size: 1.3rem;
}

/* -------- SEÇÕES (header padrão) -------- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.badge-light {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* -------- MÓDULOS / CARROSSEL -------- */
.modules {
    background: var(--bg-section);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 calc((100% - 48px) / 3);
    background: white;
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.slide-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 22px;
    box-shadow: var(--shadow-md);
}

.slide h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.slide p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.96rem;
    line-height: 1.65;
    flex-grow: 1;
}

.slide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.slide-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slide-list i {
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    font-size: 1.05rem;
    transition: all 0.25s ease;
    z-index: 10;
    border: 1px solid var(--border-light);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: -10px;
}

.carousel-next {
    right: -10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot.active {
    width: 32px;
    border-radius: 5px;
    background: var(--gradient-brand);
}

/* -------- FUNCIONALIDADES -------- */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    background: white;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* -------- SHOWCASE / SCREENSHOTS -------- */
.showcase {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-section) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.showcase-main, .showcase-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.showcase-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.browser-window {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.browser-window:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-light);
}

.browser-bar.mini {
    padding: 10px 14px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-dots span:nth-child(1) { background: #f87171; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:nth-child(3) { background: #4ade80; }

.browser-url {
    flex: 1;
    background: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-url i {
    color: var(--secondary);
    font-size: 0.7rem;
}

.browser-window img {
    width: 100%;
    height: auto;
    display: block;
}

.menu-window img {
    max-height: 360px;
    object-fit: cover;
    object-position: top;
}

.showcase-caption {
    padding: 0 4px;
}

.showcase-caption h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.showcase-caption h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.showcase-caption p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* -------- INTEGRAÇÕES -------- */
.integrations {
    background: var(--bg-section);
    overflow: hidden;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.integrations-text .section-header {
    text-align: left;
    margin: 0 0 32px;
}

.integrations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.integrations-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.integrations-list i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.integrations-list strong {
    color: var(--text);
    font-weight: 700;
}

.integrations-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: relative;
    width: 420px;
    height: 420px;
    max-width: 100%;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 18px;
}

.orbit-center img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px dashed var(--border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 {
    width: 260px;
    height: 260px;
    animation: orbitSpin 30s linear infinite;
}

.orbit-ring-2 {
    width: 400px;
    height: 400px;
    animation: orbitSpin 50s linear infinite reverse;
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(calc(var(--orbit-r, 130px))) rotate(calc(-1 * var(--angle)));
}

.orbit-ring-1 .orbit-item {
    --orbit-r: 130px;
    animation: counterSpin 30s linear infinite;
}

.orbit-ring-2 .orbit-item {
    --orbit-r: 200px;
    animation: counterSpin 50s linear infinite reverse;
}

@keyframes counterSpin {
    from { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--angle))); }
    to { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--angle) - 360deg)); }
}

/* -------- BENEFÍCIOS / DIFERENCIAIS -------- */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit {
    position: relative;
    padding: 36px 30px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.benefit-num {
    position: absolute;
    top: 24px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    line-height: 1;
}

.benefit h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.benefit p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* -------- FLOW / TIMELINE -------- */
.flow {
    background: var(--bg-section);
}

.flow-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    opacity: 0.25;
    z-index: 0;
}

.flow-step {
    position: relative;
    background: white;
    padding: 24px 18px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    z-index: 1;
}

.flow-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.flow-step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.flow-step-icon {
    width: 56px;
    height: 56px;
    margin: 8px auto 16px;
    background: var(--bg-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.flow-step:hover .flow-step-icon {
    background: var(--gradient-brand);
    color: white;
}

.flow-step h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* -------- CTA -------- */
.cta {
    background: white;
}

.cta-box {
    position: relative;
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 72px 64px;
    color: white;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.cta-box::before, .cta-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-box::before {
    width: 380px;
    height: 380px;
    top: -180px;
    right: -120px;
}

.cta-box::after {
    width: 280px;
    height: 280px;
    bottom: -140px;
    left: 10%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 540px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.cta-bg-icon {
    font-size: 11rem;
    color: rgba(255, 255, 255, 0.18);
    z-index: 2;
}

.cta-pulse {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: ctaPulse 3s ease-out infinite;
}

@keyframes ctaPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* -------- FOOTER -------- */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 70px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 18px 0 22px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--gradient-brand);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-display);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #94a3b8;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: #64748b;
}

/* -------- BACK TO TOP -------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* -------- ANIMAÇÕES SCROLL -------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* -------- RESPONSIVO -------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        height: 460px;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .integrations-text .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .integrations-list {
        max-width: 520px;
        margin: 0 auto;
        text-align: left;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }

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

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

    .flow-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow-timeline::before {
        display: none;
    }

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

@media (max-width: 768px) {
    :root {
        --header-h: 62px;
    }

    section {
        padding: 70px 0;
    }

    .header {
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--border-light);
    }

    .header-container {
        gap: 12px;
        padding: 0 18px;
    }

    .logo-img {
        height: 36px;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        gap: 4px;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
    }

    .btn-header {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .hero {
        padding: calc(var(--header-h) + 28px) 0 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-card-main {
        max-width: 360px;
    }

    .hero-card-float-1, .hero-card-float-2 {
        display: none;
    }

    .slide {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }

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

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

    .cta-box {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        text-align: center;
    }

    .cta-visual {
        order: -1;
        min-height: 160px;
    }

    .cta-bg-icon {
        font-size: 7rem;
    }

    .cta-pulse {
        width: 160px;
        height: 160px;
    }

    .cta-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col a {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .orbit {
        width: 320px;
        height: 320px;
    }

    .orbit-ring-1 { width: 200px; height: 200px; }
    .orbit-ring-2 { width: 300px; height: 300px; }
    .orbit-ring-1 .orbit-item { --orbit-r: 100px; }
    .orbit-ring-2 .orbit-item { --orbit-r: 150px; }
    .orbit-center { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
    :root {
        --header-h: 58px;
    }

    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 16px;
        gap: 8px;
    }

    .logo-img {
        height: 32px;
    }

    .mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding: calc(var(--header-h) + 24px) 0 50px;
    }

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

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

    .btn {
        padding: 11px 18px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 13px 22px;
        font-size: 0.95rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .flow-timeline {
        grid-template-columns: 1fr;
    }

    .trust-logos {
        gap: 14px 22px;
    }

    .trust-logo {
        font-size: 0.9rem;
    }

    .cta-box {
        padding: 40px 22px;
    }
}
