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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Generic responsive helpers */
img, svg, video, canvas { max-width: 100%; height: auto; }
svg { display: block; }

/* Background dots */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, #8b5cf6 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, #8b5cf6 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, #8b5cf6 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, #8b5cf6 1px, transparent 1px),
        radial-gradient(circle at 90% 60%, #8b5cf6 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 120px 120px, 180px 180px, 200px 200px;
    opacity: 0.3;
    z-index: -1;
}

/* Enhanced floating elements with better animations and variety */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-dot {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    animation: floatMove 8s ease-in-out infinite;
}

.floating-diamond {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
    transform: rotate(45deg);
    animation: diamondFloat 6s ease-in-out infinite;
}

.floating-square {
    position: absolute;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 2px;
    animation: squareFloat 10s linear infinite;
}

/* Dot variations */
.dot-1 { width: 4px; height: 4px; top: 15%; left: 10%; animation-delay: 0s; opacity: 0.6; }
.dot-2 { width: 6px; height: 6px; top: 25%; right: 15%; animation-delay: 2s; opacity: 0.4; }
.dot-3 { width: 3px; height: 3px; top: 45%; left: 20%; animation-delay: 4s; opacity: 0.8; }
.dot-4 { width: 5px; height: 5px; top: 65%; right: 25%; animation-delay: 1s; opacity: 0.5; }
.dot-5 { width: 4px; height: 4px; top: 80%; left: 30%; animation-delay: 3s; opacity: 0.7; }
.dot-6 { width: 7px; height: 7px; top: 35%; left: 70%; animation-delay: 5s; opacity: 0.3; }

/* Diamond variations */
.diamond-1 { top: 20%; left: 60%; animation-delay: 1s; opacity: 0.5; }
.diamond-2 { top: 50%; right: 10%; animation-delay: 3s; opacity: 0.4; }
.diamond-3 { top: 70%; left: 15%; animation-delay: 2s; opacity: 0.6; }
.diamond-4 { top: 40%; left: 85%; animation-delay: 4s; opacity: 0.3; }

/* Square variations */
.square-1 { width: 12px; height: 12px; top: 30%; left: 5%; animation-delay: 0s; opacity: 0.2; }
.square-2 { width: 8px; height: 8px; top: 60%; right: 5%; animation-delay: 2s; opacity: 0.3; }
.square-3 { width: 10px; height: 10px; top: 75%; left: 80%; animation-delay: 4s; opacity: 0.25; }

@keyframes floatMove {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(5px); }
    50% { transform: translateY(-8px) translateX(-3px); }
    75% { transform: translateY(-12px) translateX(8px); }
}

@keyframes diamondFloat {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

@keyframes squareFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.4; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.2; }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

/* Centraliza o menu (Serviços, Processo, Sobre) no centro da página */
.header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-image {
    height: clamp(28px, 2.2vw, 44px);
    width: auto;
}

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

.nav a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

/* Estado ao rolar (header levemente translúcido) */
.header.is-sticky {
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: saturate(120%) blur(8px);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    border-bottom-color: rgba(139, 92, 246, 0.25);
}

.nav a:hover {
    color: #ffffff;
}

