/* ============================================================
   GATE PAGE — The Invisible Handshake
   ============================================================ */

.gate-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gate-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ── Logo / Wordmark ── */
.gate-logo {
    position: fixed;
    top: 2rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 100;
    text-decoration: none;
}

.gate-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--fx-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
    letter-spacing: 0;
}

.gate-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* ── Badge at top of card ── */
.gate-confidential {
    position: fixed;
    top: 2.1rem;
    right: 2.5rem;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(59, 130, 246, 0.7);
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.05);
}

/* ── Gate Card ── */
.gate-card {
    max-width: 480px;
    width: 100%;
    padding: 3.5rem 3rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 15, 22, 0.97) 0%, rgba(8, 10, 18, 0.99) 100%);
    border: 1px solid var(--fx-glass-border);
    border-top-color: rgba(59, 130, 246, 0.5);
    backdrop-filter: var(--fx-glass-blur-heavy);
    -webkit-backdrop-filter: var(--fx-glass-blur-heavy);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(59, 130, 246, 0.1);
    transition: all var(--dur-med) var(--ease-expo);
    opacity: 1;
    transform: translateY(0);
}

/* ── Top label ── */
.gate-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fx-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gate-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fx-blue);
    box-shadow: 0 0 8px var(--fx-blue);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Gate Heading ── */
.gate-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--fx-text-primary);
    margin-bottom: 0.75rem;
}

.gate-heading .hl {
    background: var(--fx-gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gate-sub {
    font-size: 0.9rem;
    color: var(--fx-text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ── Email Input ── */
.gate-input-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

#gate-email {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 0;
    color: var(--fx-text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    outline: none;
    transition: border-color var(--dur-med) ease;
    caret-color: var(--fx-blue);
}

#gate-email::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 300;
}

#gate-email:focus {
    border-bottom-color: var(--fx-blue);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fx-blue-dark), var(--fx-blue));
    box-shadow: 0 0 10px var(--fx-blue);
    transition: width 0.5s var(--ease-expo);
}

#gate-email:focus~.input-underline {
    width: 100%;
}

.gate-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

/* ── Submit Button ── */
#gate-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--fx-blue-dark), var(--fx-blue));
    border: none;
    border-radius: 10px;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur-med) var(--ease-expo);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
}

#gate-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.4s ease;
}

#gate-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

#gate-submit:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ── Boot Sequence Panel ── */
#boot-panel {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.boot-line {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.8;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.boot-line.active {
    opacity: 1;
    color: var(--fx-text-secondary);
}

.boot-line.complete {
    opacity: 1;
    color: var(--fx-blue);
}

.boot-line .prompt {
    color: rgba(59, 130, 246, 0.5);
}

/* ── Pulse Line ── */
#pulse-line {
    display: none;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--fx-blue), var(--fx-blue-dark));
    box-shadow: 0 0 12px var(--fx-blue);
    margin: 1.5rem 0;
    transition: width 1.8s var(--ease-expo);
}

#pulse-line.expanding {
    width: 100%;
}

/* ── Hold State ── */
#hold-panel {
    display: none;
    text-align: center;
    padding: 0.5rem 0;
}

.hold-amber-line {
    height: 2px;
    background: var(--fx-amber);
    box-shadow: 0 0 16px var(--fx-amber);
    border-radius: 1px;
    margin-bottom: 1.5rem;
    animation: amberBreathe 2s ease-in-out infinite;
}

@keyframes amberBreathe {

    0%,
    100% {
        opacity: 0.6;
        box-shadow: 0 0 8px var(--fx-amber);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 24px var(--fx-amber);
    }
}

.hold-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--fx-amber);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hold-message {
    font-size: 0.85rem;
    color: var(--fx-text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* ── Progress Bar ── */
#boot-progress-bar {
    display: none;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

#boot-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fx-blue-dark), var(--fx-blue));
    box-shadow: 0 0 8px var(--fx-blue);
    transition: width 0.1s ease;
}

/* ── Career tag at bottom ── */
.gate-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fx-glass-border);
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ── Crack animation on VIP approval ── */
.crack-left,
.crack-right {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--fx-obsidian);
    z-index: 9999;
    transition: transform 0.8s var(--ease-expo);
    pointer-events: none;
}

/* Default: panels are offscreen (not blocking page) */
.crack-left {
    left: 0;
    transform: translateX(-100%);
}

.crack-right {
    right: 0;
    transform: translateX(100%);
}

/* .closed: panels cover the screen (used mid-transition) */
.crack-left.closed {
    transform: translateX(0);
}

.crack-right.closed {
    transform: translateX(0);
}

/* .open: panels slide back offscreen (reveal page) */
.crack-left.open {
    transform: translateX(-100%);
}

.crack-right.open {
    transform: translateX(100%);
}