/* ==== RESET & FONTS ==== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; scroll-behavior:smooth; }
body {
    font-family: 'Satoshi', sans-serif;
    background: linear-gradient(135deg, #0B0F1A 0%, #0F1626 100%);
    color: #e0f0e8;
    overflow-x: hidden;
    position: relative;
}

/* ==== ANIMATED ORBS ==== */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #00D26A, transparent);
    top: -10%; left: -10%;
    animation: float 18s infinite ease-in-out;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7B61FF, transparent);
    bottom: -15%; right: -10%;
    animation: float 22s infinite ease-in-out reverse;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -60px) scale(1.1); }
}

/* ==== HERO SECTION ==== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.hero-content {
    background: rgba(15, 20, 35, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 60px 50px;
    border-radius: 28px;
    text-align: center;
    max-width: 780px;
    width: 100%;
    border: 1px solid rgba(0, 210, 106, 0.25);
    box-shadow:
        0 0 40px rgba(0, 210, 106, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: cardRise 1.2s ease-out;
}
.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,210,106,0.1), transparent 50%);
    pointer-events: none;
}
@keyframes cardRise {
    from { opacity:0; transform: translateY(30px) scale(0.98); }
    to { opacity:1; transform: translateY(0) scale(1); }
}

/* Logo */
.hero-logo {
    height: 78px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 16px rgba(0,210,106,0.6));
    transition: all 0.4s ease;
}
.hero-logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 24px rgba(0,210,106,0.8));
}

/* Title */
.hero-content h1 {
    font-family: 'Clash Display', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00D26A, #7B61FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Tagline */
.tagline {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #b0e6c8;
    margin: 20px 0 32px;
}
.highlight {
    background: linear-gradient(90deg, #7B61FF, #00D26A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* ==== NAVIGATION ==== */
.main-nav { margin: 32px 0; }
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    font-weight: 500;
}
.nav-link {
    color: #c0f0d8;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: #fff;
    background: rgba(0, 210, 106, 0.15);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 30, 0.95);
    min-width: 280px;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 106, 0.3);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.dropdown-menu li a {
    display: block;
    padding: 0.85rem 1.2rem;
    color: #c0f0d8;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.dropdown-menu li a:hover {
    background: rgba(0, 210, 106, 0.2);
    color: #fff;
    padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    top: 24px; right: 24px;
    z-index: 10;
}
.mobile-toggle span {
    width: 28px; height: 3px;
    background: #00D26A;
    border-radius: 3px;
    transition: 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00D26A, #00A854);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 210, 106, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 5;
}
.cta-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: 0.6s;
}
.cta-btn:hover::before { transform: translateX(100%); }
.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 210, 106, 0.4);
}
.cta-btn .arrow {
    width: 18px; height: 18px; fill: white; transition: 0.3s;
}
.cta-btn:hover .arrow { transform: translateX(4px); }

/* Login Button (IoT console) */
.login-btn {
    background: linear-gradient(135deg, #7B61FF, #5A3FD1);
    color: white !important;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.3);
    display: inline-block;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 97, 255, 0.4);
    background: linear-gradient(135deg, #5A3FD1, #7B61FF);
}

/* Footer */
.hero-content footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #809080;
}

/* ==== MODAL ==== */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: rgba(15, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 520px; width: 100%;
    border: 1px solid rgba(0, 210, 106, 0.4);
    position: relative;
    animation: modalPop 0.4s ease-out;
}
@keyframes modalPop {
    from { opacity:0; transform: scale(0.92); }
    to { opacity:1; transform: scale(1); }
}
.close {
    position: absolute; top: 16px; right: 20px;
    font-size: 2rem; color: #00D26A; cursor: pointer;
    transition: 0.3s;
}
.close:hover { transform: scale(1.2); }
.modal h2 {
    color: #00D26A;
    margin-bottom: 1.5rem;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    color: #b0e6c8; font-weight: 500; font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.9rem;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(0, 210, 106, 0.3);
    border-radius: 12px;
    color: #e0f0e8;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D26A;
    box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.2);
    background: rgba(10, 15, 30, 0.8);
}
.modal-submit {
    width: 100%; justify-content: center; margin-top: 1rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content { padding: 50px 40px; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-list {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10, 15, 30, 0.98);
        flex-direction: column;
        padding: 1.5rem 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease;
        border-radius: 0 0 20px 20px;
        border: 1px solid rgba(0,210,106,0.2);
        z-index: 99;
    }
    .nav-list.open { max-height: 700px; }

    /* .nav-list.open { */
    /*     max-height: 800px;   /\* o 1000px si tienes muchos ítems *\/ */
    /*     padding: 2rem 0;     /\* opcional: más espacio al abrir *\/ */
    /* } */
    
    /* Mobile Dropdowns */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        padding-left: 1.5rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.6rem; }
    .tagline { font-size: 1.1rem; }
    .hero-content { padding: 40px 24px; }
    .hero-logo { height: 60px; }
}
