:root {
    --bg-color: #0b0f19;
    --surface-color: #121826;
    --surface-hover: #1b2336;

    --primary: #3B82F6;
    --secondary: #7C3AED;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: rgba(255, 255, 255, 0.08);

    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(124,58,237,0.15));

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1140px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-blue   { color: var(--primary); }
.text-purple { color: var(--secondary); }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 7rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid { display: grid; gap: 2rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(59,130,246,0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.97);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Nav Actions (right side) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    transition: border-color var(--transition);
}

.hamburger:hover { border-color: var(--primary); }

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 15, 25, 0.99);
    border-top: 1px solid transparent;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.mobile-nav.active {
    max-height: 380px;
    border-top-color: var(--border-color);
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0 0.5rem;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li:last-child { border-bottom: none; }

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.mobile-nav-cta {
    display: inline-flex;
    margin: 1.25rem 0 1.5rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding-top: 13rem;
    padding-bottom: 8rem;
    text-align: center;
    overflow: hidden;
}

/* Dot grid pattern */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(59,130,246,0.2);
    letter-spacing: 0.02em;
}

.badge-subtle {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border-color: var(--border-color);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(124,58,237,0.06) 35%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ── Services (Cards) ── */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform var(--transition), border-color var(--transition),
                background var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,58,237,0.35);
    background: var(--surface-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.card:hover::before { opacity: 1; }

/* Staggered entrance for service cards */
.services-grid .card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .card:nth-child(4) { transition-delay: 0.2s; }
.services-grid .card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .card:nth-child(6) { transition-delay: 0.3s; }

.card .icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── Diferenciais ── */
.differentials {
    background: rgba(255,255,255,0.015);
}

.diff-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem 2.5rem;
}

.diff-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.diff-item i {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--surface-color);
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition), background var(--transition);
}

.diff-item:hover i {
    border-color: rgba(59,130,246,0.3);
    background: var(--surface-hover);
}

.diff-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.diff-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── Sobre ── */
.about {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ── CTA ── */
.cta-box {
    background: var(--surface-hover);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ── Footer ── */
footer {
    padding: 5rem 0 2rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ── Animations ── */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.5, 0, 0, 1),
                transform 0.75s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ── Responsividade ── */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .hero   { padding-top: 10rem; }
}

@media (max-width: 768px) {
    /* Show hamburger, hide desktop links */
    .hamburger  { display: flex; }
    .nav-links  { display: none; }
    .nav-cta    { display: none; }

    .hero h1  { font-size: 2.6rem; letter-spacing: -1px; }
    .hero p   { font-size: 1.05rem; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }

    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 1.9rem; }

    .about-content h2 { font-size: 2rem; }
    .cta-box h2       { font-size: 1.9rem; }

    .cta-actions  { flex-direction: column; width: 100%; }
    .cta-box      { padding: 3rem 1.5rem; }

    .footer-content { flex-direction: column; text-align: center; gap: 2rem; align-items: center; }
    .footer-links   { justify-content: center; flex-wrap: wrap; }
}

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .fade-in {
        animation: none;
        opacity: 1;
    }
}
