:root {
    --color-bg: #0b0b0b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #7c3aed;
    /* Roxo principal */
    --color-primary-dark: #5b21b6;
    --color-primary-glow: rgba(124, 58, 237, 0.4);
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-purple {
    color: var(--color-primary);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow-container {
    max-width: 800px;
}

.glass {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-heading);
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-glass-border);
    color: #fff;
}

.btn--outline:hover {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn--full {
    width: 100%;
}

/* Components */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 100;
    padding: 1rem 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar__links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar__links a:not(.btn):hover {
    color: #fff;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 99px;
    font-size: 0.875rem;
    color: #a78bfa;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__proof {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-item .count-up {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.proof-item .label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.separator {
    width: 1px;
    height: 30px;
    background: var(--color-glass-border);
}

/* 3D Orb */
.orb-container {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed, #000);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.4);
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
}

.orb-ring.spinning {
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    animation: spin 20s linear infinite;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.4);
}

.card__icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card__list {
    list-style: none;
}

.card__list li {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.border-purple {
    border: 1px solid rgba(124, 58, 237, 0.5);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

/* Differentials */
.row {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.col-half {
    flex: 1;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.check-icon {
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.tech-stack-visual {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #a78bfa;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Projects Section */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Adjusted for density */
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease;
    border: 1px solid var(--color-glass-border);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.2);
}


/* --- ABSTRACT UI MOCKUPS (CSS-Only) --- */
.project-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0f;
    /* Deep Dark Base */
    overflow: hidden;
    transition: transform 0.6s ease;
}

.project-card:hover .project-visual {
    transform: scale(1.03);
    /* Subtle zoom */
}

/* Base Mockup Window */
.ui-mockup {
    width: 85%;
    height: 80%;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) rotateZ(2deg);
    transition: transform 0.4s ease;
}

.project-card:hover .ui-mockup {
    transform: perspective(1000px) rotateX(0) rotateY(0) rotateZ(0) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mockup Header */
.ui-header {
    height: 14%;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.ui-dots {
    display: flex;
    gap: 4px;
}

.ui-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.ui-bar-sm {
    width: 30%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-left: auto;
}

/* Mockup Body */
.ui-body {
    flex: 1;
    padding: 12px;
    position: relative;
    display: flex;
    gap: 8px;
}

/* --- THEMED MOCKUPS --- */

/* 1. Cyber (Hades) */
.cyber-mockup .ui-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
}

.ui-sidebar {
    background: rgba(34, 197, 94, 0.05);
    border-radius: 4px;
    height: 100%;
    border: 1px dashed rgba(34, 197, 94, 0.2);
}

.ui-grid-main {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.ui-panel {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.ui-scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #22c55e;
    top: 0;
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* 2. Fintech (Aurora) */
.fintech-mockup .ui-body {
    flex-direction: column;
    gap: 10px;
}

.ui-balance {
    height: 20%;
    width: 50%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.ui-chart-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    padding-bottom: 5px;
}

.ui-bar {
    width: 12%;
    border-radius: 2px 2px 0 0;
    background: rgba(96, 165, 250, 0.3);
}

.ui-bar:nth-child(2) {
    height: 40%;
}

.ui-bar:nth-child(3) {
    height: 70%;
    background: #60a5fa;
}

.ui-bar:nth-child(4) {
    height: 50%;
}

/* 3. Commerce (Neon) */
.commerce-mockup .ui-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ui-product-card {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
    height: 60px;
    position: relative;
}

.ui-product-img {
    height: 60%;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px 4px 0 0;
}

/* 4. Tracking (Orbital) */
.tracking-mockup .ui-body {
    position: relative;
}

.ui-map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.ui-pin {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px #10b981;
}

.ui-pin:nth-child(1) {
    top: 30%;
    left: 40%;
    animation: pulse 2s infinite;
}

.ui-pin:nth-child(2) {
    top: 60%;
    left: 70%;
    animation: pulse 2s infinite 0.5s;
}

/* 5. AI (Cortex) */
.ai-mockup .ui-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ui-brain-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #2dd4bf;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-brain-center {
    width: 10px;
    height: 10px;
    background: #2dd4bf;
    border-radius: 50%;
}

.ui-node-line {
    width: 60px;
    height: 1px;
    background: rgba(45, 212, 191, 0.4);
}

/* 6. Crypto (Krypto) */
.crypto-mockup .ui-body {
    flex-direction: column;
}

.ui-ticker {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.ui-coin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
}

.ui-line-chart {
    flex: 1;
    border-left: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
}

.ui-trend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 80%;
    height: 2px;
    background: #f59e0b;
    transform: rotate(-15deg);
    transform-origin: left bottom;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}


.project-info {
    position: relative;
    z-index: 10;
    margin: 1.5rem;
    padding: 1.5rem;
    background: rgba(11, 11, 11, 0.6);
    /* Darker glass for readability */
    backdrop-filter: blur(16px);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-tags span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.btn-link:hover {
    gap: 0.75rem;
    color: var(--color-primary);
}

/* --- LEAD GEN 2.0 (Calculator & Chat) --- */

/* Modal Backdrop */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    width: 100%;
    max-width: 42rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(to right, rgba(88, 28, 135, 0.2), transparent);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.close-btn {
    color: var(--color-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--color-text);
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    position: relative;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Grid Layouts */
.options-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Calculator Options */
.calc-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calc-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.3);
}

.calc-option.selected {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.option-icon {
    margin-bottom: 0.5rem;
    display: block;
}

.option-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.option-desc {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* Calculator Checkboxes */
.calc-check {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.check-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox i {
    opacity: 0;
    width: 0.75rem;
    height: 0.75rem;
}

.calc-check:hover {
    background: rgba(255, 255, 255, 0.08);
}

.calc-check.selected {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--color-primary);
}

.calc-check.selected .checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.calc-check.selected .checkbox i {
    opacity: 1;
}

/* Step 3: Result Styles */
.success-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.success-icon-lg {
    width: 2.5rem;
    height: 2.5rem;
    color: #22c55e;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.result-desc {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.highlight-text {
    color: var(--color-text);
    font-weight: 700;
}

.price-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: transparent;
    background-clip: text;
    /* Lint fix ID: ec1a0e67... */
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #60a5fa, #c084fc);
}

.btn--highlight {
    background: #25D366;
    color: #000;
    font-weight: 700;
}

.btn--highlight:hover {
    background: #20bd5a;
}

.legal-text {
    font-size: 0.625rem;
    color: var(--color-gray);
    margin-top: 0.75rem;
    text-align: center;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    background: #0a0a0a;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--color-text);
}

.btn-text:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--light {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn--light:hover {
    background: #e5e5e5;
}

.btn--light:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Chat Widget --- */
.chat-widget-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
    /* Let clicks pass through container area */
}

.chat-bubble {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1rem;
    border-radius: 1rem;
    border-top-right-radius: 0.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.chat-bubble.open {
    transform: scale(1);
    /* opacity handled by scale for pop effect */
}

.bubble-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bot-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-avatar i {
    color: var(--color-text);
    width: 1.25rem;
    height: 1.25rem;
}

.bot-name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}


.bot-message {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
    white-space: pre-wrap;
}

.chat-options-container {

    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-btn {
    text-align: left;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.chat-btn--primary {
    background: #000;
    color: #fff;
}

.chat-btn--primary:hover {
    background: #333;
}

.chat-btn--secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.chat-btn--secondary:hover {
    background: #e5e7eb;
}

/* Floating Toggle Button */
.chat-toggle-btn {
    pointer-events: auto;
    background: var(--color-primary);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #6d28d9;
    /* Darker purple */
}

.chat-toggle-btn:active {
    transform: scale(0.9);
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #000;
    z-index: 10;
}

.icon-msg,
.icon-close {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    transition: transform 0.2s;
}

.group:hover .icon-msg {
    transform: scale(0);
}

.icon-close {
    transform: scale(0);
}

.group:hover .icon-close {
    transform: scale(1);
}

/* Utilities */
.text-purple {
    color: var(--color-primary);
}

.text-blue {
    color: #60a5fa;
}

.text-green {
    color: #4ade80;
}

.btn--full {
    width: 100%;
}

/* Custom Scroll for Modal */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* --- ULTIMATE UPGRADE STYLES --- */

/* 1. Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(124, 58, 237, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-dot {
    opacity: 1;
}

/* Cursor Interactions */
.hover-target {
    cursor: none;
}

body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline,
body:has(.card:hover) .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(124, 58, 237, 0.1);
    border-color: var(--color-primary);
}

/* 2. Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ec4899);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--color-primary);
}

/* 3. Tech Stack Marquee */
.tech-stack {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 3rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--color-gray);
    font-size: 1.125rem;
}

.tech-item i {
    color: var(--color-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 4. Process Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    width: 2px;
    background: rgba(124, 58, 237, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    top: 24px;
    right: -8px;
    z-index: 10;
    box-shadow: 0 0 10px var(--color-primary);
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 22px;
    }
}

/* 5. Newsletter */
.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.glow-purple {
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    outline: none;
    min-width: 200px;
}

.newsletter-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* 6. Utility Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: var(--color-primary);
    color: white;
}

.btn-link i {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 350px;
    }
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    opacity: 0.8;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* arbitrary height for transition */
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    position: relative;
    border: 1px solid var(--color-glass-border);
}

.quote-icon {
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-text {
    position: relative;
    z-index: 2;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.bg-purple {
    background: #a78bfa;
}

.bg-green {
    background: #34d399;
}

.bg-blue {
    background: #60a5fa;
}



/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    /* Solid Black */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 140px;
    /* Slightly larger for presence */
    height: auto;
    /* This ensures any black background in the image becomes transparent */
    mix-blend-mode: screen;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(124, 58, 237, 0.4));
    animation: pulseLogo 2.5s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.7;
        filter: brightness(1) drop-shadow(0 0 5px rgba(124, 58, 237, 0.2));
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
        filter: brightness(1) drop-shadow(0 0 5px rgba(124, 58, 237, 0.2));
    }
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}


/* Particles Canvas */
#heroParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content (2) but above bg (0) */
    pointer-events: none;
    /* Let clicks pass through */
}


/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.05);
}

