:root {
    --bg: #09090b;
    --bg-card: rgba(20, 20, 23, 0.6);
    --border: rgba(63, 63, 70, 0.4);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.15);
    
    --orange: #f97316;
    --orange-glow: rgba(249, 115, 22, 0.15);
    
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.15);
    
    --pink: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.15);
    
    --green: #10b981;
    
    --font: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(63, 63, 70, 0.2);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(9, 9, 11, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--text);
}

.btn-header {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(24, 24, 27, 0.8);
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card.hosteleria:hover {
    border-color: var(--orange);
    box-shadow: 0 10px 30px var(--orange-glow);
}

.product-card.realestate:hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 30px var(--cyan-glow);
}

.product-card.erp:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.product-card.logistica:hover {
    border-color: var(--pink);
    box-shadow: 0 10px 30px var(--pink-glow);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.product-tag.hosteleria { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.product-tag.realestate { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.product-tag.erp { background: rgba(139, 92, 246, 0.15); color: var(--primary); }
.product-tag.logistica { background: rgba(236, 72, 153, 0.15); color: var(--pink); }

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-card-primary {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-card-primary:hover {
    background: var(--text);
    color: var(--bg);
}

.btn-card-secondary {
    flex: 1;
    text-align: center;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.7rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.btn-card-secondary:hover {
    color: var(--text);
}

.roi-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem;
    backdrop-filter: blur(16px);
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.roi-inputs {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.roi-results {
    flex: 1;
    min-width: 300px;
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.roi-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roi-field label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.roi-field label span {
    color: var(--text);
    font-weight: 700;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(63, 63, 70, 0.5);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    transition: background 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--pink);
}

.roi-select {
    padding: 0.8rem;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.roi-stat {
    text-align: center;
}

.roi-value {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.roi-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.consulting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consulting-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consulting-item {
    display: flex;
    gap: 1rem;
}

.consulting-icon {
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: bold;
}

.consulting-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.consulting-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3.5rem;
    backdrop-filter: blur(16px);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem;
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: center;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

footer {
    border-top: 1px solid rgba(63, 63, 70, 0.2);
    background: rgba(9, 9, 11, 0.9);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 28px;
    margin-bottom: 1rem;
}

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

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(63, 63, 70, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18181b;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 968px) {
    .consulting-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .roi-container {
        padding: 2rem;
    }
}
