/* ==========================================================================
   Design System & Variáveis SGC
   ========================================================================== */
:root {
    /* Cores Principais */
    --color-primary: #E53935;
    --color-primary-dark: #C62828;
    --color-primary-light: #FFCDD2;
    
    /* Tons de Base (Monocromáticos) */
    --color-bg: #FFFFFF;
    --color-surface: #F8F9FA;
    --color-surface-hover: #F1F3F5;
    
    /* Textos */
    --color-text-title: #111827;
    --color-text-body: #4B5563;
    --color-text-light: #9CA3AF;

    /* Bordas e Sombras */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(229, 57, 53, 0.15); /* Sombra primária suave */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset e Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-title);
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Componentes (Botões, Badges, Cards Glass)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--border-radius-md);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(229, 57, 53, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glow-effect:hover::after {
    left: 150%;
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

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

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-small {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 8px;
    font-family: var(--font-body);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-sgc {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.logo-by {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFF 0%, #F8F9FA 100%);
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-text h1 span {
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-text-body);
    max-width: 90%;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--color-primary-light);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #E0E7FF;
}

/* Mockup UI Animado */
.mockup {
    border-radius: var(--border-radius-md);
    padding: 20px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: var(--shadow-lg);
    background: white;
}

.mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    display: flex;
    gap: 16px;
}

.mockup-sidebar {
    width: 60px;
    height: 300px;
    background: var(--color-surface);
    border-radius: var(--border-radius-sm);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-title {
    height: 30px;
    width: 40%;
    background: var(--color-surface);
    border-radius: 4px;
}

.skeleton-cards {
    display: flex;
    gap: 10px;
}

.scard {
    flex: 1;
    height: 80px;
    background: var(--color-surface);
    border-radius: var(--border-radius-sm);
}

.skeleton-chart {
    height: 150px;
    background: linear-gradient(180deg, var(--color-surface) 0%, rgba(248,249,250,0.2) 100%);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-surface);
}

/* ==========================================================================
   Seção Segmentos
   ========================================================================== */
.segments {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.segment-card {
    background: var(--color-bg);
    padding: 32px 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}

.segment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.segment-card:hover .icon-wrapper {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.segment-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ==========================================================================
   Nossas Soluções
   ========================================================================== */
.solutions {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.solution-card {
    padding: 48px;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
}

.sol-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.solution-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.solution-card p {
    font-size: 1.125rem;
    color: var(--color-text-body);
}

.feature-highlight {
    padding: 24px 40px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(to right, rgba(229, 57, 53, 0.05), transparent);
    border-left: 4px solid var(--color-primary);
}

.feat-icon {
    font-size: 32px;
    color: var(--color-primary);
}

.feature-highlight p {
    font-size: 1.125rem;
    margin: 0;
}

/* ==========================================================================
   CTA Section (Planos)
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--color-text-title); /* Fundo escuro premium */
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-dark) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.05); /* Efeito glass no fundo escuro */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #0A0A0A;
    color: white;
    padding: 80px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-sgc {
    color: white;
}

.footer-brand p {
    color: var(--color-text-light);
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #25D366; /* Cor oficial WhatsApp para conversão */
    transition: color 0.3s;
}

.contact-link:hover {
    color: #128C7E;
}

.contact-desc {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 8px;
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animações de Scroll
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 auto 30px;
    }

    .mockup {
        margin: 0 auto;
        max-width: 500px;
    }

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

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .segments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-container {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .segments-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
    }
}