.cta-button {
    background: linear-gradient(135deg, #7C3AED, #A855F7, #A855F7);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, #6D28D9, #9333EA, #9333EA);
    transform: translateY(-1px);
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #d8b4fe;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .highlight {
    color: #8b5cf6;
}

.hero-description {
    font-size: 1.1rem;
    color: #9ca3af; 
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* About section (above hero-image) */
.about {
    max-width: 1200px;
    margin: 0 auto 3.5rem auto;
    text-align: left;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
.about-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #d8b4fe;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.about-title {
    font-size: clamp(1.8rem, 4.6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}
.about-accent { color: #8b5cf6; }
.about-text {
    color: #9ca3af;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.about-right { display: grid; gap: 1rem; }
.about-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    backdrop-filter: saturate(120%) blur(2px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.about-card:hover { 
    transform: translateY(-4px); 
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(17, 24, 39, 0.75);
    box-shadow: 0 14px 28px rgba(0,0,0,0.35), 0 0 28px rgba(167,139,250,0.20);
}
.about-card:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(167,139,250,0.35); }
.about-icon {
    width: 48px; height: 48px; min-width: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.28);
}
.about-icon, .service-icon { transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.about-icon .icon,
.about-icon i,
.about-icon .fa-solid {
    font-size: 22px;
    color: #a78bfa;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.about-card:hover .about-icon { background: rgba(167,139,250,0.28); border-color: rgba(167,139,250,0.45); transform: translateY(-2px); }
.about-card-title { font-weight: 700; margin-bottom: 0.25rem; }
.about-card-text { color: #cbd5e1; font-size: 0.98rem; line-height: 1.6; }

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .about { margin-bottom: 2.5rem; }
    .about-icon { width: 44px; height: 44px; min-width: 44px; }
    .about-icon .icon { width: 24px; height: 24px; }
}

.buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.secondary-button {
    background: rgba(55, 65, 81, 0.8);
    color: #9ca3af;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.secondary-button:hover {
    background: rgba(75, 85, 99, 0.8);
    color: #ffffff;
}

/* Hero image */
.hero-image {
    position: relative;
    width: min(70vw, 1000px);
    max-width: 100%;
    margin: 0 auto;
    height: clamp(320px, 32vw, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* parâmetros do caminho elíptico dos itens (e do traçado pontilhado) */
    --orbit-r: clamp(140px, 10vw, 220px);   /* semi‑eixo vertical fluido */
    --sx: 2.1;          /* alongamento horizontal */
    --isx: calc(1 / var(--sx));
    --tilt: 18deg;      /* inclinação do caminho */
}

/* Services */
.services {
    max-width: 1200px;
    margin: 3.5rem auto 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.services-header { 
    text-align: center; 
    margin-bottom: 2rem; 
    max-width: 920px; 
    margin-left: auto; 
    margin-right: auto; 
}
.services-title {
    font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    font-weight: 800;
}
.services-subtitle {
    color: #9ca3af;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.2vw, 1.25rem);
}
.service-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.2rem 1.25rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    text-align: left; /* conteúdo das caixas alinhado à esquerda */
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,0.55);
    background: rgba(17,24,39,0.75);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35), 0 0 30px rgba(167,139,250,0.18);
}
.service-card:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(167,139,250,0.35); }
.service-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.28);
    margin-bottom: 0.9rem;
}
.service-icon .fa-solid {
    color: #a78bfa;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.service-card:hover .service-icon { background: rgba(167,139,250,0.28); border-color: rgba(167,139,250,0.45); transform: translateY(-2px); }
.service-card:hover .service-title { color: #ffffff; }
.service-card:hover .service-icon .fa-solid { color: #d8b4fe; }

/* Hover nos cubos do hero sem interferir na animação */
.cube-content { transition: transform .25s ease; }
.cube:hover .cube-content { transform: scale(1.08); }
.cube:hover { box-shadow: 0 16px 36px rgba(167,139,250,0.45); }
.cube:hover .fa-solid, .cube:hover .icon { color: #d8b4fe; }

@media (hover: none) {
  .about-card:hover, .service-card:hover { transform: none; }
  .cube:hover .cube-content { transform: none; }
}
.service-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; text-align: left; }
.service-text { color: #cbd5e1; line-height: 1.65; text-align: left; }

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services { margin-top: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Process */
.process {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.process-header { text-align: center; margin-bottom: 2rem; }
.process-title { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; }
.process-subtitle { color: #9ca3af; font-size: 1.05rem; margin-top: 0.5rem; }

.process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1rem, 2.4vw, 2rem);
    align-items: start;
}
.process-steps::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(139,92,246,0.0), rgba(139,92,246,0.35), rgba(139,92,246,0.0));
    box-shadow: 0 0 16px rgba(168,85,247,0.25), 0 0 28px rgba(168,85,247,0.15);
}
.process-step { text-align: center; }
.process-badge {
    width: 68px; height: 68px;
    margin: 0 auto 0.9rem auto;
    border-radius: 999px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800;
    background: radial-gradient(closest-side, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 24px rgba(139,92,246,0.35), 0 0 26px rgba(139,92,246,0.3);
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.process-name { font-weight: 800; margin-bottom: 0.35rem; }
.process-text { color: #cbd5e1; line-height: 1.6; }

@media (max-width: 1024px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .process-steps::before { display: none; }
}
@media (max-width: 640px) {
    .process-steps { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    text-align: left; /* conteúdo dos cards alinhado à esquerda */
}
.testimonials-header { text-align: center; margin-bottom: clamp(1.4rem, 3vw, 2.1rem); }
.testimonials-title { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; }
.testimonials-subtitle {
    margin: 0.45rem auto 0;
    max-width: 540px;
    color: #9ca3af;
    font-size: clamp(1rem, 2.6vw, 1.12rem);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    gap: clamp(1.1rem, 2.8vw, 1.75rem);
}
.testimonial-card {
    position: relative;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    padding: 1.45rem 1.5rem 1.7rem 1.5rem;
    box-shadow: 0 18px 44px rgba(12,12,22,0.45);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
    width: min(100%, 520px);
    margin: 0 auto;
}
.testimonial-card::after {
    content: '';
    position: absolute;
    left: 10%; right: 10%; bottom: -24px; height: 48px;
    background: radial-gradient(closest-side, rgba(167,139,250,0.28), rgba(167,139,250,0));
    filter: blur(12px);
    z-index: -1;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,0.55);
    background: rgba(17, 24, 39, 0.75);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35), 0 0 30px rgba(167,139,250,0.18);
}

.testimonial-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.who { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.avatar {
    width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 700; color: #fff;
    background: radial-gradient(closest-side, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 24px rgba(139,92,246,0.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who .name { font-weight: 800; display: inline; }
.who .role { color: #9ca3af; font-size: 0.95rem; display: inline; }
.stars { color: #a3e635; letter-spacing: 2px; margin: 0.25rem 0 0.5rem 0; }
.quote { color: #cbd5e1; line-height: 1.75; font-size: 1.05rem; text-align: left; }

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
    max-width: 1100px;
    margin: 3.5rem auto 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.faq-header { text-align: center; margin-bottom: clamp(1.5rem, 3.4vw, 2.2rem); }
.faq-title { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; }
.faq-subtitle {
    color: #9ca3af;
    max-width: 620px;
    margin: 0.6rem auto 0;
    font-size: clamp(1rem, 2.6vw, 1.12rem);
}
.faq-list { display: grid; gap: clamp(0.9rem, 2.4vw, 1.3rem); }
.faq-item {
    background: rgba(15, 17, 26, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 18px;
    padding: clamp(1.1rem, 3vw, 1.5rem);
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
    box-shadow: 0 12px 30px rgba(8, 8, 16, 0.45);
    text-align: left;
}
.faq-item:hover {
    border-color: rgba(167, 139, 250, 0.45);
}
.faq-item[open] {
    border-color: rgba(167, 139, 250, 0.75);
    background: rgba(24, 29, 45, 0.9);
    box-shadow: 0 16px 40px rgba(10, 10, 22, 0.55), 0 0 26px rgba(167, 139, 250, 0.18);
    transform: translateY(-2px);
}
.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    color: #f9fafb;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary {
    color: #ffffff;
}
.faq-question {
    flex: 1;
    font-size: clamp(1.02rem, 2.8vw, 1.16rem);
}
.faq-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.18);
    color: #d8b4fe;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    background: rgba(139, 92, 246, 0.3);
    color: #f5f3ff;
}
.faq-answer {
    margin-top: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.02rem;
    text-align: left;
}

@media (max-width: 640px) {
    .faq {
        margin-top: 3rem;
    }
    .faq-item {
        padding: 1rem 1.1rem 1.1rem 1.1rem;
    }
}

/* CTA band */
.cta-band {
    max-width: 1200px;
    margin: 1.5rem auto 0 auto;
    padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem;
    text-align: center;
}
.cta-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.cta-subtitle { color: #9ca3af; max-width: 780px; margin: 0.6rem auto 1.9rem; }
.cta-band .cta-button { margin-top: 0.2rem; }

/* Footer */
.site-footer {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.18);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: saturate(120%) blur(2px);
    /* expandir para largura total da página, mesmo dentro do main */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    /* usa o mesmo recuo lateral do botão back-to-top para alinhar os ícones */
    padding: 1.25rem clamp(12px, 2vw, 24px) 0.85rem;
    text-align: left;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
}
.footer-logo { width: 100px; height: auto; }
.brand-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.brand-name { display: none; }
.brand-desc { color: #9ca3af; max-width: 360px; text-align: left; }

.footer-title { font-weight: 800; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; text-align: left; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-top: 1rem; padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}
.copyright { color: #9ca3af; font-size: .95rem; }
.socials { display: flex; gap: .5rem; }
.social { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(17,24,39,.6); border: 1px solid rgba(139,92,246,.25); color: #d8b4fe; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.social:hover { transform: translateY(-2px); background: rgba(31,41,55,.8); border-color: rgba(167,139,250,.45); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* elipse pontilhada (trilho) que passa por trás dos cubos */
.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--tilt));
    height: calc(var(--orbit-r) * 2);
    width: calc(var(--orbit-r) * 2 * var(--sx));
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.35); /* linha mais transparente */
    opacity: 1; /* manter a transparência só na cor */
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.25))
            drop-shadow(0 0 12px rgba(168, 85, 247, 0.15));
    animation: orbitNeonPulse 3.6s ease-in-out infinite alternate;
    pointer-events: none;
}

/* brilho externo adicional do neon */
.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--tilt));
    height: calc(var(--orbit-r) * 2);
    width: calc(var(--orbit-r) * 2 * var(--sx));
    border-radius: 50%;
    box-shadow: 0 0 24px 6px rgba(168, 85, 247, 0.10),
                0 0 50px 14px rgba(168, 85, 247, 0.06);
    pointer-events: none;
}

.cube-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* item orbital: aplica a posição na elipse */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    --angle: calc(var(--i, 0) * 60deg);
    transform: rotate(var(--tilt))
               scaleX(var(--sx))
               rotate(var(--angle))
               translate(var(--orbit-r))
               rotate(calc(var(--angle) * -1))
               scaleX(var(--isx))
               rotate(calc(var(--tilt) * -1));
}

.hero-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: transparent; /* remove o fundo do bloco */
    backdrop-filter: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate; /* garante sobreposição correta do anel da logo */
    /* parâmetros do anel da logo */
    --ring-w: 175%;
    --ring-h: 52%;
    --ring-tilt: 0deg; /* horizontal, como no exemplo */
    --ring-thickness: 6px;
    --ring-color: #ffffff;
}

.hero-core img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* sombra sutil + glow neon roxo com pulsação */
    filter:
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 10px rgba(168, 85, 247, 0.85))
        drop-shadow(0 0 24px rgba(168, 85, 247, 0.55))
        drop-shadow(0 0 48px rgba(168, 85, 247, 0.35));
    animation: logoNeon 3.2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

/* anel estilo "saturno" envolvendo a logo (frente e trás) */
/* removido o anel branco da logo */
.hero-core::before,
.hero-core::after {
    content: none !important;
}

.cube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
    opacity: 1;
}

.cube-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube::after { content: none; }

/* flutuação aplicada ao cubo (não ao ícone) */
.cube {
    animation: cubeFloat var(--dur, 3.8s) ease-in-out infinite;
}

@keyframes cubeFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 12px)); }
}

