/* ===========================
   MARILBEN
   Modern Tech Theme
=========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}

/* Scroll */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 50px;
}

::-webkit-scrollbar-track {
    background: #090909;
}

/* Background */
.background-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -4;
}

/* Purple Glow */
.gradient-purple {
    position: fixed;
    width: 650px;
    height: 650px;
    background: #6d28d9;
    filter: blur(170px);
    opacity: .18;
    top: -180px;
    left: -150px;
    z-index: -3;
    animation: floatPurple 10s ease-in-out infinite;
}

.gradient-blue {
    position: fixed;
    width: 650px;
    height: 650px;
    background: #2563eb;
    filter: blur(170px);
    opacity: .14;
    bottom: -220px;
    right: -180px;
    z-index: -3;
    animation: floatBlue 12s ease-in-out infinite;
}

@keyframes floatPurple {
    0% { transform: translateY(0px); }
    50% { transform: translateY(50px); }
    100% { transform: translateY(0); }
}

@keyframes floatBlue {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

/* NAVBAR */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(18px);
    background: rgba(5,5,5,.45);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.navbar {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.navbar a {
    text-decoration: none;
    color: white;
    transition: .3s;
}

.navbar a:hover {
    color: #8b5cf6;
}

.btn-nav {
    padding: 13px 28px;
    border-radius: 50px;
    background: linear-gradient(90deg,#6d28d9,#2563eb);
    font-weight: 600;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    padding: 140px 20px 50px;
    gap: 70px;
}

.badge {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50px;
    margin-bottom: 30px;
    color: #b7b7b7;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    color: #bdbdbd;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 45px;
}

.btn-primary {
    padding: 16px 38px;
    background: linear-gradient(90deg,#6d28d9,#2563eb);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(99,102,241,.5);
}

.btn-secondary {
    padding: 16px 38px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    text-decoration: none;
    color: white;
}

.hero-card {
    display: flex;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 520px;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(99,102,241,.15);
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 18px;
    background: #131313;
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header span:nth-child(1) { background: #ff5f57; }
.terminal-header span:nth-child(2) { background: #febc2e; }
.terminal-header span:nth-child(3) { background: #28c840; }

pre {
    padding: 30px;
    font-size: 15px;
    line-height: 2;
    color: #6EE7B7;
    overflow: auto;
}

/* Sections */
section {
    padding: 120px 20px;
}

section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 70px;
}

/* Cards */
.cards {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 40px;
    transition: .4s;
    backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 0 0 40px rgba(99,102,241,.2);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.card p {
    color: #bababa;
    line-height: 1.8;
}

/* Tech */
.tech-grid {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.tech-grid span {
    padding: 16px 28px;
    border-radius: 50px;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    transition: .3s;
}

.tech-grid span:hover {
    background: #6d28d9;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.stats h2 {
    font-size: 65px;
    color: #6d28d9;
    margin-bottom: 10px;
}

.stats p {
    color: #aaa;
}

/* Footer */
footer {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.05);
    background: #090909;
}

footer h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

footer p {
    color: #8f8f8f;
    margin: 10px;
}

/* ==========================
   Responsive (corregido)
=========================== */
@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin: auto;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .navbar ul {
        display: none;
    }
    .hero h1 {
        font-size: 48px;
    }
    .stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   Animaciones (corregido, fuera del @media)
=========================== */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s;
}

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

.mouse-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.15), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(20px);
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}