body {
    font-family: 'Inter', sans-serif;
    background: #070f1e;
    color: #e2e8f0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.glass {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-accent {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

/* Shared Bootstrap components */
body .navbar {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand-custom {
    color: #38bdf8 !important;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.navbar-brand-custom span {
    color: #f8fafc;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #38bdf8 !important;
}

.navbar-toggler {
    border-color: rgba(148, 163, 184, 0.45);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

body .bg-light,
body .bg-white {
    background-color: #0b192c !important;
}

.section-padding {
    padding: 5rem 0;
}

.hero-section,
.hero-subpage {
    background: linear-gradient(135deg, #0b192c 0%, #034ea2 52%, #0284c7 100%);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subpage {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before,
.hero-subpage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    pointer-events: none;
}

.hero-section .container,
.hero-subpage .container {
    position: relative;
    z-index: 2;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.text-primary-custom {
    color: #38bdf8 !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.btn-light.text-primary-custom {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #082f49 !important;
}

.btn-light.text-primary-custom:hover {
    background: #7dd3fc;
    border-color: #7dd3fc;
}

.rounded-corner-card,
.content-card-subpage,
.contact-form-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    color: #cbd5e1;
}

.benefits-list {
    max-width: 700px;
}

.rounded-corner-card {
    color: inherit;
    display: block;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rounded-corner-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.4);
    transform: translateY(-6px);
}

.rounded-corner-card .card,
.rounded-corner-card .card-body {
    background: transparent;
    border: 0;
}

.rounded-corner-card .card-body {
    padding: 2.5rem;
}

.rounded-corner-card .card-title {
    color: #f8fafc;
}

.rounded-corner-card .card-text,
.content-card-subpage p,
.content-card-subpage li {
    color: #cbd5e1;
}

.feature-icon,
.feature-icon-large {
    color: #38bdf8;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.feature-icon-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

body .content-card-subpage {
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    margin-top: -6rem;
    padding: 3rem;
    position: relative;
    z-index: 3;
}

.contact-form-card {
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    padding: 3rem;
}

.form-label {
    color: #e2e8f0;
    font-weight: 600;
}

.form-control {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    color: #f8fafc;
    padding: 0.75rem 1rem;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.2);
    color: #f8fafc;
}

.text-muted {
    color: #94a3b8 !important;
}

.footer {
    background: #070f1e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 3rem 0;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #38bdf8;
}

.img-fluid.rounded-corner-card {
    height: auto;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .feature-icon {
        display: none;
    }

    .content-card-subpage,
    .contact-form-card,
    .rounded-corner-card .card-body {
        padding: 1.5rem;
    }
}

/* Integrated software house sections */
.site-header {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
}

.brand-mark {
    align-items: center;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.brand-mark img {
    border-radius: 0.55rem;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brand-mark-small {
    border-radius: 0.5rem;
    font-size: 0.8rem;
    height: 1.75rem;
    width: 1.75rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy small {
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.site-header .navbar-brand-custom {
    font-size: 1.3rem;
    letter-spacing: -0.04em;
}

.site-footer {
    background: #070f1e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 2.5rem 0;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #38bdf8;
}

.ecosystem-section,
.calculator-section {
    background: rgba(15, 23, 42, 0.42);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.section-kicker {
    color: #38bdf8;
    display: inline-block;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.ecosystem-section .text-secondary,
.calculator-section .text-secondary,
#consultoria .text-secondary {
    color: #94a3b8 !important;
}

.ecosystem-card,
.calculator-panel,
.code-panel {
    background: rgba(30, 41, 59, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.ecosystem-card {
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ecosystem-card:hover,
.ecosystem-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.38);
    transform: translateY(-4px);
}

.ecosystem-card-featured {
    border-color: rgba(14, 165, 233, 0.4);
}

.popular-badge {
    background: #0ea5e9;
    border-radius: 999px;
    color: #082f49;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    position: absolute;
    right: 1.5rem;
    text-transform: uppercase;
    top: -0.75rem;
}

.product-icon {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.product-icon svg,
.consulting-point svg,
.ecosystem-card .btn svg {
    height: 1rem;
    width: 1rem;
}

.product-icon svg {
    height: 1.4rem;
    width: 1.4rem;
}

.product-icon-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.product-icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.product-icon-indigo {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.product-tag {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.4rem;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
}

.product-byline {
    color: #94a3b8;
    font-size: 0.72rem;
}

.product-byline strong {
    color: #38bdf8;
    letter-spacing: 0.08em;
}

.product-features {
    color: #94a3b8;
    font-size: 0.75rem;
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
}

.product-features li {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.product-features svg {
    color: #34d399;
    height: 0.9rem;
    width: 0.9rem;
}

.consulting-points {
    display: grid;
    gap: 1rem;
}

.consulting-point {
    align-items: flex-start;
    display: flex;
    gap: 0.8rem;
}

.consulting-point > svg {
    background: rgba(14, 165, 233, 0.1);
    border-radius: 0.5rem;
    color: #38bdf8;
    flex: 0 0 auto;
    height: 2.25rem;
    padding: 0.5rem;
    width: 2.25rem;
}

.consulting-point strong,
.consulting-point small {
    display: block;
}

.consulting-point strong {
    color: #f8fafc;
    font-size: 0.85rem;
}

.consulting-point small {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.code-panel {
    overflow: hidden;
    padding: 1.5rem;
}

.code-panel-header {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    display: flex;
    font-family: monospace;
    font-size: 0.7rem;
    gap: 0.5rem;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.35rem;
    margin-right: auto;
}

.code-dots i {
    background: #ef4444;
    border-radius: 50%;
    height: 0.65rem;
    width: 0.65rem;
}

.code-dots i:nth-child(2) { background: #f59e0b; }
.code-dots i:nth-child(3) { background: #10b981; }

.code-panel pre {
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    margin: 1rem 0 0;
    overflow-x: auto;
}

.code-purple { color: #c084fc; }
.code-yellow { color: #fde047; }
.code-blue { color: #7dd3fc; }
.code-green { color: #86efac; }

.calculator-intro {
    max-width: 42rem;
}

.calculator-panel {
    max-width: 56rem;
    padding: 2rem;
}

.calculator-label {
    color: #cbd5e1;
    display: block;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.calc-btn {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    color: #f8fafc;
    min-height: 4.25rem;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-btn:hover,
.calc-btn.active-btn {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
}

.calc-btn strong,
.calc-btn small {
    display: block;
}

.calc-btn small {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 0.3rem;
}

.calculator-result {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.calculator-result small,
.calculator-result em {
    color: #94a3b8;
    display: block;
    font-size: 0.7rem;
}

.calculator-result strong {
    color: #38bdf8;
    display: block;
    font-family: monospace;
    font-size: 1.8rem;
}

.calculator-result em {
    font-style: normal;
}

.form-success > svg {
    color: #34d399;
    height: 3rem;
    width: 3rem;
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav {
        padding-top: 1rem;
    }

    .site-header .btn {
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .calculator-panel,
    .code-panel {
        padding: 1.25rem;
    }

    .calculator-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .calculator-result .btn {
        width: 100%;
    }
}