/* ===== Reset e Variáveis ===== */
:root {
    --primary: #8855e6;
    --primary-light: #a97dff;
    --primary-dark: #6633cc;
    --bg-dark: #0A0A0F;
    --bg-deep: #06060A;
    --bg-card: #12121A;
    --bg-card-hover: #171724;
    --text-main: #E8E8F0;
    --text-muted: #8B8B9E;
    --border-soft: rgba(136, 85, 230, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-brand: 'Roboto', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== Fundo ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(136, 85, 230, 0.12), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(136, 85, 230, 0.08), transparent 55%),
        linear-gradient(180deg, #0A0A0F 0%, #0D0D15 40%, #0A0A0F 100%);
    z-index: -3;
    pointer-events: none;
}

.tech-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(136, 85, 230, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(136, 85, 230, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: -2;
    pointer-events: none;
}

/* ===== Fantasmas flutuantes ===== */
.ghost-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-ghost {
    position: absolute;
    color: var(--primary);
    opacity: 0.06;
    animation: floatGhost 14s ease-in-out infinite;
    will-change: transform;
}

.floating-ghost.g1 { top: 15%; left: 8%;  width: 80px;  animation-delay: 0s;   opacity: 0.05; }
.floating-ghost.g2 { top: 55%; right: 10%; width: 120px; animation-delay: -3s;  opacity: 0.04; }
.floating-ghost.g3 { top: 80%; left: 20%;  width: 60px;  animation-delay: -6s;  opacity: 0.07; }
.floating-ghost.g4 { top: 30%; right: 25%; width: 45px;  animation-delay: -9s;  opacity: 0.05; }

@keyframes floatGhost {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-30px) rotate(6deg); }
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(136, 85, 230, 0.5) 30%,
        rgba(136, 85, 230, 0.8) 50%,
        rgba(136, 85, 230, 0.5) 70%,
        transparent 100%);
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.ghost-logo {
    filter: drop-shadow(0 0 10px rgba(136, 85, 230, 0.6));
    transition: filter 0.3s ease, transform 0.3s ease;
    object-fit: contain;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(136, 85, 230, 0.5)); }
    50%      { filter: drop-shadow(0 0 16px rgba(136, 85, 230, 0.95)); }
}

.logo:hover .ghost-logo {
    transform: translateY(-2px) scale(1.05);
}

/* Logo GhostWare - Roboto 400 + 300 */
.logo-text {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

.logo-ghost {
    font-weight: 400;
    color: var(--text-main);
}

.logo-ware {
    font-weight: 300;
    color: var(--primary);
    margin-left: 1px;
}

/* Nav */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-cta):hover {
    color: var(--text-main);
}

.nav-links a:not(.btn-cta):hover::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(136, 85, 230, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(136, 85, 230, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ghost-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(136, 85, 230, 0.18) 0%, rgba(10,10,15,0) 70%);
    top: -25%;
    right: -15%;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 20s ease-in-out infinite;
}

.ghost-orb-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(136, 85, 230, 0.12) 0%, rgba(10,10,15,0) 70%);
    bottom: -15%;
    left: -12%;
    border-radius: 50%;
    filter: blur(50px);
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.ghost-orb-3 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(136, 85, 230, 0.1) 0%, rgba(10,10,15,0) 70%);
    top: 30%;
    left: 40%;
    border-radius: 50%;
    filter: blur(70px);
    animation: orbFloat 30s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -30px); }
}

.hero-content {
    max-width: 850px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(136, 85, 230, 0.1);
    border: 1px solid rgba(136, 85, 230, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(136, 85, 230, 0.15);
    z-index: -1;
    border-radius: 4px;
}

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

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 30px rgba(136, 85, 230, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(136, 85, 230, 0.55);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(136, 85, 230, 0.05);
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
}

.stat span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* ===== Sections comuns ===== */
section {
    padding: 7rem 5%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1px;
    background: var(--primary);
}

h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.15;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 620px;
    font-size: 1.05rem;
}

