/* Base Styles & Variables */
:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #8338ec;
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --neon-blue: #00f7ff;
    --neon-purple: #b5179e;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-primary: 'Poppins', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(58, 134, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(131, 56, 236, 0.15) 0%, transparent 40%),
        var(--dark);
    z-index: -1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--white), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

.highlight {
    color: var(--neon-blue);
}

/* Header & Navigation */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHBhdGggZD0iTTAgMGgxMDB2MTAwSDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTEwMCAwSDB2MTAwIiBzdHJva2U9InJnYmEoMCwgMjQ3LCAyNTUsIDAuMDUpIiBzdHJva2Utd2lkdGg9IjAuNSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: 0;
    animation: moveBackground 100s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    color: var(--white);
    transition: var(--transition);
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(58, 134, 255, 0.7);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile First: Nav links are hidden by default */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the nav bar */
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 25, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid var(--primary-color-dark);
}

/* When the menu is open on mobile */
.nav-links.active {
    display: flex;
}

.nav-links a {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--white);
    background-color: rgba(58, 134, 255, 0.15);
    transform: translateY(-3px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    text-align: center;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Problem Section */
.problem {
    background-color: rgba(10, 10, 10, 0.7);
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(58, 134, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 30%);
    z-index: -1;
}

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

.problem-card {
    background: rgba(45, 45, 45, 0.5);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(58, 134, 255, 0.2);
}

.problem-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problem-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

/* Solution Section */
.solution {
    position: relative;
    overflow: hidden;
}

.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 247, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(181, 23, 158, 0.05) 0%, transparent 30%);
    z-index: -1;
}

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

.feature-card {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(58, 134, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

/* Results Section */
.results {
    background-color: rgba(10, 10, 10, 0.7);
}

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

.result-card {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.result-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* How It Works Section */
.steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 39px;
    width: 2px;
    height: 100%;
    background: var(--gradient);
    z-index: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 4px solid var(--dark);
}

.step-content {
    background: var(--dark-gray);
    border-radius: 10px;
    padding: 30px;
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.step:hover .step-content {
    transform: translateX(10px);
    border-color: var(--primary);
}

/* CTA Section */
.cta {
    text-align: center;
    background: var(--gradient);
    padding: 80px 0;
    border-radius: 20px;
    margin: 100px 0;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: none;
}

.cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

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

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.8rem;
}

.contact-methods p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-methods i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.3);
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-about .logo {
    margin-bottom: 15px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

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

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Mobile menu icon is always visible on mobile */
.mobile-menu {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--light-color);
    z-index: 1001;
}

/* Responsividade */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2.section-title { font-size: 2.2rem; }
    .contact-container { grid-template-columns: 1fr; }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static; /* Reset position for desktop */
        width: auto;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        border-top: none;
        gap: 30px;
        align-items: center;
    }

    .nav-links a {
        padding: 0;
        width: auto;
    }

    .mobile-menu {
        display: none; /* Hide hamburger on desktop */
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}

@media (max-width: 576px) {
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .btn-large { padding: 12px 30px; font-size: 1rem; }
    .problem-grid, .features-grid, .results-grid { grid-template-columns: 1fr; }
}
