/* ═══════════════════════════════════════════════════════
   ABYDOS SYSTEMS — COMING SOON
   A cinematic, dark tech teaser
   ═══════════════════════════════════════════════════════ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Palette */
    --navy:        #0B1630;
    --navy-deep:   #060D1F;
    --navy-mid:    #0F1D3D;
    --navy-card:   #162850;

    --blue:        #368EFF;
    --blue-light:  #5ea3ff;
    --blue-dim:    rgba(54, 142, 255, 0.14);
    --blue-glow:   rgba(54, 142, 255, 0.25);

    --yellow:      #FFF338;
    --yellow-dim:  rgba(255, 243, 56, 0.10);
    --yellow-glow: rgba(255, 243, 56, 0.20);

    --mint:        #6ADEC2;
    --mint-dim:    rgba(106, 222, 194, 0.12);

    --text-1:      #EFF3FA;
    --text-2:      #8DA0C2;
    --text-3:      #4A6590;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Spacing */
    --gap: clamp(16px, 3vw, 32px);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background: var(--navy-deep);
    color: var(--text-1);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Ambient Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(54, 142, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 142, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(54, 142, 255, 0.15), transparent 70%);
    top: -10%;
    left: -5%;
    animation: drift1 20s ease-in-out infinite;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(106, 222, 194, 0.08), transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: drift2 25s ease-in-out infinite;
}

.bg-glow--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 243, 56, 0.05), transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation: drift3 18s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, 30px); }
    66% { transform: translate(-20px, 50px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, -40px); }
    66% { transform: translate(50px, -20px); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* Scanline overlay */
.scanline {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Layout --- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--gap);
}

.hero__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vh, 48px);
    padding: 40px 0;
}

/* --- Top Bar --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--gap);
    border-bottom: 1px solid rgba(54, 142, 255, 0.1);
    animation: fadeSlideDown 1s ease 2.8s both;
}

.topbar__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px var(--mint), 0 0 24px rgba(106, 222, 194, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--mint);
    text-transform: uppercase;
}

.coordinates-link {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coordinates-link:hover {
    color: var(--blue);
}

/* --- Logo --- */
.logo-reveal {
    position: relative;
    animation: logoReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 3s both;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.logo {
    height: clamp(40px, 7vw, 72px);
    width: auto;
    filter: drop-shadow(0 0 40px rgba(54, 142, 255, 0.3))
            drop-shadow(0 0 80px rgba(54, 142, 255, 0.1));
}

/* --- Tagline --- */
.tagline-container {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeSlideUp 1s ease 3.3s both;
}

.divider {
    width: clamp(30px, 8vw, 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 400;
    letter-spacing: clamp(4px, 1vw, 10px);
    color: var(--blue-light);
    text-align: center;
}

/* --- Message --- */
.message-block {
    max-width: 560px;
    text-align: center;
    animation: fadeSlideUp 1s ease 3.6s both;
}

.message {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-1);
}

.message--sub {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--text-2);
    margin-top: 12px;
    line-height: 1.7;
}

.text-accent {
    color: var(--yellow);
    font-weight: 500;
}

.text-mint {
    color: var(--mint);
    font-weight: 500;
}

/* --- Progress Bar --- */
.launch-section {
    text-align: center;
    width: 100%;
    max-width: 480px;
    animation: fadeSlideUp 1s ease 3.9s both;
}

.launch-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-3);
    margin-bottom: 16px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(54, 142, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 8px,
            transparent 8px,
            transparent 16px
        ),
        linear-gradient(90deg, var(--blue), var(--blue-light));
    background-size: 22.6px 100%, 100% 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    animation: progressStripes 0.8s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 22.6px 0, 0 0; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: 3px;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.progress-glow {
    position: absolute;
    top: -4px;
    left: 0;
    height: 14px;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
    filter: blur(6px);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-percent {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    color: var(--text-1);
    letter-spacing: 1px;
}

.progress-status {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

/* --- Notify Form --- */
.notify-section {
    text-align: center;
    animation: fadeSlideUp 1s ease 4.2s both;
}

.notify-label {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(22, 40, 80, 0.6);
    border: 1px solid rgba(54, 142, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(54, 142, 255, 0.1), 0 0 30px rgba(54, 142, 255, 0.08);
}

.notify-input {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-1);
    width: clamp(200px, 30vw, 320px);
    outline: none;
}

.notify-input::placeholder {
    color: var(--text-3);
}

.notify-btn {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--navy-deep);
    background: var(--blue);
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.notify-btn:hover {
    background: var(--blue-light);
    box-shadow: 0 0 20px rgba(54, 142, 255, 0.3);
}

.notify-btn:active {
    transform: scale(0.97);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.notify-btn:hover .btn-icon {
    transform: translateX(3px);
}

.notify-success {
    margin-top: 14px;
    font-size: 13px;
    color: var(--mint);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.notify-success.visible {
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    margin-right: 6px;
}

/* --- Bottom Bar --- */
.bottombar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--gap);
    border-top: 1px solid rgba(54, 142, 255, 0.1);
    animation: fadeSlideUp 1s ease 4.5s both;
}

.footer-link {
    color: var(--text-3);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--blue);
}

/* --- Mono utility --- */
.mono {
    font-family: var(--font-mono);
}

/* --- Boot Overlay --- */
.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-terminal {
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--text-2);
    line-height: 2.2;
    padding: 24px;
}

.boot-line {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.boot-line.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Animations --- */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .logo {
        height: 64px;
    }

    .topbar__coordinates {
        display: none;
    }

    .notify-btn .btn-text {
        display: none;
    }

    .notify-btn {
        padding: 14px 16px;
    }

    .countdown__separator {
        margin-bottom: 16px;
    }

    .bottombar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .bottombar__left .mono,
    .bottombar__right .footer-link {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .tagline-container {
        flex-direction: column;
        gap: 8px;
    }

    .divider {
        display: none;
    }
}
