@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

:root {
    /* Color Palette */
    --primary: #0052CC;
    --primary-light: #0066FF;
    --accent: #00D4FF;
    --accent-hover: #00b8e6;
    --text-main: #425466;
    --text-heading: #0052CC;
    --text-light: #697386;
    --bg-light: #F6F9FC;
    --white: #ffffff;
    --border-color: #E6EBF1;

    /* Fluid Typography (clamp(min, preferred, max)) */
    --font-h1: clamp(2.2rem, 5vw + 1rem, 4rem);
    --font-h2: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    --font-h3: clamp(1.3rem, 2vw + 1rem, 1.8rem);
    --font-body: clamp(1rem, 0.5vw + 0.8rem, 1.15rem);

    /* Fluid Spacing */
    --section-padding: clamp(60px, 10vw, 120px) 20px;
    --container-max-width: 1440px; /* Increased for large monitors */
    --content-max-width: 1140px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px -10px rgba(0, 82, 204, 0.1);
    --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    font-size: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

h1 { font-size: var(--font-h1); letter-spacing: -2px; }
h2 { font-size: var(--font-h2); letter-spacing: -0.5px; }
h3 { font-size: var(--font-h3); }


a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.content-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    min-height: 54px; /* Premium touch target */
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 12px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(0, 82, 204, 0.5);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 82, 204, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}


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

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

/* --- Header --- */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}


.main-nav ul li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.active {
    color: var(--primary);
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 850px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 40px;
    }

    .main-nav ul li a {
        font-size: 1.2rem;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* --- Hero Section (Premium Mesh) --- */
.hero {
    padding: 160px 0 120px;
    background: radial-gradient(at 0% 0%, rgba(0, 82, 204, 0.03) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.05) 0px, transparent 50%),
                radial-gradient(at 50% 100%, rgba(0, 82, 204, 0.02) 0px, transparent 50%),
                var(--white);
    position: relative;
    overflow: hidden;
}

/* Abstract Floating Shapes */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

/* Subtle Grid Pattern Overlay */
.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 82, 204, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: -1;
}

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

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    letter-spacing: -2px;
    font-weight: 900;
    color: var(--primary);
}

.hero-text p {
    font-size: var(--font-body);
    color: var(--text-light);
    margin-bottom: clamp(30px, 5vw, 50px);
    max-width: 650px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .hero-ctas .btn {
        width: 100%; /* Full width buttons on small mobile */
    }
}

.hero-visual {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
}

.hero-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}


.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Software Catalog --- */
.software-catalog {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: 50px;
}

@media (max-width: 992px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}

.software-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.software-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.software-card.highlight {
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.02);
}

.software-card.highlight::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

.software-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 82, 204, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.software-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.software-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.software-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
}


.section-header {
    text-align: center;
    margin-bottom: 80px; /* Increased from 60px */
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 25px; /* Increased from 15px */
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 50px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    transition: var(--transition);
    text-align: left;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* --- Security Bar --- */
.security-bar {
    padding: 40px 0;
    background: var(--primary);
    color: var(--white);
}

.security-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.8;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.security-item svg {
    width: 24px;
    height: 24px;
}

/* --- Footer (Premium) --- */
footer {
    padding: 80px 0 40px;
    background: #051423; /* Ultra dark navy */
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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


.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #9CA3AF;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-desc {
    color: #D1D5DB;
    margin: 20px 0 25px;
    max-width: 300px;
    font-size: 0.95rem;
}


.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1); /* Slightly brighter */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* Force white */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.social-links a:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}


.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #6B7280;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #6B7280;
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* --- Common Elements --- */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- About Section --- */
.about {
    padding: var(--section-padding);
}

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

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.about-visual img {
    width: 100%;
    height: 320px; /* Reduced to landscape standard */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

/* --- Careers Section --- */
.careers {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

@media (max-width: 992px) {
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }
}

.career-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.career-card h3 {
    margin-bottom: 15px;
}

.career-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Blog Section --- */
.blog {
    padding: var(--section-padding);
}

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

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #f8fafc; /* Fallback light color */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: block;
}



.blog-content {
    padding: 30px;
}

.blog-content span {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content h3 {
    margin: 10px 0 15px;
    font-size: 1.25rem;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.blog-content a {
    color: var(--primary);
    font-weight: 600;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.05);
}

/* --- Responsive Tables --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px; /* Ensures readable structure on mobile */
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-light);
    color: var(--text-heading);
    font-weight: 700;
}

/* --- Refined Media Queries --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }
    
    .software-grid, .features-grid, .careers-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Ultra-Wide Constraints --- */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

/* --- Systems Page Styles --- */
.hero-simple {
    padding: 120px 0 60px;
    background: var(--bg-light);
    text-align: center;
}

.hero-simple h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.all-systems {
    padding: 80px 0;
}

.system-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.system-item:nth-child(even) {
    direction: rtl;
}

.system-item:nth-child(even) .system-details {
    direction: ltr;
}

.system-image {
    background: #f0f2f5;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary); /* Blue border added */
    padding: 5px; /* Subtle space between border and image */
}

.system-image img {
    width: 100%;
    height: 310px; /* Adjusted for padding */
    object-fit: cover;
    display: block;
    border-radius: 24px; /* Slightly smaller radius for inner image */
}

.feature-list {
    margin: 25px 0;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
}

.download-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 850px) {
    .system-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* --- Micro-interactions & Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover:hover {
    transform: scale(1.03);
}
    
    .system-item:nth-child(even) {
        direction: ltr;
    }
    
    .download-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-list li {
        justify-content: center;
    }
}