/* distribuição uniforme: 6 itens ao redor (0..5) */
.orbit-item:nth-child(1) { --i: 0; --dur: 4.2s; }
.orbit-item:nth-child(2) { --i: 1; --dur: 3.8s; }
.orbit-item:nth-child(3) { --i: 2; --dur: 4.0s; }
.orbit-item:nth-child(4) { --i: 3; --dur: 4.4s; }
.orbit-item:nth-child(5) { --i: 4; --dur: 3.9s; }
.orbit-item:nth-child(6) { --i: 5; --dur: 4.3s; }

/* removed: .cube-icon (não utilizada) */

/* Ícones nos cubos (Font Awesome) */
.cube .icon,
.cube i,
.cube .fa-solid {
    font-size: clamp(19px, 2.2vw, 28px);
    color: #a78bfa; /* mesma cor dos ícones do about */
    line-height: 1;
}

/* removed: @keyframes float (não utilizado) */

/* leve pulsação do efeito neon */
@keyframes orbitNeonPulse {
    0%   { filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 8px rgba(168, 85, 247, 0.35)); opacity: 0.9; }
    100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.5)); opacity: 1; }
}

/* pulsação do neon na logo */
@keyframes logoNeon {
    0% {
        filter:
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 6px rgba(168, 85, 247, 0.65))
            drop-shadow(0 0 16px rgba(168, 85, 247, 0.4))
            drop-shadow(0 0 28px rgba(168, 85, 247, 0.28));
    }
    100% {
        filter:
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 12px rgba(168, 85, 247, 0.95))
            drop-shadow(0 0 30px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 56px rgba(168, 85, 247, 0.4));
    }
}

