:root {
    --neon: #00f2ff;
    --error: #ff0055;
    --bg: #050507;
    --panel: rgba(0, 10, 15, 0.85);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: white;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Scanning Overlay Animation */
#scan-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 242, 255, 0.05),
        transparent
    );
    animation: scan 4s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.container {
    z-index: 2;
    max-width: 820px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 10px;
    color: var(--neon);
    text-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
    margin-bottom: 10px;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 0 0 15px rgba(0, 242, 255, 0.4); }
    to { text-shadow: 0 0 30px rgba(0, 242, 255, 0.8), 0 0 10px var(--neon); }
}

.subtitle {
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.45;
    margin-bottom: 40px;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(0, 242, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    padding: 30px 28px;
    text-align: left;
    backdrop-filter: blur(10px);
}

/* --- ACCORDION SYSTEM --- */

.accordion {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    
    /* Staggered entrance animation */
    opacity: 0;
    animation: slideUpFade 0.6s ease forwards;
    animation-delay: calc(var(--anim-order) * 0.1s);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.accordion:hover {
    border-color: rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.03);
}

/* Active State Glow */
.accordion[open] {
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.accordion summary {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--neon);
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon);
}

/* The Animated Icon (+ to X) */
.accordion summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.accordion[open] summary::after {
    transform: rotate(135deg); /* Turns + into X */
    color: var(--error);
    text-shadow: 0 0 10px var(--error);
}

/* --- THE SMOOTH DROP OPEN ANIMATION --- */

.accordion-content {
    overflow: hidden;
    max-height: 0; /* Closed state */
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); /* Fallback transition */
}

/* When the details tag is opened, trigger the expand keyframe */
.accordion[open] .accordion-content {
    animation: expandBox 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes expandBox {
    0% {
        max-height: 0;
        opacity: 0;
    }
    100% {
        max-height: 1000px; /* High enough to contain your text */
        opacity: 1;
    }
}

.content-inner {
    padding: 0 20px 25px 20px;
    opacity: 0;
    transform: translateY(-10px);
}

/* Slide and Fade text inside the box */
.accordion[open] .content-inner {
    animation: slideInText 0.5s ease 0.2s forwards;
}

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- INTERNAL TEXT STYLING --- */

.accordion-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(0, 242, 255, 0.8);
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    border-left: 2px solid var(--neon);
    padding-left: 10px;
}

.accordion-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

/* Footer & Acceptance Area */
.acceptance {
    margin-top: 40px;
    padding: 25px;
    border: 1px dashed rgba(0, 242, 255, 0.2);
    background: rgba(0, 242, 255, 0.02);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.acceptance p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.7;
    margin: 0;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(0, 242, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 10px 20px;
}

.back-link:hover {
    color: var(--neon);
    text-shadow: 0 0 15px var(--neon);
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .brand { font-size: 1.8rem; letter-spacing: 5px; }
    .panel { padding: 20px 15px; }
    .accordion summary { font-size: 0.75rem; }
}