/* ========================================================= */
/* MODULE 05: PLATINUM GHOST PROTOCOL (LIGHT THEME)        */
/* ========================================================= */

:root {
    --bg-platinum: #f1f5f9;             
    --surface-glass: rgba(255, 255, 255, 0.6); 
    --surface-glass-heavy: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.04); 
    --border-glass-hover: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --blue-glare: rgba(37, 99, 235, 0.08);
    --blue-glow: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-platinum); color: var(--text-primary);
    display: flex; justify-content: center; padding: 24px 16px;
    background-image: radial-gradient(circle at 50% 0%, var(--blue-glare), var(--bg-platinum) 70%);
    min-height: 100vh;
}

.ghost-container { width: 100%; max-width: 650px; position: relative; }

/* GLOBAL HEADER */
.global-header { text-align: center; margin-bottom: 2rem; }
.covert-badge {
    display: inline-block; background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.2);
    font-size: 10px; font-weight: 700; padding: 4px 12px;
    border-radius: 9999px; letter-spacing: 1.5px;
}
.header-title { font-size: 32px; font-weight: 800; margin-top: 12px; margin-bottom: 8px; letter-spacing: -0.5px;}
.header-sub { font-size: 14px; max-width: 480px; margin: 0 auto; line-height: 1.6;}

/* GLASS CONTAINERS */
.glass-card {
    background: var(--surface-glass); border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 40px; backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); box-shadow: 0 25px 40px -15px rgba(0,0,0,0.05);
    display: grid; grid-template-columns: 1fr; overflow: hidden;
}

.glass-card-heavy {
    background: var(--surface-glass-heavy); border: 1px solid var(--border-glass);
    border-radius: 20px; padding: 32px; backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px); box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* STATE MACHINE */
.stage { grid-row-start: 1; grid-column-start: 1; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); width: 100%; opacity: 0; transform: translateX(20px); pointer-events: none; z-index: 1;}
.stage.active { opacity: 1; transform: translateX(0); pointer-events: all; position: relative; z-index: 2;}

.stage-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;}
.stage-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px;}
.stage-header { text-align: center; }

/* MATRIX BUTTONS */
.matrix-grid { display: flex; flex-direction: column; gap: 12px; }

/* 3-COLUMN IMAGE GRID */
.matrix-grid-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ghost-card-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: #ffffff; border: 1px solid var(--border-glass);
    padding: 16px; border-radius: 16px; cursor: pointer; color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.ghost-card-btn:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.img-wrapper { 
    width: 100%; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; 
    margin-bottom: 16px; background: #f1f5f9; border: 1px solid rgba(0,0,0,0.02);
}
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.ghost-card-btn:hover .img-wrapper img { opacity: 1; transform: scale(1.08); }

/* TYPOGRAPHIC HIGHLIGHT BUTTONS (Replaces Emojis) */
.typographic-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; background: #ffffff; border: 1px solid #e2e8f0;
    padding: 20px 24px; border-radius: 12px; cursor: pointer; color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.typographic-btn .btn-label {
    font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: #475569; transition: all 0.2s;
}
.typographic-btn:hover {
    border-color: var(--blue-glow); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,0.08);
}
.typographic-btn:hover .btn-label { color: var(--blue-glow); }

/* MICRO-TEASE SPREADSHEET */
.tease-stage { text-align: center; }
.mock-spreadsheet {
    display: flex; flex-direction: column; gap: 8px; margin-top: 24px;
    filter: blur(1.5px); opacity: 0.6; pointer-events: none; transition: all 0.5s ease;
}
.mock-spreadsheet.tease-focus { filter: blur(0px); opacity: 1; }
.mock-row {
    display: flex; gap: 8px; padding: 12px; background: rgba(255,255,255,0.8);
    border: 1px solid #e2e8f0; border-radius: 6px; align-items: center; justify-content: center;
}
.mock-cell { height: 12px; background: #cbd5e1; border-radius: 2px; }
.highlight-row { background: rgba(37,99,235,0.05); border-color: rgba(37,99,235,0.3); }

/* RADAR ILLUSION */
.radar-stage { text-align: center; padding: 20px 0;}
.radar-container {
    position: relative; width: 120px; height: 120px; margin: 0 auto;
    border-radius: 50%; border: 1px solid rgba(37,99,235,0.2);
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
}
.radar-sweep {
    position: absolute; top: 0; left: 50%; width: 50%; height: 50%;
    background: linear-gradient(90deg, rgba(37,99,235,0.6) 0%, transparent 100%);
    transform-origin: bottom left; border-radius: 0 100% 0 0;
    animation: radarSpin 2s linear infinite; opacity: 0.8;
}
.radar-core {
    position: absolute; top: 50%; left: 50%; width: 12px; height: 12px;
    background: var(--blue-glow); border-radius: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--blue-glow);
}
@keyframes radarSpin { 100% { transform: rotate(360deg); } }

/* VAULT OVERLAY & GHOST SVG */
.vault-stage { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 380px; }
.ghost-fleet { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; opacity: 0.15; z-index: -1; overflow: hidden; }
.neon-path {
    fill: none; stroke: var(--blue-glow); stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(37,99,235,0.4));
    animation: neonPulse 3s infinite alternate;
}
@keyframes neonPulse { 0% { opacity: 0.3; filter: drop-shadow(0 0 2px rgba(37,99,235,0.2)); } 100% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(37,99,235,0.6)); } }

.vault-overlay { position: relative; z-index: 10; margin-top: auto; margin-bottom: auto;}

/* FORM ELEMENTS */
.crumb-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 12px;}

.vault-input {
    width: 100%; background: #ffffff; border: 1px solid #cbd5e1;
    color: var(--text-primary); padding: 14px 16px; border-radius: 10px; font-size: 15px;
    transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.vault-input::placeholder { color: #94a3b8; }
.vault-input:focus { outline: none; border-color: var(--blue-glow); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.vault-input.invalid { border-color: #ef4444; background: #fef2f2;}
.inline-error { color: #ef4444; font-size: 11px; display: block; margin-top: 4px; padding-left: 4px; font-weight: 500;}

.btn-vault {
    background: #f1f5f9; color: #334155; padding: 16px; border-radius: 10px; font-size: 13px;
    font-weight: 700; letter-spacing: 0.5px; transition: all 0.2s; border: 1px solid #e2e8f0; cursor: pointer;
}
.btn-vault:hover:not(:disabled) { background: #e2e8f0; }

.btn-vault-primary { background: var(--blue-glow); color: #fff; border: none; font-size: 14px; letter-spacing: 1px;}
.btn-vault-primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }

.btn-vault:disabled { background: #cbd5e1; color: #f8fafc; cursor: not-allowed; border: none; box-shadow: none; transform: none;}
.loading-spinner { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { 100% { transform: rotate(360deg); } }
