/* Base */
    :root { --neon:#00ffc8; --neon-dim:#00bba3; --ink:#0a0a0a; }
    * { box-sizing:border-box; }
    body {
      font-family: 'Orbitron', sans-serif;
      background: #050505 url('/static/img/mechbay-bg.jpg') no-repeat center center fixed;
      background-size: cover;
      color: #e0e0e0;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }
    header, section {
      padding: 4rem 2rem;
      text-align: center;
      background: rgba(0, 0, 0, 0.7);
      margin-bottom: 1rem;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(40px);
      transition: all 1s ease-out;
    }
    header.visible, section.visible { opacity: 1; transform: translateY(0); }

    h2 { text-transform: uppercase; letter-spacing: 2px; color: var(--neon-dim); margin-top: 2rem; text-shadow: 0 0 8px #009b83; }
    p { max-width: 700px; margin: 1rem auto; line-height: 1.6; }

    .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .btn { padding: 1rem 2rem; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase; text-decoration: none; position: relative; overflow: hidden; transition: all 0.3s ease; }
    .primary { background: var(--neon); color: #000; box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon) inset; }
    .secondary { background: transparent; color: var(--neon); border: 2px solid var(--neon); }
    .btn:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--neon), 0 0 40px var(--neon) inset; }

    footer { background: #111; color: #666; padding: 2rem; font-size: 0.9rem; text-align: center; }

    /* Animated Logo & Title Reveal */
    .shield {background-image: url('/static/img/logo-shield.png'); background-size: cover; aspect-ratio: 508/595;     padding: 20px 4px;}
    .logo-wrap { display:flex; flex-direction:column; align-items:center; gap:.5rem; }
    .badge { width:92px; height:92px; display:grid; place-items:center; position:relative; filter: drop-shadow(0 0 10px var(--neon)); }
    .badge svg { width:100%; height:100%; }
    .title { position:relative; font-weight:600; text-transform:uppercase; letter-spacing:.25rem; font-size:2.6rem; line-height:1; color:var(--neon); margin:.25rem 0 0; }

    /* glitch layers */
    .glitch { position:relative; display:inline-block; }
    .glitch::before, .glitch::after { content: attr(data-text); position:absolute; left:0; top:0; width:100%; height:100%; mix-blend-mode:screen; clip-path: inset(0 0 0 0); }
    .glitch::before { transform: translate(2px, -1px); color:#00ffff; text-shadow: -2px 0 6px #00ffff; animation: sliceA 3s infinite steps(20) alternate; }
    .glitch::after  { transform: translate(-2px, 1px); color:#ff2ad8; text-shadow: 2px 0 6px #ff2ad8; animation: sliceB 2.6s infinite steps(18) alternate; }

    @keyframes sliceA { 0%{ clip-path: inset(0 0 85% 0); } 10%{ clip-path: inset(10% 0 70% 0); } 20%{ clip-path: inset(40% 0 40% 0); } 30%{ clip-path: inset(70% 0 10% 0); } 40%{ clip-path: inset(0 0 85% 0); } 50%{ clip-path: inset(20% 0 60% 0); } 60%{ clip-path: inset(60% 0 20% 0); } 70%{ clip-path: inset(80% 0 0 0); } 80%{ clip-path: inset(30% 0 50% 0); } 100%{ clip-path: inset(0 0 85% 0); } }
    @keyframes sliceB { 0%{ clip-path: inset(80% 0 0 0); } 12%{ clip-path: inset(60% 0 20% 0); } 24%{ clip-path: inset(30% 0 50% 0); } 36%{ clip-path: inset(0 0 80% 0); } 48%{ clip-path: inset(50% 0 30% 0); } 60%{ clip-path: inset(20% 0 60% 0); } 72%{ clip-path: inset(0 0 85% 0); } 84%{ clip-path: inset(40% 0 40% 0); } 100%{ clip-path: inset(80% 0 0 0); } }

    /* scanline + reveal */
    .reveal { opacity:0; transform: translateY(8px); animation: titleIn .9s cubic-bezier(.2,.75,.2,1) .3s forwards; }
    @keyframes titleIn { to { opacity:1; transform:none; } }
    .scanline { position:absolute; left:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--neon), transparent); filter:drop-shadow(0 0 6px var(--neon)); animation: scan 2.4s ease-in-out .6s forwards; opacity:.25; }
    @keyframes scan { 0%{ top:0%; } 100%{ top:100%; } }

    /* Ambient animations */
    @keyframes mechMotion { 0% { background-position: center 0; } 100% { background-position: center 40px; } }
    body::before { content:''; position:fixed; inset:0; background:rgba(0,255,200,.02); animation: mechMotion 8s ease-in-out infinite alternate; z-index:-1; }

    /* Scroll reveal for sections */
    @keyframes flicker { 0%,19%,21%,23%,25%,54%,56%,100%{opacity:1} 20%,24%,55%{opacity:.3} }

    /* Responsive */
    @media (max-width: 768px) {
      header, section { padding: 3rem 1.25rem; }
      .title { font-size: 1.9rem; letter-spacing:.15rem; }
      .badge { width:76px; height:76px; }
      .btn { width: 100%; max-width: 300px; }
    }
    a{
        color: var(--neon);
    }
    a:hover{
        color: var(--neon-dim);
    }

    
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 5px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.35);
}

.container{    
    width: 400px;
    margin: 0 auto;
}


/* Modal Styles */


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(0, 255, 200, 0.25);
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.modal-content li {
    margin-bottom: 10px;
}

.modal-close {
    margin-top: 10px;
}

.modal-button {
    display: block;
    margin: 20px auto 0;
    width: 50%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid rgba(0, 255, 200, 0.25);
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.close-button {
    color: var(--neon);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: var(--neon-dim);
    text-decoration: none;
    cursor: pointer;
}