/* ============================================================================
   muratHook — Subtle Frutiger Aero Cyber Terminal Landing Page
   Inspired by Windows Vista / Frutiger Aero Color Palette
   ============================================================================ */

:root {
    --bg-dark-base: #05080B;
    --bg-dark-mid: #08161D;
    --bg-dark-teal: #0C2428;

    --aero-cyan: #6CF8FF;
    --aero-aqua: #4FFFD6;
    --aero-mint: #A7FF8C;

    --aero-muted-bg: rgba(108, 248, 255, 0.06);
    --aero-muted-border: rgba(108, 248, 255, 0.18);
    --dark-input-bg: rgba(8, 22, 29, 0.75);
    --dark-btn-border: rgba(108, 248, 255, 0.22);

    --text-muted: #748c98;
    --text-white: #e6f7ff;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    --ease-out-fast: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, #0C2428 0%, #08161D 60%, #05080B 100%);
    background-color: var(--bg-dark-base);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-weight: 300;
    overflow: hidden;
}

/* ============================================================================
   Background Layers (Noise, Vignette, Radial Glow, Canvas)
   ============================================================================ */

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(5, 8, 11, 0.88) 100%);
}

.soft-radial-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 650px;
    height: 380px;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(108, 248, 255, 0.07) 0%, rgba(79, 255, 214, 0.03) 45%, transparent 70%);
    filter: blur(45px);
}

/* ============================================================================
   Layout Container
   ============================================================================ */

.viewport-container {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    user-select: none;
}

/* ============================================================================
   ASCII Logo & Soft Line Reveal (Frutiger Aero Cyan/Aqua Palette)
   ============================================================================ */

.ascii-container {
    margin-bottom: 1.8rem;
}

.ascii-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.18;
    color: var(--aero-cyan);
    text-shadow: 0 0 16px rgba(108, 248, 255, 0.25), 0 0 4px rgba(79, 255, 214, 0.35);
    white-space: pre;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ascii-logo .line {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(2px);
    animation: softLineReveal 750ms var(--ease-out-fast) forwards;
}

.ascii-logo .line:nth-child(1) { animation-delay: 80ms; }
.ascii-logo .line:nth-child(2) { animation-delay: 160ms; }
.ascii-logo .line:nth-child(3) { animation-delay: 240ms; }
.ascii-logo .line:nth-child(4) { animation-delay: 320ms; }
.ascii-logo .line:nth-child(5) { animation-delay: 400ms; }
.ascii-logo .line:nth-child(6) { animation-delay: 480ms; }

@keyframes softLineReveal {
    from {
        opacity: 0;
        transform: translateY(4px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ============================================================================
   Latest Release Badge (Pill)
   ============================================================================ */

.badge-wrapper {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInComponent 400ms var(--ease-out-fast) 550ms forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--aero-muted-bg);
    border: 1px solid var(--aero-muted-border);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 400;
    color: var(--aero-aqua);
    letter-spacing: 0.04em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--aero-cyan);
    box-shadow: 0 0 8px var(--aero-cyan);
}

/* ============================================================================
   Primary Action: License Box & Download Button
   ============================================================================ */

.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInComponent 400ms var(--ease-out-fast) 650ms forwards;
}

.license-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.license-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    text-align: center;
}

.license-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    background-color: var(--dark-input-bg);
    border: 1px solid var(--dark-btn-border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--aero-cyan);
    text-align: center;
    letter-spacing: 0.12em;
    outline: none;
    transition: border-color 200ms var(--ease-out-fast),
                box-shadow 200ms var(--ease-out-fast);
}

.license-input::placeholder {
    color: rgba(116, 140, 152, 0.45);
    letter-spacing: 0.08em;
}

.license-input:focus {
    border-color: var(--aero-cyan);
    box-shadow: 0 0 16px rgba(108, 248, 255, 0.2);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 46px;
    margin-top: 0.75rem;
    padding: 0 1.5rem;
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #05080B;
    background: linear-gradient(135deg, #6CF8FF 0%, #4FFFD6 50%, #A7FF8C 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: transform 200ms var(--ease-out-fast),
                box-shadow 200ms var(--ease-out-fast),
                opacity 200ms var(--ease-out-fast);
    box-shadow: 0 2px 14px rgba(108, 248, 255, 0.18);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(108, 248, 255, 0.32);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 248, 255, 0.2);
}

.download-btn.disabled,
.download-btn:disabled {
    opacity: 0.75;
    pointer-events: none;
    cursor: default;
    transform: translateY(0);
}

.license-error {
    margin-top: 0.65rem;
    font-size: 11.5px;
    font-weight: 400;
    color: #ff6c6c;
    letter-spacing: 0.03em;
    text-align: center;
    transition: opacity 200ms var(--ease-out-fast);
}

.license-error.hidden {
    display: none;
}

/* SVG Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    animation: spin 800ms linear infinite;
}

.btn-spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Information Row */
.info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.info-row .dot {
    color: #1b323c;
}

/* ============================================================================
   Section Divider
   ============================================================================ */

.section-divider {
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 248, 255, 0.12), transparent);
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInComponent 400ms var(--ease-out-fast) 720ms forwards;
}

/* ============================================================================
   Secondary Section: Discord Button & Captions (Frutiger Aero Styling)
   ============================================================================ */

.secondary-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInComponent 400ms var(--ease-out-fast) 780ms forwards;
}

.secondary-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 280px;
    height: 44px;
    padding: 0 1.5rem;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--aero-aqua);
    background-color: var(--dark-input-bg);
    border: 1px solid var(--dark-btn-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: transform 200ms var(--ease-out-fast),
                box-shadow 200ms var(--ease-out-fast),
                border-color 200ms var(--ease-out-fast),
                color 200ms var(--ease-out-fast),
                background-color 200ms var(--ease-out-fast);
    box-shadow: 0 2px 10px rgba(5, 8, 11, 0.5);
}

.discord-btn:hover {
    transform: translateY(-2px);
    border-color: var(--aero-cyan);
    color: var(--aero-cyan);
    box-shadow: 0 0 20px rgba(108, 248, 255, 0.2);
    background-color: rgba(108, 248, 255, 0.08);
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 200ms var(--ease-out-fast);
}

.discord-btn:hover .discord-icon {
    transform: scale(1.08);
}

.secondary-caption {
    margin-top: 0.75rem;
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.06em;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    position: absolute;
    bottom: 1.8rem;
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.06em;
    animation: fadeInComponent 400ms var(--ease-out-fast) 850ms forwards;
}

/* Fade In Helper Animation for Components */
@keyframes fadeInComponent {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
