/* 
   CASYS - Modern Design System 
   Inspired by Stripe & Notion
*/

:root {
    --primary: #00C853;          /* Green Emerald (Phibo Inspired) */
    --primary-hover: #00a844;
    --secondary: #64748b;        /* Slate Gray */
    --dark: #0f172a;             /* Deeper Dark */
    --light: #fdfdfd;            /* Almost Pure White */
    --white: #ffffff;
    --success: #00C853;
    --success-hover: #00a844;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --brand-blue: #0066cc;       /* Deep Blue accent */
    
    --glass: rgba(255, 255, 255, 0.9);
    --border-light: rgba(226, 232, 240, 0.8);
    
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-vibrant: 0 10px 30px -5px rgba(0, 200, 83, 0.3);
    --radius-md: 16px;
    --radius-lg: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo .logo-light { display: none; }
.logo .logo-dark { display: block; }

nav:not(.scrolled) .logo .logo-light { display: block; }
nav:not(.scrolled) .logo .logo-dark { display: none; }

.logo-icon {
    display: none; /* Retired in favor of image logos */
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-hover));
    color: white;
    box-shadow: 0 8px 20px -4px rgba(0, 200, 83, 0.4);
}

.btn-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-vibrant);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 200, 83, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #eff6ff, #ffffff);
    padding-top: 10rem;
    padding-bottom: 8rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--dark);
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-mockup {
    margin-top: 5rem;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #fff;
    border: 8px solid #f1f5f9;
}

.hero-mockup img {
    width: 100%;
    display: block;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Specialized Section: Crediário */
.crediario-section {
    background: var(--dark);
    color: white;
    border-radius: 40px;
    padding: 6rem;
    position: relative;
    overflow: hidden;
}.crediario-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Animations */
[data-anime] {
    opacity: 0;
    transition: 0.8s ease;
}

[data-anime="up"] { transform: translateY(30px); }
[data-anime="show"] { opacity: 1; transform: translateY(0); }

/* Responsive */
/* Business Segments */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.segment-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.segment-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Floating WhatsApp */
.whatsapp-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    filter: grayscale(1);
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    font-weight: 700;
}

@media (max-width: 968px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .segment-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .segment-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-ctas { flex-direction: column; }
    .crediario-section { padding: 3rem 1.5rem; }
}

/* System Carousel Custom Styles */
.splide {
    padding-bottom: 3rem;
}
.splide__pagination {
    bottom: 0;
}
.splide__pagination__page {
    background: #cbd5e1;
    width: 10px;
    height: 10px;
    margin: 0 6px;
}
.splide__pagination__page.is-active {
    background: var(--primary);
    transform: scale(1.3);
}
.splide__arrow {
    background: white;
    box-shadow: var(--shadow-soft);
    opacity: 1;
}
.splide__arrow svg {
    fill: var(--primary);
}

.carousel-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 60%, transparent 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: left;
}
.carousel-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.carousel-caption p {
    font-size: 1.1rem;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Fiscal Master Section Styles (Phibo Premium) */
#fiscal .whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.fiscal-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fiscal-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.fiscal-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: block;
}

.fiscal-card h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.fiscal-card p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* Animations */
[data-anime] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-anime="up"] { transform: translateY(40px); }
[data-anime="left"] { transform: translateX(-40px); }
[data-anime="right"] { transform: translateX(40px); }

.animate {
    opacity: 1;
    transform: translate(0);
}

/* Trust Grid Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.trust-item {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item img {
    max-height: 45px;
    max-width: 160px;
    width: auto;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.trust-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .trust-item img {
        max-height: 35px;
    }
}