/* ===== Serviços ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(160deg, var(--bg-card), rgba(18,18,26,0.6));
    padding: 2.2rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(136, 85, 230, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(136, 85, 230, 0.4);
    background: linear-gradient(160deg, var(--bg-card-hover), rgba(18,18,26,0.8));
}

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

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 85, 230, 0.1);
    border: 1px solid rgba(136, 85, 230, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

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

/* ===== Soluções em Destaque ===== */
.solutions-section {
    background: linear-gradient(180deg, transparent, rgba(136, 85, 230, 0.02), transparent);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.solution-card {
    background: linear-gradient(160deg, var(--bg-card), rgba(18,18,26,0.6));
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(136, 85, 230, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(136, 85, 230, 0.4);
    background: linear-gradient(160deg, var(--bg-card-hover), rgba(18,18,26,0.85));
}

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

.solution-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 85, 230, 0.1);
    border: 1px solid rgba(136, 85, 230, 0.25);
    border-radius: 12px;
    margin-bottom: 1.3rem;
    color: var(--primary);
    transition: transform 0.4s ease, background 0.4s ease;
    flex-shrink: 0;
}

.solution-icon svg {
    width: 24px;
    height: 24px;
}

.solution-card:hover .solution-icon {
    transform: scale(1.06) rotate(-4deg);
    background: rgba(136, 85, 230, 0.18);
}

.solution-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--text-main);
}

.solution-symptoms {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.9rem;
    background: rgba(136, 85, 230, 0.04);
    border-left: 2px solid rgba(136, 85, 230, 0.4);
    border-radius: 4px;
    line-height: 1.55;
}

.solution-symptoms strong {
    color: var(--primary-light);
    font-weight: 600;
}

.solution-fix {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.solution-includes {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
    flex-grow: 1;
}

.solution-includes li {
    font-size: 0.83rem;
    color: var(--text-main);
    padding: 0.3rem 0 0.3rem 1.3rem;
    position: relative;
}

.solution-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(136, 85, 230, 0.6);
}