.contact__wrapper {
    padding: 3rem;
}

.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 48px;
    height: 48px;
    color: #10b981;
}


/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;

    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-glass-border);
    margin-top: 4rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__rights {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero__proof {
        justify-content: center;
    }

    .row {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact__wrapper {
        padding: 1.5rem;
    }

    .orb-container {
        margin: 0 auto;
        width: 300px;
        height: 300px;
    }

    .orb {
        width: 180px;
        height: 180px;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.squad .card {
    transition: transform 0.3s, background 0.3s;
}

.squad .card:hover {
    background: rgba(255, 255, 255, 0.08);
    /* slightly lighter */
}

/* 8. Exit Intent Modal Specifics */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Utility: Background Gradients */
.bg-purple-900 {
    background-color: #581c87;
}

.bg-blue-900 {
    background-color: #1e3a8a;
}

.bg-green-900 {
    background-color: #14532d;
}

.text-purple-400 {
    color: #c084fc;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-green-400 {
    color: #4ade80;
}


/* ----------------------------------------------------
   NEXUS INTELLIGENCE WIDGET (Premium Dark Glass)
---------------------------------------------------- */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.chat-toggle-btn .icon-msg,
.chat-toggle-btn .icon-close {
    position: absolute;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

.chat-toggle-btn .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-toggle-btn.open .icon-msg {
    opacity: 0;
    transform: rotate(90deg);
}

.chat-toggle-btn.open .icon-close {
    opacity: 1;
    transform: rotate(0);
}


/* Chat Bubble (The Window) */
#chatWidgetBubble {
    width: 350px;
    background: transparent !important;
    /* Killer fix */
    box-shadow: none !important;
    /* Killer fix */
    border: none !important;
    /* Killer fix */
    border-radius: 16px;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
}

#chatWidgetBubble.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}


/* Inner Content (Glass Effect) */
.bubble-content {
    background: rgba(15, 15, 20, 0.85);
    /* Dark Void */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Header Gradient Line */
.bubble-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
}

/* Bot Identity */
.bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.bot-avatar svg {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

.bot-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-name::after {
    content: '• Online';
    font-size: 0.65rem;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.bot-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 0 12px 12px 12px;
    /* Chat bubble shape */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Options / Buttons */
.chat-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.chat-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    /* Slight movement */
}

.chat-btn--primary {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    border-color: rgba(139, 92, 246, 0.4);
    font-weight: 600;
}

.chat-btn--primary:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid #000;
    border-radius: 50%;
    z-index: 2;
}

/* ----------------------------------------------------
   WHATSAPP FIX (Stacked)
---------------------------------------------------- */
.floating-whatsapp {
    /* Use fixed here to ensure it stays in place, but adjust bottom to be ABOVE chat */
    position: fixed !important;
    bottom: 90px !important;
    /* Stacked above the 60px chat button + 20px gap */
    right: 20px !important;
    width: 50px !important;
    /* Slightly smaller to respect hierarchy */
    height: 50px !important;
    z-index: 9999 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background: #25d366;
    /* Ensuring visible background */
}