/* ==========================================================================
   DRUMWORK.DEV // RETRO COMMAND PROMPT & OPTICAL DEMODULATOR THEME
   Strict Black & White Terminal Aesthetic • 32-Bit Galvanic Audio Engine
   ========================================================================== */

:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-dim: #a0a0a0;
    --text-muted: #666666;
    --term-border: #333333;
    --term-border-bright: #ffffff;
    --accent-green: #00ff41;
    --accent-cyan: #00f0ff;
    --accent-amber: #ffb000;
    --accent-red: #ff3344;
    --font-mono: 'Share Tech Mono', 'Courier New', Courier, monospace;
    --font-pixel: 'VT323', monospace;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.45;
    overflow-x: hidden;
}

/* Subtle CRT Scanlines Overlay */
.crt-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.35) 50%
    );
    background-size: 100% 4px;
    opacity: 0.7;
}

/* ── MAIN TERMINAL WINDOW ────────────────────────────────────────────── */
.terminal-window {
    max-width: 1080px;
    margin: 24px auto;
    background: #000000;
    border: 1px solid var(--term-border);
    border-radius: 4px;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.04), 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1120px) {
    .terminal-window {
        margin: 12px;
    }
}

/* ── TERMINAL HEADER BAR ─────────────────────────────────────────────── */
.terminal-header {
    background: #0a0a0a;
    border-bottom: 1px solid var(--term-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.system-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-white);
    text-transform: uppercase;
}

.btn-term {
    background: #111111;
    color: var(--text-white);
    border: 1px solid var(--term-border);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
    text-transform: uppercase;
}

.btn-term:hover {
    background: #222222;
    border-color: var(--text-white);
    color: #ffffff;
}

.btn-info {
    border-color: #555555;
    background: #151515;
}

.btn-info:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ── TERMINAL BODY ───────────────────────────────────────────────────── */
.terminal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── HERO BRAND SECTION ──────────────────────────────────────────────── */
.hero-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px 10px 10px;
    border-bottom: 1px solid #1a1a1a;
}

.logo-wrapper {
    margin-bottom: 24px;
}

.drumwork-logo {
    width: 340px;
    max-width: 90vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.28));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.drumwork-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.45));
}

.hardware-notice-block {
    max-width: 760px;
}

.notice-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
}

.notice-subtext {
    font-size: 1.05rem;
    color: #dddddd;
    margin-bottom: 8px;
    line-height: 1.6;
}

.founders-key-link {
    display: inline-block;
    color: #ffffff;
    background: #111111;
    border: 1px solid #666666;
    padding: 3px 10px;
    margin: 4px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.membership-links-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.membership-links-group .link-divider {
    color: #666666;
    font-weight: 700;
}

.founders-key-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.notice-details {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.notice-details strong {
    color: #ffffff;
}

/* Connect / Auth Buttons */
.auth-action-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.btn-action-primary {
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.btn-action-accent {
    background: #0d1f11;
    color: var(--accent-green);
    border: 1.5px solid var(--accent-green);
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn-action-accent:hover {
    background: var(--accent-green);
    color: #000000;
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.5);
}

.hw-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #0c0c0c;
    border: 1px solid #333333;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 20px;
    color: var(--text-dim);
}

.hw-status-pill.pending .pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-amber);
    box-shadow: 0 0 6px var(--accent-amber);
}

.hw-status-pill.unlocked {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: #041206;
}