.solution-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.solution-link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ===== Projetos Realizados ===== */
.projects-section {
    background:
        radial-gradient(ellipse at top right, rgba(136, 85, 230, 0.05), transparent 60%),
        transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.project-card {
    background: linear-gradient(160deg, var(--bg-card), rgba(18,18,26,0.5));
    padding: 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.5s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(136, 85, 230, 0.4);
    background: linear-gradient(160deg, var(--bg-card-hover), rgba(18,18,26,0.75));
}

.project-card:hover::after {
    width: 100%;
}

.project-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: rgba(136, 85, 230, 0.08);
    border: 1px solid rgba(136, 85, 230, 0.25);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.9rem;
    align-self: flex-start;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    line-height: 1.3;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

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

.project-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    opacity: 0.8;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.project-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

/* ===== Diferenciais ===== */
.features-section {
    background: linear-gradient(180deg, transparent, rgba(136, 85, 230, 0.03), transparent);
}

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

.feature {
    text-align: left;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 85, 230, 0.08);
    border: 1px solid rgba(136, 85, 230, 0.2);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    color: var(--primary);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature:hover .feature-icon {
    background: rgba(136, 85, 230, 0.15);
    border-color: rgba(136, 85, 230, 0.5);
    transform: translateY(-2px);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

/* ===== Sobre ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-main);
    font-size: 0.95rem;
}

.about-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-ghost {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(136, 85, 230, 0.25), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(136, 85, 230, 0.15), transparent 60%);
    border-radius: 50%;
    border: 1px solid rgba(136, 85, 230, 0.2);
    position: relative;
    animation: ghostHover 6s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(136, 85, 230, 0.15) inset, 0 0 60px rgba(136, 85, 230, 0.1);
}

.abstract-ghost::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(136, 85, 230, 0.25);
    border-radius: 50%;
    animation: spinSlow 40s linear infinite;
}

.big-ghost {
    width: 55%;
    height: auto;
    color: var(--primary);
    filter: drop-shadow(0 0 30px rgba(136, 85, 230, 0.7));
    animation: ghostBob 4s ease-in-out infinite;
}

@keyframes ghostHover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes ghostBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 820px;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(136, 85, 230, 0.4);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    padding-right: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary-light);
}

.faq-item p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item strong {
    color: var(--primary);
}

/* ===== CTA Final ===== */
.cta-section {
    padding: 4rem 5% 8rem;
}

.cta-box {
    background:
        radial-gradient(ellipse at top left, rgba(136, 85, 230, 0.15), transparent 60%),
        linear-gradient(160deg, var(--bg-card), rgba(18,18,26,0.5));
    border: 1px solid rgba(136, 85, 230, 0.25);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '👻';
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 12rem;
    opacity: 0.04;
    pointer-events: none;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

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

.cta-box .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* ===== Rodapé ===== */
footer {
    background: #06060A;
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(136, 85, 230, 0.15);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-info h3 .logo-ghost {
    font-weight: 400;
}

.footer-info h3 .logo-ware {
    font-weight: 300;
    color: var(--primary);
}

.footer-info p, .footer-links li, .footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Footer links com ícones */
.footer-contact p {
    margin-bottom: 0.7rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
    word-break: break-word;
}

.footer-link svg {
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-link:hover svg {
    transform: scale(1.1);
}

/* ===== Menu Mobile ===== */
@media (max-width: 768px) {
    /* Botão hamburguer estilizado */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        width: 42px;
        height: 42px;
        background: rgba(136, 85, 230, 0.08);
        border: 1px solid rgba(136, 85, 230, 0.25);
        border-radius: 10px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(136, 85, 230, 0.15);
        border-color: rgba(136, 85, 230, 0.5);
    }

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

    .menu-toggle span:nth-child(2) {
        width: 14px;
        margin-left: -6px;
    }

    .menu-toggle:hover span:nth-child(2) {
        width: 20px;
        margin-left: 0;
    }

    .menu-toggle.active {
        background: rgba(136, 85, 230, 0.2);
        border-color: rgba(136, 85, 230, 0.6);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 20px;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
        margin-left: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 20px;
    }

    /* Gaveta de navegação */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(160deg, #0D0D15 0%, #0A0A0F 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.3rem;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid rgba(136, 85, 230, 0.25);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        overflow-y: auto;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(136, 85, 230, 0.8), transparent);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        font-size: 1.05rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: 10px;
        color: var(--text-main);
        transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
        position: relative;
        letter-spacing: 0.3px;
    }

    .nav-links a:not(.btn-cta)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: var(--primary);
        border-radius: 0 3px 3px 0;
        transition: height 0.3s ease;
    }

    .nav-links a:not(.btn-cta):hover,
    .nav-links a:not(.btn-cta):active {
        background: rgba(136, 85, 230, 0.08);
        color: var(--primary-light);
        padding-left: 1.5rem;
    }

    .nav-links a:not(.btn-cta):hover::before,
    .nav-links a:not(.btn-cta):active::before {
        height: 60%;
    }

    .nav-links a:not(.btn-cta)::after {
        display: none;
    }

    .nav-links .btn-cta {
        margin-top: 1.5rem;
        text-align: center;
        justify-content: center;
        font-weight: 600;
        padding: 1rem 1.2rem;
        color: white !important;
        font-size: 1rem;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== Responsividade ===== */
@media (max-width: 900px) {
    .hero-section h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { order: -1; }
    .abstract-ghost { max-width: 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header { padding: 0.9rem 5%; }

    .hero-section { padding: 7rem 5% 3rem; }
    .hero-section h1 { font-size: 2.3rem; letter-spacing: -1px; }
    .hero-sub { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .hero-stats { gap: 2rem; }
    .stat strong { font-size: 1.5rem; }
    .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.8rem; }

    section { padding: 5rem 5%; }
    h2 { font-size: 2rem; }
    .section-desc { margin-bottom: 2.5rem; }

    /* Logo menor no celular */
    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .ghost-logo {
        width: 28px;
        height: 28px;
    }

    /* Soluções em Destaque - mobile */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .solution-icon {
        width: 46px;
        height: 46px;
    }

    .solution-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Projetos - mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-box { padding: 3rem 1.5rem; }
    .cta-box::before { font-size: 8rem; }

    .floating-ghost.g2, .floating-ghost.g4 { display: none; }

@media (max-width: 768px) {
    .cta-section .cta-box .btn-primary {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 1rem 1.5rem !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .cta-section .cta-box .btn-primary svg {
        display: inline-block !important;
        vertical-align: middle !important;
        width: 16px !important;
        height: 16px !important;
        margin-left: 6px !important;
        margin-bottom: 2px !important;
    }
}