/* Reset and Base Styles */
:root {
    /* Geist/Noora Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #EAEAEA;

    /* Typography */
    --font-sans: 'Geist Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.04em;
}

h1 { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.05em; }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--trans-fast);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transform-origin: left center;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--trans-smooth);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #333;
    transform: scale(1.02);
}

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

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

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    background: var(--bg-secondary);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--border-color);
    color: var(--text-main);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

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

.hero .subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 1.5rem auto 3rem;
}

/* Projetos Section (Nitro Effect) */
.projects-section {
    background-color: var(--bg-primary);
}

.projects-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.stacked-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    padding-bottom: var(--space-xl);
}

.stacked-card {
    position: sticky;
    /* Calcula a posição baseada no index passado pelo inline style */
    top: calc(120px + (var(--card-index) * 25px));
    height: 600px; 
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2.5rem;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.03);
    margin-bottom: 3rem; 
    transition: transform 0.4s ease;
    transform-origin: top center;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    flex-grow: 1;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    background-color: #EAEAEA;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: #111;
}

.card-header span {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Positioning Section */
.positioning {
    background: var(--bg-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.pos-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-item h3 {
    color: var(--text-main);
}

/* System Section (Cards) */
.system {
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--trans-smooth);
}

.card:hover {
    border-color: #ccc;
}

.card-icon {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1;
}

/* Solutions Section */
.solutions {
    background-color: var(--bg-secondary);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.solution-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.solution-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* CRM Bento Section */
.crm-section {
    background-color: #050505; 
    color: #FFFFFF;
    border-radius: 32px;
    margin: 2rem;
    padding: var(--space-xl) 0;
}

.crm-section p { color: rgba(255,255,255,0.6); }
.crm-section h2, .crm-section h3 { color: #FFFFFF; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.bento-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    background: #222;
    border-radius: 999px;
    color: #FFF;
}

/* Testimonials */
.testimonials { background-color: var(--bg-primary); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}
.quote-icon {
    font-family: var(--font-sans);
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    line-height: 0.5;
    margin-bottom: 1.5rem;
}
.testimonial-card p {
    font-size: 1.05rem;
    color: var(--text-main);
    flex-grow: 1;
    margin-bottom: 0;
}
.testimonial-author {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}
.testimonial-author h4 { font-size: 1.1rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* CTA Section */
.cta-section { background-color: var(--bg-secondary); }
.cta-box { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}
.contact-form input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
}
.contact-form input:focus {
    outline: none;
    border-color: var(--text-main);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}
.footer-brand p {
    max-width: 300px;
    font-size: 0.875rem;
    margin-top: 1rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all var(--trans-smooth);
}
.whatsapp-widget:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Utils */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }

/* Responsive */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: auto; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .stacked-card { height: 450px; margin-bottom: 2rem; padding: 1.5rem; }
    .card-header h3 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-direction: column; gap: 1rem; }
    .solutions-grid { grid-template-columns: 1fr; }
    .crm-section { margin: 1rem; border-radius: 20px; }
    .hero { padding-top: 100px; }
    .stacked-card { padding: 2rem; }
}
