/* ============================================
   E-BOP Landing Page — Blueprint Dark Tech
   ============================================ */

:root {
    --color-bg: #050816;
    --color-bg-2: #0a1228;
    --color-primary: #1e40ff;
    --color-primary-light: #4f7dff;
    --color-accent: #00d4ff;
    --color-electric: #00f0ff;
    --color-warning: #ffb800;
    --color-text: #e6ecff;
    --color-text-dim: #7a89b8;
    --color-grid: rgba(30, 100, 255, 0.08);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-glow: 0 0 60px rgba(30, 100, 255, 0.5);
    --shadow-electric: 0 0 30px rgba(0, 240, 255, 0.6);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    position: relative;
    overflow-y: auto;
}

/* ===== Background canvas ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at top, var(--color-bg-2) 0%, var(--color-bg) 60%),
        var(--color-bg);
}

/* ===== Grid overlay (blueprint feel) ===== */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* ===== Vignette ===== */
.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 8, 22, 0.7) 80%, var(--color-bg) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Status bar ===== */
.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== Logo Section ===== */
.logo-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    animation: fadeIn 1.2s ease-out;
}

.logo-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 100, 255, 0.4) 0%, rgba(0, 212, 255, 0.15) 40%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.logo-wrapper {
    position: relative;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(30, 100, 255, 0.6))
            drop-shadow(0 0 50px rgba(0, 212, 255, 0.3));
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Logo Rings ===== */
.logo-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ringExpand 4s ease-out infinite;
}

.ring-1 {
    width: 250px;
    height: 250px;
    animation-delay: 0s;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 250px;
    height: 250px;
    animation-delay: 2.6s;
}

@keyframes ringExpand {
    0% {
        width: 250px;
        height: 250px;
        opacity: 0.8;
        border-color: rgba(0, 240, 255, 0.6);
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        border-color: rgba(0, 240, 255, 0);
    }
}

/* ===== Content ===== */
.content {
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin: 1rem 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title-line {
    display: block;
    color: var(--color-text);
}

.title-accent {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light), var(--color-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    color: var(--color-accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== Progress Section ===== */
.progress-section {
    margin: 2rem auto;
    max-width: 640px;
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.progress-label {
    color: var(--color-text-dim);
}

.progress-value {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-electric));
    background-size: 200% auto;
    border-radius: 100px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transition: width 0.05s linear;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    to { background-position: 200% center; }
}

.progress-glow {
    position: absolute;
    top: -3px;
    left: 0;
    width: 30px;
    height: 12px;
    background: radial-gradient(ellipse, var(--color-electric) 0%, transparent 70%);
    filter: blur(3px);
    pointer-events: none;
    transition: left 0.05s linear;
}

.progress-modules {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.35rem;
    background: rgba(10, 18, 40, 0.5);
    border: 1px solid rgba(30, 100, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    min-width: 0;
}

.module.active {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.05);
}

.module-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-dim);
    transition: all 0.3s ease;
}

.module.active .module-dot {
    background: var(--color-electric);
    box-shadow: 0 0 8px var(--color-electric);
}

.module-name {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.module.active .module-name {
    color: var(--color-text);
}

/* ===== Info Card ===== */
.info-card {
    margin: 2rem auto 0;
    max-width: 600px;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.08), rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-electric), transparent);
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    to { left: 100%; }
}

.info-text {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(30, 100, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-content:hover {
    opacity: 1;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.footer-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 100, 50, 0.3));
    transition: filter 0.3s ease;
}

.footer-content:hover .footer-logo {
    filter: drop-shadow(0 0 15px rgba(255, 150, 50, 0.6));
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
    opacity: 0.6;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo {
        width: 160px;
    }

    .logo-glow {
        width: 240px;
        height: 240px;
    }

    .ring {
        width: 180px !important;
        height: 180px !important;
    }

    @keyframes ringExpand {
        0% {
            width: 180px;
            height: 180px;
            opacity: 0.8;
        }
        100% {
            width: 380px;
            height: 380px;
            opacity: 0;
        }
    }

    .progress-modules {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .module-name {
        font-size: 0.62rem;
    }

    .info-card {
        padding: 1.2rem 1.4rem;
    }

    .grid-overlay {
        background-size: 30px 30px;
    }
}

@media (max-width: 400px) {
    .title {
        font-size: 1.7rem;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