/* (removidos os anéis individuais dos cubos) */

/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: clamp(12px, 2vw, 24px);
    bottom: clamp(12px, 2vw, 24px);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #d8b4fe;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: rgba(31, 41, 55, 0.85); }
.back-to-top .fa-solid { font-size: 18px; }

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 3rem 1.5rem;
    }

    .hero-image {
        height: 300px;
        --orbit-r: 140px;
        --sx: 2.1;
        --isx: calc(1 / var(--sx));
        --tilt: 12deg;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    /* A partir de 768px, o nav deixa de ser absoluto e passa a compor a coluna */
    .header nav {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .nav {
        gap: 0.875rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .secondary-button {
        width: 180px;
    }

    /* Oculta o CTA do header em telas pequenas */
    .header .cta-button { display: none; }

    .hero-image {
        height: 240px;
        max-width: 100%;
        /* semi‑eixo vertical do anel no mobile (aprox.) */
        --orbit-r: 110px;
        --sx: 2.2;  /* mantém aspecto do anel próximo ao desktop */
        --isx: calc(1 / var(--sx));
        --tilt: 8deg;
    }

    .hero-core {
        width: 100px;
        height: 100px;
        border-radius: 14px;
    }

    .cube {
        width: 56px;
        height: 56px;
        box-shadow: 0 10px 24px rgba(139, 92, 246, 0.3);
    }
    .cube i,
    .cube .icon,
    .cube .fa-solid { font-size: 24px; }

}

@media (max-width: 480px) {
    .header { padding: 0.75rem 1rem; }

    /* Garantir que o nav continue abaixo do logo no mobile estreito */
    .header nav { position: static; left: auto; transform: none; width: 100%; }

    .logo-image { height: 32px; }

    .badge { font-size: 0.85rem; }

    .hero-description { font-size: 1rem; }

    .buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        max-width: 320px;
    }

    .hero-image {
        height: 180px;                /* mais compacta no mobile */
        max-width: 100%;
        /* dimensiona a elipse em função da viewport para caber na tela */
        --orbit-r: 20vw;              /* semi-eixo vertical relativo à largura */
        --sx: 1.7;                    /* alongamento horizontal menor para não sair da tela */
        --isx: calc(1 / var(--sx));
        --tilt: 6deg;
    }
    .hero-core { width: 84px; height: 84px; }
    .cube { width: 48px; height: 48px; box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28); }
    .cube i,
    .cube .icon,
    .cube .fa-solid { font-size: 20px; }
}
