/* --- DESIGN SYSTEM - VIDRO ENGENHARIA PORTAL --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #06b6d4; /* Neon Teal/Cyan for precision and modern glass engineering */
    --primary-dark: #0891b2;
    --secondary: #64748b;
    --background: #070a13; /* Deep space dark background */
    --surface: #0f1422; /* Sleek surface panel background */
    --surface-light: #1a2035; /* Elevated surface panel background */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(15, 20, 34, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #6366f1; /* Electric Indigo/Purple for technology and agility */
    --gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-hover: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    --radius-lg: 24px;
    --radius-xl: 40px;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* --- Base & Scrollbar Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* --- Glassmorphism Utils --- */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* --- Shared Header/Navigation --- */
header.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-container img {
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-back-home:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(-3px);
}

/* --- Shared Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    background: var(--gradient-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--glass-border);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* --- Global Footer --- */
footer.app-footer {
    background: #01040f;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
}

.social-links i {
    cursor: pointer;
    transition: color 0.3s;
}

.social-links i:hover {
    color: var(--primary);
}

/* --- Reveal Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Standardized Hero Card for Tool Headers --- */
.hero-card {
    background: linear-gradient(135deg, #0c1524 0%, #17253d 52%, #1e293b 100%) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: 26px !important;
    padding: 28px 28px 34px !important;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px !important;
    text-align: center;
    width: 100%;
}

.hero-card::before {
    content: "" !important;
    position: absolute !important;
    inset: auto -20% -55% -20% !important;
    height: 230px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 62%) !important;
    opacity: 0.55 !important;
    pointer-events: none !important;
    display: block !important;
}

.hero-card::after {
    content: "" !important;
    position: absolute !important;
    right: -82px !important;
    top: -82px !important;
    width: 250px !important;
    height: 250px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    pointer-events: none !important;
    display: block !important;
}

.hero-card .hero-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 20px !important;
}

.hero-card .pill-box {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.hero-card .pill {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    color: #fff !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.hero-card .hero-content {
    position: relative !important;
    z-index: 1 !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.hero-card .hero-pre {
    font-size: 14px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: var(--primary) !important;
}

.hero-card h1 {
    font-size: clamp(32px, 5vw, 54px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 16px 0 !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.hero-card .hero-decor {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 16px auto 18px !important;
    opacity: 0.8 !important;
}

.hero-card .hero-decor::before,
.hero-card .hero-decor::after {
    content: "" !important;
    width: 150px !important;
    max-width: 20vw !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, var(--primary), transparent) !important;
}

.hero-card .hero-decor span {
    font-size: 16px !important;
    color: #fff !important;
    line-height: 1 !important;
}

.hero-card .hero-lead {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 780px !important;
    color: var(--text-muted) !important;
    text-align: center !important;
}

@media(max-width: 900px) {
    .hero-card {
        padding: 24px 18px 28px !important;
        border-radius: 20px !important;
    }
    .hero-card .hero-pre {
        font-size: 12px !important;
    }
    .hero-card h1 {
        font-size: 32px !important;
    }
    .hero-card .hero-lead {
        font-size: 14px !important;
    }
    .hero-card .hero-decor::before,
    .hero-card .hero-decor::after {
        width: 80px !important;
    }
}

