@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&family=Inter:wght@300;400;500&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: #0d0d0d;
    border-radius: 18px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.08), 0 2px 24px rgba(0,0,0,0.6);
    border: 1px solid #1a2a1a;
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    padding: 50px;
    position: relative;
}

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

/* ── Green scan-line overlay ── */
.container::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.015) 2px,
        rgba(0, 255, 65, 0.015) 4px
    );
}

/* ── Green top border ── */
.container::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg,
        #00ff41, #00cc33, #00ff41,
        #33ff57, #00b32d, #00ff41, #00cc33);
    padding: 30px;
    margin-bottom: 20px;
}

.card-body {
    padding: 44px 48px 48px;
}

/* ── Eyebrow ── */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4a7c4a;
    margin-bottom: 20px;
    font-family: 'Share Tech Mono', monospace;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    flex-shrink: 0;
    box-shadow: 0 0 6px #00ff41;
    animation: blink 1.8s step-end infinite;
}

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

h1 {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    font-weight: 400;
    color: #00ff41;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.subtitle {
    font-size: 0.88rem;
    color: #3d5c3d;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 36px;
    font-family: 'Share Tech Mono', monospace;
}

.interactive-section {
    display: flex;
    gap: 10px;
}

#nameInput {
    flex: 1;
    padding: 14px 18px;
    background: #0a120a;
    border: 1.5px solid #1a3a1a;
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: 'Share Tech Mono', monospace;
    color: #00ff41;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    caret-color: #00ff41;
}

#nameInput::placeholder { color: #1e3a1e; }
#nameInput:focus {
    border-color: #00ff41;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
}

#greetBtn {
    padding: 14px 24px;
    background: #0a120a;
    color: #00ff41;
    border: 1.5px solid #1a3a1a;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
    white-space: nowrap;
}

#greetBtn:hover {
    background: #0d1f0d;
    border-color: #00ff41;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

#greetBtn:active { transform: translateY(0); }

#personalGreeting {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #00ff41;
    margin-top: 20px;
    min-height: 1.6em;
    animation: fadePop 0.35s ease both;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

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

.hidden { visibility: hidden; }