:root {
    --primary: #6C63FF;
    --secondary: #00D4FF;
    --accent: #FF6584;
    --dark: #0A0E1A;
    --dark2: #0F1525;
    --dark3: #151D35;
    --card: #141929;
    --border: rgba(108, 99, 255, 0.2);
    --text: #E2E8F0;
    --muted: #94A3B8;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
    --gradient-lila: linear-gradient(135deg, #ff63c1 0%, #ab035d 100%);
    --gradient-verde: linear-gradient(135deg, #46c43f 0%, #066311 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background: rgba(10, 14, 26, .85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all .3s;
}

.navbar-brand span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-family: 'Fira Code', monospace;
}

.nav-link {
    color: var(--muted) !important;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .05em;
    transition: color .2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width .3s;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient) !important;
    border: none;
    color: #fff !important;
    border-radius: 50px;
    padding: .4rem 1.2rem !important;
    font-size: .82rem !important;
}

@keyframes darkFade {
    0% {
        background-color: #0f0f4d;
    }

    25% {
        background-color: #0b0a0e;
    }

    50% {
        background-color: #2b0213;
    }

    75% {
        background-color: #390750;
    }

    100% {
        background-color: #4e0707;
    }
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: darkFade 12s ease-in-out infinite alternate;
}

#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(108, 99, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 99, 255, .07) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .3);
    color: var(--secondary);
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    font-family: 'Fira Code', monospace;
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1.2rem;
}

.hero-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-sub strong {
    color: var(--text);
}

.btn-cta {
    background: var(--gradient);
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: .8rem 2rem;
    font-weight: 700;
    font-size: .95rem;
    transition: all .3s;
    box-shadow: 0 0 30px rgba(108, 99, 255, .4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(108, 99, 255, .7);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50px;
    padding: .8rem 2rem;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, .1);
    color: #fff;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.5rem;
}

.tag {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .75rem;
    font-family: 'Fira Code', monospace;
    transition: all .2s;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 99, 255, .08);
}

.code-window {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: .82rem;
    line-height: 1.9;
}

.code-window::before {
    content: '● ● ●';
    color: #444;
    letter-spacing: .3em;
    display: block;
    margin-bottom: 1rem;
    font-size: .7rem;
}

.c-comment {
    color: #555;
}

.c-key {
    color: #6C63FF;
}

.c-str {
    color: #00D4FF;
}

.c-var {
    color: #FF6584;
}

.c-fn {
    color: #FFD700;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--secondary);
    animation: blink .8s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.s-label {
    font-family: 'Fira Code', monospace;
    font-size: .75rem;
    color: var(--primary);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.s-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

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

.s-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
}

/* ABOUT */
#about {
    background: var(--dark2);
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all .3s;
}

.about-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, .15);
}

.about-card .ic {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(108, 99, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h5 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.about-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.hl-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, .12), rgba(0, 212, 255, .06));
    border: 1px solid rgba(108, 99, 255, .25);
    border-radius: 20px;
    padding: 2.5rem;
}

.hl-box p {
    color: var(--muted);
    line-height: 1.85;
    font-size: .97rem;
}

.hl-box strong {
    color: #fff;
}

/* COUNTERS */
#counters {
    background: var(--dark3);
}

.cnt-card {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.cnt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.cnt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(108, 99, 255, .2);
    border-color: var(--primary);
}

.cnt-num {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: .3rem;
}

.cnt-label {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
}

.cnt-sub {
    color: #8d8d8d;
    font-size: .72rem;
    font-family: 'Fira Code', monospace;
    margin-top: .3rem;
}

/* CASES */
#cases {
    background: var(--dark2);
}

.case-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all .35s;
}

.case-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(108, 99, 255, .2);
}

.case-num {
    font-family: 'Fira Code', monospace;
    font-size: .7rem;
    color: var(--primary);
    background: rgba(108, 99, 255, .12);
    padding: .2rem .6rem;
    border-radius: 4px;
    margin-bottom: .8rem;
    display: inline-block;
}

.case-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lbl {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.lbl-p {
    color: var(--accent);
}

.lbl-s {
    color: var(--secondary);
}

.lbl-r {
    color: #22c55e;
}

.case-text {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.55;
    margin-bottom: .8rem;
}

.btn-more {
    margin-top: .5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    transition: all .2s;
    cursor: pointer;
}

.btn-more:hover {
    background: rgba(108, 99, 255, .15);
    border-color: var(--primary);
}

/* SOFTWARE */
#software {
    background: var(--dark3);
}

.sw-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all .3s;
}

.sw-card:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, .08);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, .15);
}

.sw-icon {
    font-size: 1.8rem;
    margin-bottom: .7rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sw-card p {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.3;
}

.sw-badge {
    font-size: .65rem;
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 4px;
    padding: .1rem .4rem;
    margin-top: .3rem;
    display: inline-block;
    font-family: 'Fira Code', monospace;
}

/* TESTIMONIALS */
#testimonials {
    background: var(--dark2);
}

.test-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all .3s;
}

.test-card:hover {
    border-color: rgba(108, 99, 255, .5);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, .15);
}

.test-quote {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: .3;
    line-height: 1;
    margin-bottom: .5rem;
    font-family: Georgia, serif;
}

.test-text {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.test-stars {
    color: #FFD700;
    font-size: .85rem;
    margin-bottom: .8rem;
}

.test-author {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.test-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}

.test-av.lila {
    background: var(--gradient-lila);
}

.test-av.verde {
    background: var(--gradient-verde);
}

.test-name {
    font-weight: 700;
    font-size: .9rem;
}

.test-role {
    color: var(--muted);
    font-size: .78rem;
}

/* CTA */
#cta {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, .15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, .12), rgba(0, 212, 255, .06));
    border: 1px solid rgba(108, 99, 255, .3);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

footer span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

@media(max-width:768px) {
    section {
        padding: 70px 0;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}