/* ============================================
   MODERN DESIGN SYSTEM
   ============================================ */

:root {
    --color-primary: #0a2540;
    --color-primary-light: #425466;
    --color-accent: #635bff;
    --color-accent-hover: #5851d8;
    --color-accent-light: rgba(99, 91, 255, 0.1);
    --color-success: #00d4aa;
    --color-white: #ffffff;
    --color-gray-50: #f6f9fc;
    --color-gray-100: #e6ebf1;
    --color-gray-200: #d4dbe3;
    --color-gray-400: #8f9ea8;
    --color-gray-600: #425466;
    --color-gray-800: #0a2540;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, 0.05), 0 1px 3px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 7px 14px 0 rgba(60, 66, 87, 0.08), 0 3px 6px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px 0 rgba(60, 66, 87, 0.08), 0 5px 15px 0 rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-gray-600);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SCROLL OFFSET — compensa o header fixo
   ao navegar por âncoras (#secao)
   ============================================ */
section[id],
div[id].section {
    scroll-margin-top: 80px;
}

@media (max-width: 767px) {

    section[id],
    div[id].section {
        scroll-margin-top: 20px;
    }
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GLOBAL BACKGROUNDS (Dynamic Mesh)
   ============================================ */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    min-height: 800px;
    background: #f8fafc;
    overflow: hidden;
    z-index: -1;
}

.animated-mesh-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.8;
    border-radius: 50%;
    animation: floatingMesh 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.4) 0%, rgba(99, 91, 255, 0) 70%);
    animation-delay: 0s;
    animation-duration: 15s;
}

.blob-2 {
    top: 30%;
    right: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.3) 0%, rgba(0, 212, 170, 0) 70%);
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    bottom: -20%;
    left: 30%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(255, 100, 150, 0.25) 0%, rgba(255, 100, 150, 0) 70%);
    animation-duration: 18s;
}

@keyframes floatingMesh {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(15%, 5%) scale(1.3) rotate(180deg);
    }

    100% {
        transform: translate(-10%, -15%) scale(1.1) rotate(360deg);
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    z-index: 1000;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

/* Quando o menu mobile está aberto, fecha o header com fundo mesmo sem scroll */
.site-header:has(.mobile-nav.open) {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

/* ---- Desktop nav ---- */
.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    transition: color 150ms ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* ---- CTA button ---- */
.btn-nav-cta {
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff !important;
}

/* ---- Header actions ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ---- Hamburger ---- */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    z-index: 1;
}

.hero-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: var(--color-accent-hover);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
}

.btn-secondary:hover {
    border-color: var(--color-gray-400);
    background: var(--color-gray-50);
}

.hero-visual {
    position: relative;
    width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 70px 0;
    background: white;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

.section-alt {
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-100);
    border-top: 1px solid var(--color-gray-100);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

/* ============================================
   FEATURES BENTO
   ============================================ */
.bento-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-gray-100);
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
}

/* ============================================
   MODELS GRID
   ============================================ */
.modelos-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .modelos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .modelos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.modelo-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.modelo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.modelo-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--color-gray-100);
}

.modelo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modelo-card:hover .modelo-thumb img {
    transform: scale(1.05);
}

.modelo-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modelo-info h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.modelo-info p {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.modelo-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    flex: 1;
    transition: var(--transition);
}

.btn-sm-primary {
    background: var(--color-primary);
    color: white;
}

.btn-sm-primary:hover {
    background: var(--color-accent);
}

.btn-sm-ghost {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

.btn-sm-ghost:hover {
    background: var(--color-gray-100);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pricing-card {
        flex-direction: row;
    }
}

.pricing-panel {
    padding: 40px;
    flex: 1;
}

.pricing-panel-main {
    background: var(--color-primary);
    color: white;
}

.pricing-panel-main h3 {
    color: white;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 16px 0;
}

.pricing-panel-main .pricing-price {
    color: white;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.pricing-panel-main .pricing-features li {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-disclaimer {
    background: var(--color-gray-50);
    padding: 24px 40px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   MOBILE NAV — dropdown abaixo do header
   (mesmo padrão do catálogo)
   ============================================ */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid var(--color-gray-200);
    animation: mobileNavIn 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    display: flex;
}

@keyframes mobileNavIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a {
    padding: 14px 0;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-100);
    transition: color 150ms ease;
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* botão CTA dentro do menu mobile */
.mobile-nav-cta {
    margin-top: 8px;
    padding: 14px 20px !important;
    border-radius: var(--radius-full) !important;
    background: var(--color-accent) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    justify-content: center;
    border-bottom: none !important;
    text-align: center;
}

.mobile-nav-cta:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}