:root {
    /* Cognitive/Stripe Inspired Palette - Adjusted per User Request */
    --color-bg: #D9D9D9;
    --color-bg-alt: #E2E2E2;
    /* Slightly different for contrast */
    --color-bg-card: #EAEAEA;

    --color-text-main: #1A1A1A;
    --color-text-muted: #404040;
    --color-text-light: #666666;

    /* Brand Colors */
    --color-primary: #111111;
    --color-accent: #fab511;

    --color-border: #C0C0C0;
    --color-border-fine: #CDCDCD;

    --font-main: 'Space Grotesk', sans-serif;

    --container-width: 1120px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 9rem;

    --radius-sm: 2px;
    --radius-md: 4px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5 {
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: block;
}

/* Utilities */
.fine-border-bottom {
    border-bottom: 1px solid var(--color-border);
}

.fine-border-top {
    border-top: 1px solid var(--color-border);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: #252526;
    color: #FFFFFF !important;
    /* Force White */
    border: 1px solid #252526;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: #111111 !important;
    /* Force Dark on Hover */
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* New Accent Button Style */
.btn-accent {
    background-color: var(--color-accent);
    color: #111;
    border: 1px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: #e5a40f;
    border-color: #e5a40f;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

/* Header */
#header {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(217, 217, 217, 0.9);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    border-bottom-color: var(--color-border-fine);
    background-color: rgba(217, 217, 217, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Hero */
#hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    background: radial-gradient(circle at 100% 0%, #E6E6E6 0%, #D9D9D9 60%);
    overflow: hidden;
}

/* --- CSS da Animação ION --- */
#ion-network-canvas {
    position: absolute;
    /* Tira o elemento do fluxo normal */
    top: 0;
    right: 0;
    /* Cola o elemento na direita */
    width: 50%;
    /* Ocupa apenas a metade direita da tela */
    height: 100%;
    /* Ocupa toda a altura disponível */
    background-color: transparent;
    /* Fundo transparente para não tapar a cor do site */
    z-index: 0;
    /* Garante que fique atrás de elementos de conteúdo (que devem ter z-index > 0) */
    /* pointer-events: none; REMOVIDO para permitir interatividade */
}

/* Em telas menores (tablets/celulares), talvez você queira que ele ocupe 100% ou suma. */
@media (max-width: 768px) {
    #ion-network-canvas {
        width: 100%;
        /* Ocupa tudo em telas pequenas */
        opacity: 0.3;
        /* Fica mais sutil para não atrapalhar a leitura móvel */
    }
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

#hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-weight: 700;
    color: #000;
    font-size: 4rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Trust/Stats */
#trust {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    padding: 4rem 2rem;
    border-right: 1px solid var(--color-border);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-weight: 400;
    letter-spacing: -0.05em;
}

.trust-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-text-light);
}

/* Services */
#services {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: 2.5rem;
    /* Reduced Spacing */
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-card {
    padding: 4rem 2.5rem;
    border-right: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
    background-color: var(--color-bg);
}

.service-card:last-child {
    border-right: none;
}

.service-card:hover {
    background-color: #E2E2E2;
}

.service-card .icon {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-family: monospace;

    /* Marker Style */
    display: inline-block;
    background-color: #252526;
    /* User emphasized this specific code */
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
}

.link-arrow span {
    color: var(--color-accent);
}

.link-arrow:hover {
    opacity: 0.7;
}

/* Portfolio */
#portfolio {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-item {
    cursor: pointer;
    background: var(--color-bg);
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-text-muted);
}

.portfolio-image {
    height: 320px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #CCCCCC;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.portfolio-info {
    padding: 0 0.5rem 0.5rem;
}

.portfolio-info span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;

    /* Marker Style */
    display: inline-block;
    background-color: #252526;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.portfolio-info h4 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-primary);
}

/* Contact */
#contact {
    padding: var(--spacing-xl) 0;
    background-color: #D5D5D5;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact-content h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.contact-details li {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--color-text-main);
}

.contact-details strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-form {
    padding: 0;
    background: transparent;
    border: none;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-fine);
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-legal {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .service-card:last-child {
        border-bottom: none;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 3rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background-color: rgba(25, 25, 26, 0.95);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid var(--color-accent);
}

.toast.error {
    border-left: 4px solid #ff4444;
}

.toast-icon {
    font-size: 1.2rem;
}