:root {
    --bg-color: #0d1117;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --primary: #58a6ff;
    --secondary: #238636;
    --accent: #bc8cff;
    --card-bg: rgba(22, 27, 34, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #58a6ff 0%, #bc8cff 100%);
    --gradient-2: linear-gradient(135deg, #1f6feb 0%, #d2a8ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background grid noise/effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

/* Glow effect moving with cursor */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: width 0.3s, height 0.3s;
}

/* Typography basics */
h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 3vw, 2.5rem); }
p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}
.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.5);
    background: var(--gradient-2);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}
.flex-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
}
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.hero-content p {
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visual & Glassmorphism */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.glass-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(88, 166, 255, 0.2);
}
.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot.close { background: #ff5f56; }
.dot.minimize { background: #ffbd2e; }
.dot.maximize { background: #27c93f; }

.code-block pre {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
}
.shape-1 {
    width: 300px; height: 300px;
    background: var(--primary);
    top: -50px; right: -50px;
    animation: float 8s infinite alternate ease-in-out;
}
.shape-2 {
    width: 200px; height: 200px;
    background: var(--accent);
    bottom: -20px; left: -20px;
    animation: float 6s infinite alternate-reverse ease-in-out;
}
.shape-3 {
    width: 150px; height: 150px;
    background: var(--secondary);
    top: 50%; left: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

/* Features Section */
.features {
    padding: 6rem 5%;
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title p {
    margin-top: 1rem;
}

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

.feature-card {
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.feature-card:hover::before {
    opacity: 0.05;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    text-align: center;
    background: rgba(13, 17, 23, 0.9);
}

/* Animations */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 40px) rotate(15deg); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .cta-group {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 3rem;
    }
    nav ul {
        display: none;
    }
}

/* Modificaciones de la Versión 2.0 */
.update-badge {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.new-feature {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.05) !important;
}
.new-feature .icon {
    color: #2ecc71;
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}
.new-feature::before {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}