.hw-status-pill.unlocked .pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* ── OSCILLOSCOPE PANEL ──────────────────────────────────────────────── */
.oscilloscope-container {
    background: #050505;
    border: 1px solid var(--term-border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scope-topbar {
    background: #0e0e0e;
    border-bottom: 1px solid #222222;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 8px;
}

.scope-tag {
    color: #888888;
}

.mode-highlight {
    color: #ffffff;
    font-weight: 700;
    margin-left: 4px;
}

.scope-metrics {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider {
    color: #444444;
}

.canvas-viewport {
    position: relative;
    width: 100%;
    height: 240px;
    background: #000000;
}

#oscilloscope-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Signal Meters Strip */
.meters-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 14px;
    background: #080808;
    border-top: 1px solid #1f1f1f;
}

@media (max-width: 640px) {
    .meters-strip {
        grid-template-columns: 1fr;
    }
}

.meter-unit {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meter-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #999999;
    letter-spacing: 0.05em;
}

.meter-gauge {
    height: 10px;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.meter-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #444444, #ffffff);
    transition: width 0.05s ease-out;
}

.meter-bar-fill.carrier {
    background: linear-gradient(90deg, #008f28, #00ff41);
}

/* Tuning Controls Bar */
.tuning-bar {
    background: #0a0a0a;
    border-top: 1px solid #1f1f1f;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tune-control {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #888888;
}

.tune-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    outline: none;
}

.tune-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.btn-micro {
    background: #141414;
    border: 1px solid #333333;
    color: #bbbbbb;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-micro:hover {
    background: #252525;
    color: #ffffff;
    border-color: #ffffff;
}

/* ── QUICK SHORTCUT CHIPS ────────────────────────────────────────────── */
.quick-commands-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.quick-label {
    font-size: 0.75rem;
    color: #666666;
    letter-spacing: 0.05em;
}

.btn-chip {
    background: #0f0f0f;
    border: 1px solid #282828;
    color: #cccccc;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-chip:hover {
    background: #222222;
    color: #ffffff;
    border-color: #666666;
}

/* ── TERMINAL LOG BUFFER ─────────────────────────────────────────────── */
.terminal-log-container {
    background: #020202;
    border: 1px solid var(--term-border);
    padding: 14px;
    height: 220px;
    overflow-y: auto;
    font-size: 0.84rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 3px;
}

.terminal-log-container::-webkit-scrollbar {
    width: 6px;
}

.terminal-log-container::-webkit-scrollbar-track {
    background: #080808;
}

.terminal-log-container::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 3px;
}

.log-line {
    word-break: break-word;
}

.log-line.sys {
    color: #aaaaaa;
}

.log-line.ok {
    color: #00ff41;
}

.log-line.key {
    color: #ffffff;
    font-weight: 700;
}

.log-line.warn {
    color: #ffb000;
}

.log-line.err {
    color: #ff4455;
}

.log-line.cyan {
    color: #00f0ff;
}

/* ── CLI INPUT BAR ───────────────────────────────────────────────────── */
.cli-input-bar {
    display: flex;
    align-items: center;
    background: #080808;
    border: 1px solid #333333;
    padding: 8px 12px;
    border-radius: 3px;
}

.cli-prompt {
    color: #ffffff;
    font-weight: 700;
    margin-right: 10px;
    user-select: none;
    font-size: 0.88rem;
}

#cli-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
}

#cli-input::placeholder {
    color: #444444;
}

.cli-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #ffffff;
    margin-left: 4px;
    animation: cursor-blink 1s step-end infinite;
}

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

/* ── 550€ FOUNDERS KIT MODAL ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: #050505;
    border: 1px solid #ffffff;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #0f0f0f;
    border-bottom: 1px solid #222222;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-badge {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    display: block;
    margin-bottom: 4px;
}

.modal-title-group h2 {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.btn-close-modal {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: #ffffff;
    color: #000000;
}

.modal-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-price-banner {
    background: #111111;
    border: 1px solid #333333;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    flex-wrap: wrap;
    gap: 16px;
}

.price-left {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.price-terms {
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.btn-stripe-direct {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-stripe-direct:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 680px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-card {
    background: #090909;
    border: 1px solid #222222;
    padding: 16px;
    border-radius: 3px;
}

.spec-card h3 {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 6px;
}

.spec-card ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: #cccccc;
    line-height: 1.4;
}

.spec-card ul li strong {
    color: #ffffff;
}

.modal-footer-cta {
    text-align: center;
    border-top: 1px solid #222222;
    padding-top: 18px;
}

.modal-stock-warn {
    font-size: 0.8rem;
    color: var(--accent-amber);
    margin-bottom: 14px;
}

.btn-stripe-large {
    display: block;
    width: 100%;
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-stripe-large:hover {
    background: #dddddd;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}
